error installing cvxpy-feature-dccp from ubuntu

54 views
Skip to first unread message

paolo.chi...@gmail.com

unread,
Nov 3, 2016, 4:44:33 AM11/3/16
to cvxpy
Hello,
I would like to install cvxpy-feature-dccp, which I get from https://github.com/cvxgrp/cvxpy/tree/feature/dccp
When running python setup.py install in the folder, I get:
(last lines)
Processing cvxopt-1.1.8.tar.gz
Writing /tmp/easy_install-TF5ErV/cvxopt-1.1.8/setup.cfg
Running cvxopt-1.1.8/setup.py -q bdist_egg --dist-dir /tmp/easy_install-TF5ErV/cvxopt-1.1.8/egg-dist-tmp-PSwyoH
src/C/sparse.c: In function ‘sparse_concat’:
src/C/sparse.c:368:30: warning: variable ‘blk_ncols’ set but not used [-Wunused-but-set-variable]
         int_t blk_nrows = 0, blk_ncols = 0;
                              ^
/usr/bin/ld: cannot find -llapack
/usr/bin/ld: cannot find -lblas
collect2: error: ld returned 1 exit status
error: Setup script exited with error: command 'gcc' failed with exit status 1

Python is the one from anaconda2. numpy is installed as I have been running examples from standard cvxpy installation.
Is there any idea on what the problem really is, and how to solve it?
Thank you,

Steven Diamond

unread,
Nov 4, 2016, 1:20:28 PM11/4/16
to cvxpy
You need to run these lines before you install cvxopt (which happens during "python setup.py install")

sudo apt-get install -qq libatlas-base-dev gfortran export ATLAS="/usr/lib/atlas-base/libatlas.so"

Reply all
Reply to author
Forward
0 new messages