I know that libg2c.so.0 is located in /usr/lib. How do I tell the linker to look in that folder to access this library?

06-25-2009

Rubberman

If you are running a 32-bit system, then this should work. If you are running a 64-bit system, then you need to see if a 64-bit version exists in /usr/lib64. If not and your are building on a 64-bit system, then you either need the 64-bit version of the library (libg2c.so or libg2c.a) or you need to build your application fully for 32-bit operation, in which case it will get the library from /usr/lib.

06-25-2009

Rituparna

Quote:

Originally Posted by Rubberman

If you are running a 32-bit system, then this should work.

What should work?

I am running a 32-bit system.

Can I just edit the makefile itself?

Here is a portion of the original makefile:

PHP Code:

# Make file for r8s
# Updated April 2003 for Linux and Mac OS 10.2. No other builds currently supported
#

libg2c.so.0 and libm.so are both in /usr/lib. So I edited LPATH to equal -L/usr/lib.

But I am still getting the same error....

06-25-2009

Rubberman

I noticed in my system that there is no libg2c.so, but there is .so.0 which is a link to .so.0.0.0. As root, go to /usr/lib and make a symbolic link from libg2c.so.0 to libg2c.so and try linking again.