$ wget https://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.7.zip $ unzip Ipopt-3.12.7.zip $ rm Ipopt-3.12.7.zip $ cd Ipopt-3.12.7 $ ./configure ...... configure: Main configuration of Ipopt successful $ make $ make test $ make install
#确保安装环境 $ sudo apt-get install libblas3 libblas-dev liblapack3 liblapack-dev gfortran #方式2:源代码编译 $ tar -xf coinhsl-archive-2014.01.17.tar.gz $ cd Ipopt-3.12.7/ThirdParty/HSL $ ln -s ../../../coinhsl-archive-2014.01.17/ coinhsl $ ./configure --enable-loadable-library #出现 configure: Configuration of ThirdPartyHSL successful $ make install
在$ make test 过程中出现问题:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# 出现错误: Exception of type: OPTION_INVALID in file "IpAlgBuilder.cpp" at line 271: Exception message: Selected linear solver MA27 not available. Tried to obtain MA27 from shared library "libhsl.so", but the following error occured: libhsl.so: cannot open shared object file: No such file or directory