Difference between revisions of "Bc"
(7 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{| style="text-align: left; background-color: AliceBlue;" | {| style="text-align: left; background-color: AliceBlue;" | ||
− | |- | + | |-valign="top" |
!Download Source: | !Download Source: | ||
− | | http://ftp.gnu.org/gnu/bc/bc- | + | | http://ftp.gnu.org/gnu/bc/bc-{{Bc-Version}}.tar.gz |
|} | |} | ||
---- | ---- | ||
+ | |||
+ | {{Package-Introduction|bc is a ''b''asic ''c''alculator. bc can be executed as either a mathematical scripting language or as an interactive mathematical shell. Its syntac is similar to C.|http://www.gnu.org/software/bc}} | ||
== Dependencies == | == Dependencies == | ||
Line 23: | Line 25: | ||
make install | make install | ||
+ | |||
+ | === Command Explanations === | ||
+ | |||
+ | '''sed -i '/PROTO.*readline/d' bc/scan.l''': This command fixes the Readline library call. | ||
+ | |||
+ | '''sed -i '/flex -I8/s/8//' configure''': This command fixes the Flex invocation. | ||
+ | |||
+ | '''sed -i '/stdlib/a #include <string.h>'''' lib/number.c: This command inserts a missing header. | ||
+ | |||
+ | '''sed -i 's/program.*save/static &/' bc/load.c''': This command fixes a segfault when running bc with bc '''-l'''. | ||
+ | |||
+ | ''--with-readline'': This option enables Readline support in interactive mode. | ||
== Multilib == | == Multilib == | ||
Line 74: | Line 88: | ||
= Contents = | = Contents = | ||
− | + | {| style="text-align: left;" | |
− | + | |-valign="top" | |
− | Installed Programs: bc | + | ! Installed Programs: |
− | + | | bc and dc | |
− | Installed Libraries: None | + | |-valign="top" |
− | + | ! Installed Libraries: | |
− | Installed Directories: None | + | | None |
+ | |-valign="top" | ||
+ | ! Installed Directories: | ||
+ | | None | ||
+ | |} | ||
=== Short Descriptions === | === Short Descriptions === | ||
− | bc | + | {| style="text-align: left;" |
+ | |-valign="top" | ||
+ | ! bc | ||
+ | | is a calculator. | ||
+ | |-valign="top" | ||
+ | ! dc | ||
+ | | is a reverse-polish calculator. | ||
+ | |} | ||
− | + | [[Category:General Utilities]] |
Latest revision as of 13:50, 19 March 2009
Download Source: | http://ftp.gnu.org/gnu/bc/bc-1.06.tar.gz |
---|
Contents
Introduction to Bc
bc is a basic calculator. bc can be executed as either a mathematical scripting language or as an interactive mathematical shell. Its syntac is similar to C.
Project Homepage: http://www.gnu.org/software/bc
Dependencies
Non-Multilib
Compile the package:
sed -i '/PROTO.*readline/d' bc/scan.l && sed -i '/flex -I8/s/8//' configure && sed -i '/stdlib/a #include <string.h>' lib/number.c && sed -i 's/program.*save/static &/' bc/load.c && ./configure --prefix=/usr --with-readline && make
Install the package
make install
Command Explanations
sed -i '/PROTO.*readline/d' bc/scan.l: This command fixes the Readline library call.
sed -i '/flex -I8/s/8//' configure: This command fixes the Flex invocation.
sed -i '/stdlib/a #include <string.h>' lib/number.c: This command inserts a missing header.
sed -i 's/program.*save/static &/' bc/load.c: This command fixes a segfault when running bc with bc -l.
--with-readline: This option enables Readline support in interactive mode.
Multilib
This package does not provide any libraries so only one installation is needed.
32Bit
Compile the package:
sed -i '/PROTO.*readline/d' bc/scan.l && sed -i '/flex -I8/s/8//' configure && sed -i '/stdlib/a #include <string.h>' lib/number.c && sed -i 's/program.*save/static &/' bc/load.c && CC="gcc ${BUILD32}" ./configure --prefix=/usr --with-readline && make
Install the package
make install
N32
Compile the package:
sed -i '/PROTO.*readline/d' bc/scan.l && sed -i '/flex -I8/s/8//' configure && sed -i '/stdlib/a #include <string.h>' lib/number.c && sed -i 's/program.*save/static &/' bc/load.c && CC="gcc ${BUILDN32}" ./configure --prefix=/usr --with-readline && make
Install the package
make install
64Bit
Compile the package:
sed -i '/PROTO.*readline/d' bc/scan.l && sed -i '/flex -I8/s/8//' configure && sed -i '/stdlib/a #include <string.h>' lib/number.c && sed -i 's/program.*save/static &/' bc/load.c && CC="gcc ${BUILD64}" ./configure --prefix=/usr --with-readline && make
Install the package
make install
Contents
Installed Programs: | bc and dc |
---|---|
Installed Libraries: | None |
Installed Directories: | None |
Short Descriptions
bc | is a calculator. |
---|---|
dc | is a reverse-polish calculator. |