在github上面有详细说明 https://github.com/stevengj/nlopt
1、获取安装包
git clone git://github.com/stevengj/nlopt
2、
cd nlopt mkdir build cd build cmake .. make sudo make install
``
安装 scotch ,参考的博客 https://blog.nickwhyy.top/scotch/
scotch 下载地址 https://gforge.inria.fr/frs/?group_id=248&release_id=10719#scotch-_6.0.7-title-content
wget https://gforge.inria.fr/frs/download.php/file/38040/scotch_6.0.7.tar.gz