Re: QuantLib installation on Mac OS X

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/QuantLib-installation-on-Mac-OS-X-tp15685p15695.html

And you had removed the other export, right? Does it work if you just
use export DYLD_LIBRARY_PATH=/opt/local/lib?

Anybody else on Mac OS X having the same problem?

Luigi

On Wed, Aug 6, 2014 at 9:05 PM, Jackie Jin <[hidden email]> wrote:

> I tried 1. export DYLD_LIBRARY_PATH=/opt/local/mysql/lib:/opt/local/lib:$DYLD_LIBRARY_PATH
>           2. export DYLD_LIBRARY_PATH="/opt/local/mysql/lib:/opt/local/lib:$DYLD_LIBRARY_PATH”
>           3. export DYLD_LIBRARY_PATH=/opt/local/mysql/lib/:/opt/local/lib:$DYLD_LIBRARY_PATH
>           4. export DYLD_LIBRARY_PATH="/opt/local/mysql/lib/:/opt/local/lib:$DYLD_LIBRARY_PATH”
>
> Unfortunately, none of them works.
>
> Jackie
>
> On Aug 6, 2014, at 11:26 AM, Luigi Ballabio <[hidden email]> wrote:
>
>> Yes, the extra DYLD_LIBRARY_PATH would cause problems. The second one
>> would override the first. In your .bash_profile you should probably
>> have something like this instead:
>>
>> export DYLD_LIBRARY_PATH=/opt/local/mysql/lib:/opt/local/lib:$DYLD_LIBRARY_PATH
>>
>> that is, both the paths you want to add, plus whatever was the value
>> set by the system before.
>> Let me know if this works, so I can update the instructions on the site.
>>
>> Luigi
>>
>>
>>
>> On Wed, Aug 6, 2014 at 4:22 PM, Jackie Jin <[hidden email]> wrote:
>>> Hi there,
>>>   I tried to get Quantlib installed on my Mac OS X. I followed the
>>> installation on the official
>>> websitehttp://quantlib.org/install/macosx.shtml. Everything works fine and I
>>> can use g++ -I/opt/local/include/ -I/opt/local/include/boost
>>> BermudanSwaption.cpp -o bermudanswaption -L/opt/local/lib/ -lQuantLib to
>>> compile and run.
>>> The Appendix: Boost configuration really makes me suffer. No matter if I put
>>> export DYLD_LIBRARY_PATH=/opt/local/lib in the .bash_profile, I cannot link
>>> QuantLib against .o files, which means I have to type " g++ bermudanswaption
>>> -L/opt/local/lib/ -lQuantLib " manually to make it work.
>>> PS: I also have another export DYLD_LIBRARY_PATH=/opt/local/mysql/lib in my
>>> bash_profile. Not sure if this command caused the problem.
>>>
>>> --
>>>
>>>
>>>
>>>
>>> Best,
>>> Jackie Jin
>>>
>>> ------------------------------------------------------------------------------
>>> Infragistics Professional
>>> Build stunning WinForms apps today!
>>> Reboot your WinForms applications with our WinForms controls.
>>> Build a bridge from your legacy apps to the future.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> QuantLib-users mailing list
>>> [hidden email]
>>> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>>>
>>
>>
>>
>> --
>> <https://implementingquantlib.blogspot.com>
>> <https://twitter.com/lballabio>
>



--
<https://implementingquantlib.blogspot.com>
<https://twitter.com/lballabio>

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users