PDA

View Full Version : Adding libraries



Bob_Foster
07-08-2004, 03:15 AM
I am running knoppix 3.3 with no problem.

However, I have a small program compiled on another linux machine and the executable file, which runs fine on the machine it is compiled on, will not run on the Knoppix machine.

It complains that it can not find a shared library: "libg2c.so.0"

This is understandable since the library is for Fortran and not on the knoppix CD.

Question: Is there any way to add this library (libg2c.so.0) so that I can run the small program on the knoppix machine. ( I have plenty of space on my 512 MB usb drive.)

Of couse, if I could link the library into the execuatable in the first place on the compiling machine, then it should not need the additional library. However, I have not found a way to do that (I am compiling the small program using g77 compiler).

TIA, Bob

fingers99
07-08-2004, 04:02 AM
Sure it's not in /usr/lib?

A google for

libg2c.so.0 debian

throws up some items which suggest a symlink may be missing.

mzilikazi
07-08-2004, 04:27 AM
apt-get install libg2c0