Login  Register

Re: Installation issues on Mac OS X 10.11.2

Posted by xvallee on Jan 17, 2016; 4:09pm
URL: http://quantlib.414.s1.nabble.com/Installation-issues-on-Mac-OS-X-10-11-2-tp17214p17262.html

Hi,

to install Quantlib and Quantlib-SWIG on Mac OS 10.11.2 (El Capitan) and get it to work on Anaconda and pyCharm, I've followed the steps below:

1) Install Xcode 7.2, Apple's Command Line Developer Tools and Macports

2) Install boost with  sudo port install boost

3) Download Quantlib 1.7 from source forge and extracted it in /Users/my_account

4) Run ./configure --enable-static --with-boost-include=/opt/local/include/ --with-boost-lib=/opt/local/lib/ --prefix=/opt/local/ CXXFLAGS="-stdlib=libstdc++ -mmacosx-version-min=10.6" LDFLAGS="-stdlib=libstdc++ -mmacosx-version-min=10.6"

5) Remove "-lboost_thread" from Examples/FRA/Makefile.in

6) Run make && sudo make install

7) Download Quantlib-SWIG from SF and untar

8) Go into Python directory

9) Run python setup.py build, python setup.py test

10) Run python python setup.py install --prefix //anaconda/envs/your_virtual_env

Then you should be able to "import QuantLib as ql" in pyCharm, or any python IDE