Hi Yuri,
Thank you for your reply.
/usr/local prefix is correct and is what I want but the python stuff should
go under /usr/local/python_${VERSION}/dist-packages not
/usr/local/python_${VERSION}/site-packages
/usr/local/python_${VERSION}/dist-packages is for the python modules not
provided by the distribution but which are built for the python interpreter
of the distribution.
If there is a configure option to specify this, I would be happy to learn
it, but it is not --prefix.
Thank you,
On Sun, Mar 6, 2016 at 2:21 PM, Yury V. Zaytsev <[email protected]> wrote:
> On Sun, 6 Mar 2016, Bernard GODARD wrote:
>
> export PYTHON=python3
>> export PYTHON_CONFIG=python3.5-config
>> ./configure --enable-shared
>>
>> The python modules get installed in /usr/local/lib/python3.5/site-packages
>>
>
> You didn't explicitly specify the desired `--prefix=`, and so `/usr/local`
> was used as a default. If you want to install nlopt in `/usr` (which one
> definitively shouldn't do unless one *really* knows what she/he is doing),
> then specify the prefix accordingly.
>
> The right way, of course, is to use a virtualenv and/or $HOME/opt tree
> when installing user packages instead.
>
> --
> Sincerely yours,
> Yury V. Zaytsev
>
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss