Re: [f2py] problem finding shared library: libsvml.so
Ben Forbes <[email protected]> Sat, 30 Apr 2011 15:04:53 +1000
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
libsvml seems to be an Intel Fortran threading library. Locate libsvml.so on your machine and make sure it is in your PATH. On Sat, Apr 30, 2011 at 1:47 PM, Charles Seaton <cseaton-uIUX3vXS/[email protected]> wrote: > Hello, > > I am attempting to use f2py with python2.6 on a CentOS 5.4 linux system > (specifically: > > Python 2.6.4 (r264, Nov 18 2009, 17:36:42) > [GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2 > > As a first test, I have created a hello.f file (from the scipy f2py > documentation): > > C File hello.f > subroutine foo (a) > integer a > print*, "Hello from Fortran!" > print*, "a=",a > end > > And compiled using: > > python2.6 /usr/bin/f2py -c -m hello hello.f > > The hello.so shared library generates successfully, but when I try to > load it into python2.6, I get the following error message: > > >> import hello > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > ImportError: libsvml.so: cannot open shared object file: No such file or > directory > > Searching online for shared libraries and f2py turned up a numpy0.95 bug > from 5 years ago, but nothing else. > > I am at a loss as to how to solve this. Any assistance would be greatly > appreciated. > > thanks, > > Charles Seaton > Research Associate > STC-CMOP/ OHSU > > The complete output from the f2py command (in case this is useful for > debugging) was: > > running build > running config_cc > unifing config_cc, config, build_clib, build_ext, build commands > --compiler options > running config_fc > unifing config_fc, config, build_clib, build_ext, build commands > --fcompiler options > running build_src > building extension "hello" sources > f2py options: [] > f2py:> /tmp/tmpzj3uBK/src.linux-x86_64-2.6/hellomodule.c > creating /tmp/tmpzj3uBK > creating /tmp/tmpzj3uBK/src.linux-x86_64-2.6 > Reading fortran codes... > Reading file 'hello.f' (format:fix,strict) > Post-processing... > Block: hello > Block: foo > Post-processing (stage 2)... > Building modules... > Building module "hello"... > Constructing wrapper function "foo"... > foo(a) > Wrote C/API module "hello" to file > "/tmp/tmpzj3uBK/src.linux-x86_64-2.6/hellomodule.c" > adding '/tmp/tmpzj3uBK/src.linux-x86_64-2.6/fortranobject.c' to sources. > adding '/tmp/tmpzj3uBK/src.linux-x86_64-2.6' to include_dirs. > copying > /usr/local/lib/python2.6/site-packages/numpy/f2py/src/fortranobject.c -> > /tmp/tmpzj3uBK/src.inux-x86_64-2.6/tmpzj3uBK/src.linux-x86_64-2.6/fortranobject.c' > to sources. > copying > /usr/local/lib/python2.6/site-packages/numpy/f2py/src/fortranobject.h -> > /tmp/tmpzj3uBK/src.inux-x86_64-2.6ocal/lib/python2.6/site-packages/numpy/f2py/src/fortranobject.c > -> > running build_ext > customize UnixCCompiler > customize UnixCCompiler using build_ext > customize GnuFCompiler > Could not locate executable g77 > Could not locate executable f77 > customize IntelFCompiler > Found executable /opt/intel/fce/9.0/bin/ifort > customize IntelFCompiler > Found executable /opt/intel/fce/9.0/bin/ifort > customize LaheyFCompiler > Could not locate executable lf95 > customize PGroupFCompiler > Could not locate executable pgf90 > Could not locate executable pgf77 > customize AbsoftFCompiler > Could not locate executable f90 > customize NAGFCompiler > Found executable /usr/bin/f95 > customize VastFCompiler > customize GnuFCompiler > customize CompaqFCompiler > Could not locate executable fort > customize IntelItaniumFCompiler > customize IntelEM64TFCompiler > customize IntelEM64TFCompiler > customize IntelEM64TFCompiler using build_ext > building 'hello' extension > compiling C sources > C compiler: gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 > -Wall -Wstrict-prototypes -fPIC > > creating /tmp/tmpzj3uBK/tmp > creating /tmp/tmpzj3uBK/tmp/tmpzj3uBK > creating /tmp/tmpzj3uBK/tmp/tmpzj3uBK/src.linux-x86_64-2.6 > y/core/include -I/usr/local/include/python2.6 -c' > gcc: /tmp/tmpzj3uBK/src.linux-x86_64-2.6/fortranobject.c > compiling Fortran sources > Fortran f77 compiler: /opt/intel/fce/9.0/bin/ifort -FI -w90 -w95 -KPIC > -cm -O3 -unroll -tpp7 -xW > Fortran f90 compiler: /opt/intel/fce/9.0/bin/ifort -FR -KPIC -cm -O3 > -unroll -tpp7 -xW > Fortran fix compiler: /opt/intel/fce/9.0/bin/ifort -FI -KPIC -cm -O3 > -unroll -tpp7 -xW > compile options: '-I/tmp/tmpzj3uBK/src.linux-x86_64-2.6 > -I/usr/local/lib/python2.6/site-packages/numy/core/include > -I/usr/local/include/python2.6 -c'rt -FR -KPIC -cm -O3 -unroll -tpp7 -xW > ifort:f77: hello.f > /opt/intel/fce/9.0/bin/ifort -shared -shared -nofor_main > /tmp/tmpzj3uBK/tmp/tmpzj3uBK/src.linux-x86_4-2.6/hellomodule.o > /tmp/tmpzj3uBK/tmp/tmpzj3uBK/src.linux-x86_64-2.6/fortranobject.o > /tmp/tmpzj3uBK/hello.o -L/usr/local/lib -lpython2.6 -o ./hello.soo > running scons > Removing build directory /tmp/tmpzj3uBK > > > > > > _______________________________________________ > f2py-users mailing list > f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] > http://cens.ioc.ee/mailman/listinfo/f2py-users > -- Benjamin D. Forbes School of Physics The University of Melbourne Parkville, VIC 3010, Australia