[Scipy-tickets] [SciPy] #1332: python setup.py install /usr/bin/ld: cannot find -lnpymath

SciPy Trac scipy-tickets@scipy....
Tue Nov 23 17:30:36 CST 2010


#1332: python setup.py install /usr/bin/ld: cannot find -lnpymath
------------------------------------------+---------------------------------
 Reporter:  peterwt                       |       Owner:  cdavid
     Type:  defect                        |      Status:  new   
 Priority:  high                          |   Milestone:  0.9.0 
Component:  Build issues                  |     Version:  0.8.0 
 Keywords:  lnpymath, optimize.curve_fit  |  
------------------------------------------+---------------------------------
 I found that scipy.optimize.curve_fit is not a part of the current debian
 squeeze binary (version 0.7.2+dfsg1+1) so i have been attempting to
 install version 0.8.0 from source. I have removed the debisn version and
 ensured that all dependencies are met  (except that there is no atlas3
 -base-dev package, so I ma hoping that libatlas3gf-base  will suffice.
 When running either 'sudo python setup.py install' or 'sudo python
 setupegg.py develop' the build fails with the following error:


 {{{
 /usr/bin/ld: cannot find -lnpymath
 collect2: ld returned 1 exit status
 /usr/bin/ld: cannot find -lnpymath
 collect2: ld returned 1 exit status
 error: Command "/usr/bin/gfortran -Wall -Wall -shared
 build/temp.linux-x86_64-2.6/scipy/special/_cephesmodule.o
 build/temp.linux-x86_64-2.6/scipy/special/amos_wrappers.o
 build/temp.linux-x86_64-2.6/scipy/special/specfun_wrappers.o
 build/temp.linux-x86_64-2.6/scipy/special/toms_wrappers.o
 build/temp.linux-x86_64-2.6/scipy/special/cdf_wrappers.o
 build/temp.linux-x86_64-2.6/scipy/special/ufunc_extras.o
 -L/usr/lib/pymodules/python2.6/numpy/core/lib
 -Lbuild/temp.linux-x86_64-2.6 -lsc_amos -lsc_toms -lsc_c_misc -lsc_cephes
 -lsc_mach -lsc_cdf -lsc_specfun -lnpymath -lm -lgfortran -o
 build/lib.linux-x86_64-2.6/scipy/special/_cephes.so" failed with exit
 status 1
 }}}
  there is a bug tracked on numpy here
 http://projects.scipy.org/numpy/ticket/1273 which claims that this has
 been fixed but it seems that it has not. Im suspicious that since im using
 the default debian squeeze numpy and scipy from source that there is a
 missing link.

 system:

 squeeze/sid
 X11; U; Linux x86_64; en-US; rv:1.9.1.15

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1332>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list