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

(Last Updated On: June 3, 2010)
Learn the Secret

Get  our 2 Free Books

Get these now which land directly to their inbox.
Invalid email address

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
This seems to work with the exception of using my language like:
python setup.py test
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
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!
This entry was posted in Quant Development and tagged , , , , , , , , on by .

About caustic

Hi i there My name is Bryan Downing. I am part of a company called QuantLabs.Net This is specifically a company with a high profile blog about technology, trading, financial, investment, quant, etc. It posts things on how to do job interviews with large companies like Morgan Stanley, Bloomberg, Citibank, and IBM. It also posts different unique tips and tricks on Java, C++, or C programming. It posts about different techniques in learning about Matlab and building models or strategies. There is a lot here if you are into venturing into the financial world like quant or technical analysis. It also discusses the future generation of trading and programming Specialties: C++, Java, C#, Matlab, quant, models, strategies, technical analysis, linux, windows P.S. I have been known to be the worst typist. Do not be offended by it as I like to bang stuff out and put priorty of what I do over typing. Maybe one day I can get a full time copy editor to help out. Do note I prefer videos as they are much easier to produce so check out my many video at youtube.com/quantlabs