Monday, April 29, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 7422  / 3 Years ago, thu, september 16, 2021, 8:53:12

I want to install this file: cvxopt in my Ubuntu 13.04. But I got the following error message:



running install
running build
running build_py
running build_ext
building 'base' extension
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c C/base.c -o build/temp.linux-x86_64-2.7/C/base.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c C/dense.c -o build/temp.linux-x86_64-2.7/C/dense.o
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c C/sparse.c -o build/temp.linux-x86_64-2.7/C/sparse.o
C/sparse.c: In function ‘sparse_concat’:
C/sparse.c:368:28: warning: variable ‘blk_ncols’ set but not used [-Wunused-but-set-variable]
x86_64-linux-gnu-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -D_FORTIFY_SOURCE=2 -g -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security build/temp.linux-x86_64-2.7/C/base.o build/temp.linux-x86_64-2.7/C/dense.o build/temp.linux-x86_64-2.7/C/sparse.o -lm -llapack -lblas -o build/lib.linux-x86_64-2.7/cvxopt/base.so
/usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas
collect2: error: ld returned 1 exit status
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1


Any help or suggestions will be appreciated!


More From » software-installation

 Answers
4

So you don't have lapack and blas libraries. You should be able to install them like



sudo apt-get install libblas-dev
sudo apt-get install liblapack-dev


When I tried the compilation it ended the same as for you, after installing the two libraries it finished successfully.


[#29260] Friday, September 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nalystcul

Total Points: 390
Total Questions: 106
Total Answers: 115

Location: Tokelau
Member since Sun, May 7, 2023
1 Year ago
;