No bc or dc calculater
I am tring to do floating point arithmetic on command-line.
I'm using Knoppix 6 with kernel 2.6.28.4, init 2.86, GUI LXDE No, bc or dc calculator. I downloaded bc-1.06, extracted it in /usr. I cd to bc-1.06 folder where configure.in is located. At the command-line typed ./configure, this was the stdout: loading cache ./config.cache checking for BSD compatible install ..usr/bin/install-c checking whether build environment is same .. yes checking whether make sets ${MAKE} .. no checking for working aclocal .. missing checking for working autoconf .. missing checking for working automake .. missing checking for working autoheader .. missing checking for working makeinfo .. missing checking for gcc .. gcc checking whether we are using GNU c .. yes checking whether gcc accepts -g .. yes checking how to run the c preprocessor .. gcc-E checking for minix /config.h .. no checking for flex .. no checking for lex .. no ./configure line 1186: flex: command not found checking for flrx .. lex checking for yywrap in -LL .. no checking lex .. lex command not found configure error: can not find output from lex giving up: After that typed make at command-line stdout: make command not found Can someone please tell me what I'm doing wrong, or what I'm missing? |
The error code is pointing out that you must have "lex" loaded and installed before you can compile the "bc" program because it needs "lex" and its libraries.
So, simple get "lex" and install. Cheers. |
*
' lex ' : The name for the open source lexer is "flex" |
Also note that python and awk can also do floating point in case bc is not available.
|
All times are GMT -5. The time now is 01:04 PM. |