fbpx

I am closer to building Quantlib SWIG,for Ruby ,Python using C++,wrappers in Ubuntu Linux

(Last Updated On: June 3, 2010)

I am closer to building Quantlib SWIG,for Ruby ,Python using C++,wrappers in Ubuntu Linux

I have a spent one day trying to build both the QuantLib and Quantlib SWIG libraries and objects within my Linux environment. It seems Ubuntu was favoured choice for that.
For the proper tar balls download, I used a variety including the SWIG from Ubuntu’s Launch pad site and the one on Sourceforge. It seems that you make sure the Quantlib library must synch up exactly with the SWIG version so you need 1.0 for both. I do not know if QuantLib version 1.0.1 is compatible with Quantlib SWIG 1.0. I could be wrong so if someone can comment to give me guidance on that would be appreciated. As a result, only focus on the Quantlib 1.0 and Bindings subfolder for the corresponding SWIG components.
Next up, I found that I was able to build QuantLib library fairly easily. I virtually had no issues with this regardless of platform if it is Ubuntu Linux, Centos (like Red Hat), or Windows. It is quite easy.
It is this QuantLib SWIG that is a bitch. I only care about Python and Ruby for now. Using the exact instructions at
http://chicagoquantitativetrading.wordpress.com/
This seems to work with the exception of using my language like:
python setup.py test
Or
ruby setup.rb test
Both failed but it may be due to file path issues. I am still working on it but the errors seem strange.
I also finding if I follow the instructions from the READ ME text file for either subdirectory of Ruby or Python, I should build first using:
ruby setup.rb wrap
Or
python setup.rb wrap
I then use the typical order of:
Build, test, install.
I did look at these results but did build ok. It seems it points back to a missing file path. I am still experimenting with this to ensure a proper build and test for either Python or Ruby.
I shall report something once I get it running fine.

NOTE I now post my TRADING ALERTS into my personal FACEBOOK ACCOUNT and TWITTER. Don't worry as I don't post stupid cat videos or what I eat!

Subscribe For Latest Updates

Sign up to best of business news, informed analysis and opinions on what matters to you.
Invalid email address
We promise not to spam you. You can unsubscribe at any time.

NOTE!

Check NEW site on stock forex and ETF analysis and automation

Scroll to Top