Hi Yury,

I figured it out!

In Mac, it's not


export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/foo/bar/lib


but


export LD_LIBRARY_PATH=${DYLD_LIBRARY_PATH}:/foo/bar/lib

Now I can import nlopt!

Thanks a lot for your help,
Ed


*--*
*PhD Candidate*
*Quantum Photonics Lab*
*Research Lab for Electronics, MIT*
*Office: 36-569*
*Scholar Profile
<http://scholar.google.com/citations?user=d5_MmyoAAAAJ&hl=en>*


On Mon, Jul 14, 2014 at 7:57 AM, Yury V. Zaytsev <[email protected]> wrote:

> On Mon, 2014-07-14 at 07:37 -0400, Edward H. Chen wrote:
> >
> > Here's more or less how I bash'd it:
>
> I'm not sure whether you really have to, but I tend to explicitly
> specify --with-python .
>
> Also, not sure what the default prefix is, maybe it's /usr/local and the
> Python from Anaconda doesn't add it to PYTHONPATH automatically.
>
> If I were you, I would specify the prefix in my home directory, like
> --prefix=$HOME/opt/nlopt and then you won't need sudo, and you know for
> sure where the module is going to be installed, so that you can add it
> to PYTHONPATH like:
>
>     export
> PYTHONPATH=$HOME/opt/nlopt/lib/pythonX.Y/site-packages:$PYTHONPATH
>
> Hope that helps,
>
> --
> Sincerely yours,
> Yury V. Zaytsev
>
>
>
_______________________________________________
NLopt-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/nlopt-discuss

Reply via email to