building QuantLib-SWIG-1.2 in rhel6
Posted by dgre420 on May 28, 2013; 6:35pm
URL: http://quantlib.414.s1.nabble.com/building-QuantLib-SWIG-1-2-in-rhel6-tp14288.html
Hello!
Thank you for a phenomenal library. Kindly, please help me. I have successfully built QuantLib-1.2.1 under /app/lib/QuantLib-1.2.1 and i'm running 64-bit python 2.6 in rhel6... the quantlib libraries (libQuantLib.so, etc...) are located here: /usr/local/lib. I'm having the most difficult time building the SWIG wrappers for Python. Once, QuantLib is installed (which is confirmed by running some examples from the Examples folder), i go to the directory where i unzipped QuantLib-SWIG (/app/lib/QuantLib-SWIG-1.2) and i run:
sudo ./configure
make -C Python
When i do this, everything looks as if it works as no errors are thrown. I then go into /app/lib/QuantLib-SWIG-1.2/Python and I run:
python setup.py build test install
and the test phase fails with the following error:
ImportError: libQuantLib.so.0: cannot open shared object file: No such file or directory
I have not seen answers to this elsewhere, however, should i have missed one, i do sincerely apologize.
Thank you in advance for your help!!
Guido