下载v2.6.1.tar.gz
https://nlopt.readthedocs.io/en/latest/
安装(NLopt目录下)
mkdir build cd build cmake .. make sudo make install
https://www.cnblogs.com/GuanghuiLiu/p/9967684.html
https://zhuanlan.zhihu.com/p/24350637