unable to install cvxopt on centos 6 x64- cannot find -llapack

214 views
Skip to first unread message

Arvind

unread,
Nov 15, 2011, 7:11:01 AM11/15/11
to CVXOPT
Hello,

I am trying to install CVXOPT on my Linux x64 CentOS 6 system-
even though I have installed BLAS and LAPACK and I can see the libs
for those in /usr/lib64, when I run "setup.py" to try and install
CVXOPT, I get the following error/log --


[root@localhost src]# python setup.py install
running install
running build
running build_py
running build_ext
building 'base' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/
include/python2.6 -c C/base.c -o build/temp.linux-x86_64-2.6/C/base.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/
include/python2.6 -c C/dense.c -o build/temp.linux-x86_64-2.6/C/
dense.o
gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -Wall -Wp,-
D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-
size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/
include/python2.6 -c C/sparse.c -o build/temp.linux-x86_64-2.6/C/
sparse.o
gcc -pthread -shared build/temp.linux-x86_64-2.6/C/base.o build/
temp.linux-x86_64-2.6/C/dense.o build/temp.linux-x86_64-2.6/C/sparse.o
-L/usr/lib64 -L/usr/lib64 -lm -llapack -lblas -lpython2.6 -o build/
lib.linux-x86_64-2.6/cvxopt/base.so
/usr/bin/ld: cannot find -llapack
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1

Any help on resolving this problem, would be appreciated...

Regards,
Arvind.

Martin

unread,
Nov 16, 2011, 3:28:29 AM11/16/11
to cvx...@googlegroups.com
Hi,

It looks like the -m64 flag is missing in the line concerning base.so. I don't know if this makes a difference on a 64 bit system, but perhaps ld is therefore looking for a 32bit lapack library?

Martin

Prasanna Rajagopal

unread,
Jul 3, 2013, 4:17:53 PM7/3/13
to cvx...@googlegroups.com, arv...@taurusseo.com
Hi, Aravind. I'm having the same problem. Were you able to overcome this? Please advise as soon as possible, I'm on a deadline.

Thank you,
Prasanna.
Reply all
Reply to author
Forward
0 new messages