[SciPy-user] error linking to libg2c on 64-bit machine

Pearu Peterson pearu at scipy.org
Wed Nov 10 11:40:09 CST 2004

On Wed, 10 Nov 2004, Giovanni Samaey wrote:

>> First, try manually if libg2c.so is usable. After scipy build crashes
>> then execute the linking command using libg2c.so. For example,
>> /usr/bin/g77 -shared
>> build/temp.linux-x86_64-2.3/Lib/interpolate/_fitpackmodule.o
>> -Lbuild/temp.linux-x86_64-2.3 -lfitpack /path/to/libg2c.so -o
>> build/lib.linux-x86_64-2.3/scipy/interpolate/_fitpack.so
>> and then try to import _fitpack to python:
>>   cd build/lib.linux-x86_64-2.3/scipy/interpolate/
>>   python -c 'import _fitpack'
>> If this works then I can make a patch for scipy_distutils/gnufcompiler.py.
> This works, on some conditions:  there are several libg2c.so files on the 
> system.
> The one that was sitting next to the libg2c.a file that was detected, did not 
> work.
> I had to supply another one.
> Basically, I have to be able to supply the complete filename of the correct 
> libg2c.so file to continue.

Could you be more specific? What is the location of the libg2c.so that 

> Also, as you might have seen in the thread on the plotting (which is also me, 
> on the same machine),
> I have the same problem with x11 libraries.  There are some valid x11 
> libraries in a freaky place, which I have to link to...

Again, since yours machine configuration is rather unique, be more 
specific on the location of libraries that work.


More information about the SciPy-user mailing list