On Wed, 2015-04-08 at 13:03 +0200, Logan Page wrote:
> 
> I'm hoping that someone can help me with a install / build problem.
> I'm trying to build nlopt from source on an Ubuntu 14.04 (64-bit)
> machine.

So why do you want to build it from source instead of using a ready-made
pre-built package?

    http://packages.ubuntu.com/source/trusty/nlopt

> Installation steps:
> 
> |git clone git://github.com/stevengj/nlopt
> cd nlopt
> git checkout nlopt-2.4.2
> |sudo sh autogen.sh --enable-shared
> sudo make 

Don't ever use sudo when you don't fully understand what you are doing!

>From your error message, it looks like if you didn't have all the
dependencies installed, or maybe you have messed around with your build
directory, and something went wrong in the process.

On Ubuntu, installing required build dependencies is as easy as:

    sudo apt-get build-dep nlopt

After that, make a clean checkout and follow the official installation
instructions (note how there is no mention of sudo anywhere):

    https://github.com/stevengj/nlopt

Specify a prefix in your home directory so that you won't need superuser
rights upon installation: --prefix=$HOME/opt/nlopt .

-- 
Sincerely yours,
Yury V. Zaytsev



_______________________________________________
NLopt-discuss mailing list
NLopt-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to