Guilherme Freitas
unread,Nov 6, 2009, 9:52:53 PM11/6/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to CVXOPT
Hi everybody,
For some reason, I can't install CVXOPT with support for GLPK. It
seems that GSL, FFTW and DSDP support are also missing.
Here is what I did to install CVXOPT. First I installed the GSL, GLPK,
FFTW and DSDP. All compiled without a problem, and I ran tests at
least for the GSL and GLPK. Then, I edited the 'setup.py' file setting
the variables accordingly (see end of this message for a copy of the
relevant section of my 'setup.py'). Then I installed CVXOPT. In the
end, cvxopt installs perfectly, but the 'glpk' module is not there.
Here is what I get with a 'import cvxopt; dir(cvxopt)":
In [3]: dir(cvxopt)
Out[3]:
['__all__',
'__builtin__',
'__builtins__',
'__doc__',
'__file__',
'__name__',
'__path__',
'base',
'cos',
'div',
'exp',
'getseed',
'log',
'matrix',
'matrix_repr',
'matrix_str',
'max',
'min',
'mul',
'normal',
'omax',
'omin',
'printing',
'setseed',
'sin',
'sparse',
'spdiag',
'spmatrix',
'spmatrix_repr',
'spmatrix_str',
'sqrt',
'uniform']
If it matters, I am using the Enthought Python Distribution, EPD,
their latest stable release.
Thanks everybody
--Guilherme
[Part of my 'setup.py']
---------------------------------------------------------------------------------------------------
# directory containing libblas and liblapack
ATLAS_LIB_DIR = '/Developer/SDKs/MacOSX10.5.sdk/usr/lib'
# Set to 1 if you are using the random number generators in the GNU
# Scientific Library.
BUILD_GSL = 1
# Directory containing libgsl (used only when BUILD_GSL = 1).
GSL_LIB_DIR = '/usr/local/lib'
# Directory containing the GSL header files (used only when BUILD_GSL
= 1).
GSL_INC_DIR = '/usr/local/include'
# Set to 1 if you are installing the fftw module.
BUILD_FFTW = 1
# Directory containing libfftw3 (used only when BUILD_FFTW = 1).
FFTW_LIB_DIR = '/usr/local/lib'
# Directory containing fftw.h (used only when BUILD_FFTW = 1).
FFTW_INC_DIR = '/usr/local/include'
# Set to 1 if you are installing the glpk module.
BUILD_GLPK = 1
# Directory containing libglpk (used only when BUILD_GLPK = 1).
GLPK_LIB_DIR = '/usr/local/lib'
# Directory containing glpk.h (used only when BUILD_GLPK = 1).
GLPK_INC_DIR = '/usr/local/include'
# Set to 1 if you are installing the DSDP module.
BUILD_DSDP = 1
# Directory containing libdsdp (used only when BUILD_DSDP = 1).
DSDP_LIB_DIR = '/Users/guilherme/lib/DSDP5.8/lib'
# Directory containing dsdp5.h (used only when BUILD_DSDP = 1).
DSDP_INC_DIR = '/Users/guilherme/lib/DSDP5.8/include'
---------------------------------------------------------------------------------------------------