Hi,
Try to link in the blas library (there is a dcopy_ in my blas library,
but better check the README first).
best regards -- Gerard
On Thursday 15 November 2001 11:15, Nils Wagner wrote:
> Hi,
>
> I have installed f2py on my system for wrapping existing FORTRAN 77
> codes to Python.
> Then I have gone through the following steps
>
> An example for using a TLS (total least squares routine)
> http://www.netlib.org/vanhuffel/
>
> 2) Get dtsl.f with dependencies
> 3) Run
> f2py dtsl.f -m foo -h foo.pyf only: dtsl
> \ \ \ \________ just wrap dtsl function
> \ \ \______ create signature file
> \ \____ python module name
> \_____ Fortran 77 code
> 4) Edit foo.pyf to your specific needs (optional)
> 5) Run
> f2py foo.pyf
> \_____________ this will create Python C/API module foomodule.c
> 6) Run
> make -f Makefile-foo
> \_____________ this will build the module
> 7) In python:
>
> Python 2.1.1 (#1, Sep 24 2001, 05:28:47)
> [GCC 2.95.3 20010315 (SuSE)] on linux2
> Type "copyright", "credits" or "license" for more information.
>
> >>> import foo
>
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> ImportError: ./foomodule.so: undefined symbol: dcopy_
>
>
> Any suggestions to solve this problem ?
>
> Nils
>
> There are prebuilt libraries of LAPACK and BLAS in /usr/lib
>
> -rw-r--r-- 1 root root 657706 Sep 24 01:00 libblas.a
> lrwxrwxrwx 1 root root 12 Okt 22 19:27 libblas.so ->
> libblas.so.2
> lrwxrwxrwx 1 root root 16 Okt 22 19:27 libblas.so.2 ->
> libblas.so.2.2.0
> -rwxr-xr-x 1 root root 559600 Sep 24 01:01 libblas.so.2.2.0
> -rw-r--r-- 1 root root 5763150 Sep 24 01:00 liblapack.a
> lrwxrwxrwx 1 root root 14 Okt 22 19:27 liblapack.so ->
> liblapack.so.3
> lrwxrwxrwx 1 root root 18 Okt 22 19:27 liblapack.so.3
> -> liblapack.so.3.0.0
> -rwxr-xr-x 1 root root 4826626 Sep 24 01:01
> liblapack.so.3.0.0
>
> _______________________________________________
> Numpy-discussion mailing list
> Num...@li...
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion
|