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

Pearu Peterson pearu at scipy.org
Wed Nov 10 11:58:10 EST 2004



On Wed, 10 Nov 2004, Giovanni Samaey wrote:

> Apparently the system adminstration does not consider this a priority,

That's typical :)

> since I have access to libg2c.so.  What should I do to use that file instead?

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.

Pearu




More information about the SciPy-User mailing list