-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install issue on Mac #65
Comments
@BlueCollarWorker What is the output of Here is mine on the currency.so
|
Here is what I get: otool -L currency.so currency.so: /opt/local/lib/libQuantLib.0.dylib (compatibility version 1.0.0, current /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version I'll try to compile one module with few dependencies directly and see if I 2014-09-16 18:07 GMT+02:00 Didrik Pinte notifications@github.com:
|
@BlueCollarWorker The flat namespace just reminded me of something. How did you compile QuantLib? You need to make sure that you used the correct stdlib with clang otherwise, it will not work. From the installation notes (http://quantlib.org/install/macosx.shtml):
|
I thought I followed the very same instructions. QuantLib examples work, so |
Just got it to work... I installed all from scratch. In my first attempt, I installed boost using brew, but now from source. I also noticed that the INCLUDE_DIRS in the setup file had '..sources/boost/1_55_0' whereas my boost version is 1_56_0, so I changed the 55 to 56. In any case, it seems to be working well now. Thank's a lot for your help. |
Great! Closing now. |
Hi guys,
I have an install issue on Mac (Mac OS 10.9.4). I've installed QuantLib 1.3 and it works fine (example runs). Its located under opt/local, so I've added the opt/local/include and opt/local/lib directories into the setup.py file.
I then 'make build' and 'make install', and the pyql seems to install under my site-packages folder. It installs under a folder called quantlib-0.1-py2.7-macosx-10.5-x86_64.egg (bunch of .so files under a subfolder called quantlib). If I try to import currency (or any other module) it does not find it. However, if I supplement the pythonpath to go insider the folder mentioned above, and then import currency, I get the following message:
ImportError: dlopen(/Users/barnarson/anaconda/lib/python2.7/site-packages/quantlib-0.1-py2.7-macosx-10.5-x86_64.egg/quantlib/currency.so, 2): Symbol not found: _ZN8QuantLib8Currency4DataC1ERKSsS3_iS3_S3_iRKNS_8RoundingES3_RKS0
Referenced from: /Users/barnarson/anaconda/lib/python2.7/site-packages/quantlib-0.1-py2.7-macosx-10.5-x86_64.egg/quantlib/currency.so
Expected in: flat namespace
in /Users/barnarson/anaconda/lib/python2.7/site-packages/quantlib-0.1-py2.7-macosx-10.5-x86_64.egg/quantlib/currency.so
Can you give me any hint as to what might have gone wrong?
P.S. I appreciate your work, the project is outstanding.
The text was updated successfully, but these errors were encountered: