安裝CPPAD和Fortran
$ sudo apt-get install cppad gfortran
獲取ipopt源代碼
下載Ipopt-3.12.8.tgz
https://www.coin-or.org/download/source/Ipopt/
$ wget http://www.coin-or.org/download/source/Ipopt/Ipopt-3.12.8.tgz $ tar xvzf Ipopt-3.12.8.tgz
$ cd CUSTOM_PATH / Ipopt-3.12.8 / ThirdParty / Blas
$ ./get.Blas
$ cd ../Lapack
$ ./get.Lapack
$ cd ../Mumps
$ ./get.Mumps
$ cd ../Metis
$ ./get.Metis
$ cd CUSTOM_PATH / Ipopt-3.12.8
$ mkdir build
$ cd build
$ ../configure
$ make -j4
$ make install
將安裝文件複製到特定目錄
$ cd CUSTOM_PATH / Ipopt-3.12.8 / build
$ sudo cp -a include / * / usr / include /.
$ sudo cp -a lib / * / usr / lib /.