Re: Failure to build quantlib-python on Mandrake 9.1

Posted by Liguo Song on
URL: http://quantlib.414.s1.nabble.com/Failure-to-build-quantlib-python-on-Mandrake-9-1-tp2670p2675.html

Hi, Guys,

> I don't know how the rpms are packaged---did the above also install the
> include files? Wait, I'll check on the site... Nope. You should have
> installed QuantLib-devel-0.3.3-1 as well.
The QuantLib only includes the essential libraries. It is intend to be
the minimal package to support any future application that build on
QuantLib. QuantLib-devel is the package that you need if you want to
to program or build any package needs QuantLib.

There should also be some other packages coming, such as QuantLib-doc,
QuantLib-python and etc. I am still working my way through this right
now.

> Hmm, removing the libs might not be enough. You might have old header files
> lying around in /usr/local/include or somewhere. Locate qldefines.hpp and
> check the definition of QL_VERSION inside it. If it's earlier than 0.3.3,
> remove the ql/ directory from your include path and install the
> QuantLib-devel rpm instead.
It is a good idea to remove all the older version of QuantLib. But it
could be very time consuming if they are simply installed by tar
balls, and the building directory is already gone.

But, the headers in /usr/local/include shouldn't be too much trouble
as the rpms will install the new headers into /usr/include, which
should be searched before /usr/local/include in standard installation.
I am not 100% sure on this one. So, don't bet your job on it. :)

Have a nice day!


Liguo (Leo)