cannot find -llapack

784 views
Skip to first unread message

pepe

unread,
Sep 15, 2010, 2:05:31 AM9/15/10
to python(x,y)
Hello,

I am trying to install SLYCOT ("Python wrapper for selected Slicot
routines, notably including solvers for Riccati and Lyapunov
equations").
http://github.com/avventi/Slycot. I am using Python(x,y) version
2.6.5.3

I run:
> python setup.py build -compiler=mingw32

installation process is stopped with message:

> c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: cannot find -llapack

Any idea how to fix it?
Is LAPACK a part of pythonxy/scipy distribution?

Thanks!

Best regards,
pepe

Grizzly Nyo

unread,
Sep 18, 2010, 12:43:40 PM9/18/10
to python(x,y)
Hi,

Lapack is a library not part by Python(x, y) - http://www.netlib.org/lapack
.

The error is caused by the linker not finding the above library.
Download, install, add it to the mingw library directory and try
again.

-gabi

On Sep 15, 8:05 am, pepe <balazovic.pe...@gmail.com> wrote:
> Hello,
>
> I am trying to install SLYCOT ("Python wrapper for selected Slicot
> routines, notably including solvers for Riccati and Lyapunov
> equations").http://github.com/avventi/Slycot. I am using Python(x,y) version

pepe

unread,
Sep 21, 2010, 11:19:34 AM9/21/10
to python(x,y)
Gabi,

Well, I am trying to do it as you suggested...
No success yet I would need some help here.

What I did:
I downloaded lapack.lib and blas.lib as pre-built libs from
http://icl.cs.utk.edu/lapack-for-windows/
and then I copied to c:\Python26\libs\ and to c:\MinGW\mingw32\lib\

It seems that error "cannot find -llapack" I reported is gone. But
others occurred :(

....
build\temp.win32-2.6\Release\slycot\src\UE01MD.o:UE01MD.f:(.text
+0x47d): undefin
ed reference to `ilaenv_'
build\temp.win32-2.6\Release\slycot\src\UE01MD.o:UE01MD.f:(.text
+0x55d): more un
defined references to `ilaenv_' follow
collect2: ld returned 1 exit status
error: Command "C:\MinGW\bin\gfortran.exe -Wall -mno-cygwin -Wall -mno-
cygwin -s
hared build\temp.win32-2.6\Release\build\src.win32-2.6\slycot\src
\_wrappermodule
.o
...

I modified compiler options e.g. adding -ff2c option and so - it does
not help.

I think I still missing some libs or headers...or do you have any
suggestion for me?
Thank you very much!

Best regards,
Peter


On Sep 18, 6:43 pm, Grizzly Nyo <grizzly....@gmail.com> wrote:
> Hi,
>
> Lapack is a library not part by Python(x, y) -http://www.netlib.org/lapack

Grizzly Nyo

unread,
Sep 23, 2010, 3:45:48 AM9/23/10
to python(x,y)
Pepe Hi,

Googling suggests that there is a mix and match of Fortran compilers.

http://www.cpmd.org/pipermail/cpmd-list/2007-June/003934.html

On Sep 21, 5:19 pm, pepe <balazovic.pe...@gmail.com> wrote:
> Gabi,
>
> Well, I am trying to do it as you suggested...
> No success yet I would need some help here.
>
> What I did:
> I downloaded lapack.lib and blas.lib as  pre-built libs fromhttp://icl.cs.utk.edu/lapack-for-windows/

Peter Balazovic

unread,
Sep 23, 2010, 3:59:25 AM9/23/10
to pyth...@googlegroups.com

I think I do not have correct LAPACK/BLAS installation. I just copied lapack.lib and blas.lib in python searchable path.
Up to now I am not able to correctly understand how LAPACK installtion should be performed under Windows. It seems to be really tricky and Pythonxy does not have any LAPACK in.



--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To post to this group, send email to pyth...@googlegroups.com.
To unsubscribe from this group, send email to pythonxy+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pythonxy?hl=en.


Reply all
Reply to author
Forward
0 new messages