# Note: depends on cmake wget -c https://github.com/stevengj/nlopt/archive/v2.6.2/nlopt-2.6.2.tar.gz tar -xzf nlopt-2.6.2.tar.gz cd nlopt-2.6.2 mkdir -p build cd build cmake .. -DCMAKE_INSTALL_PREFIX="/usr" make # Doesn't mind -j# make install