Installing QuantLib-1.0.1 On Ubuntu 10.10 DE 32bit

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Installing QuantLib-1.0.1 On Ubuntu 10.10 DE 32bit

John Willoughby
Hi
 
I thought this might be useful for people trying to installing QuantLib-1.0.1 on Ubuntu 10.10 DE 32bit
 
Cheers
 
John Willoughby
____________________________________________________________________________________________________
 
QUANTLIB-1.0.1 INSTALL ROUGH GUIDE FOR UBUNTU 10.10 32bit DESKTOP EDITION (RUNNING ON DELL MINI 9 8GB SSD)

I first off I used Synaptic Package Manager to install boost:
                libboost1.42-doc
               libboost1.42-all-dev
                libboost1.42-dev 
 
QuantLib-1.0.1 can also be successfully installed using synaptic however I found that I didn't get the associated cpp source files in ./ql/... etc. Therefore, to install QuantLib-1.0.1 I undertook the following steps:

Downloaded QuantLib-1.0.1.tar.gz from http://www.quantlib.org

Copied this tar from /home/XYZ/Downloads to /opt

                sudo cp QuantLib-1.0.1.tar.gz /opt

(why opt: http://ubuntuforums.org/archive/index.php/t-686282.html ).

Extracted tar in /opt using:

                sudo tar xzvf QuantLib-1.0.1.tar.gz

Removed the tar file copy

                 sudo rm QuantLib-1.0.1.tar.gz

Configured Quantlib:
                ./configure --disable-static CXXFLAGS=-O2

The switches where needed to fix code bloat which filled up my 8GB SSD and  were suggested in an old thread by Luigi (see: http://old.nabble.com/Compilation-and-disk-space-td29830549.html)

Now ran make:

    make && sudo make install
Next used:
                sudo ldconfig

(why ldconfig: http://old.nabble.com/error-while-loading-shared-libraries%3A-libQuantLib-0.9.9.so-td26545177.html )

Done.

Now try to run
    quantlib-test-suite
Which gave me
                Tests completed in 26 m 44 s   
                ***No errors detected
 
and another example like FRA:
    cd /opt/QuantLib-1.0.1/Examples/FRA
    sudo g++ -g -Wall -o a.out -I/usr/local/include/boost-1_38 FRA.cpp -lQuantLib
    sudo ./a.out

 
 
 
 


------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Installing QuantLib-1.0.1 On Ubuntu 10.10 DE 32bit

Dirk Eddelbuettel

On 4 March 2011 at 13:28, John Willoughby wrote:
| Hi
|  
| I thought this might be useful for people trying to installing QuantLib-1.0.1
| on Ubuntu 10.10 DE 32bit

An alternative that may be of interest is to

  a) add a 'deb-src' entry for apt and the package management system pointing
     to Debian testing or unstable (no binaries will every get installed that
     way)

  b) say 'apt-get source quantlib' to get ready-made source packages

  c) build those packages locally; I use dpkg et al by hand after adding a
     'local' entry in the changelog; otherwise apt can even automate this for
     you -- and you can the install the local .deb packages

There are a number of tutorials for b) and c) on the web if this interests
you. The advantage is that your version fits into the package management
system (whose strength may be one reason you installed Ubuntu in the first
place) and will seamlessly upgrade to the next version you may get from
Ubuntu.

Hope this helps,  

Dirk

 
| Cheers
|  
| John Willoughby
| ____________________________________________________________________________________________________
|  
| QUANTLIB-1.0.1 INSTALL ROUGH GUIDE FOR UBUNTU 10.10 32bit DESKTOP EDITION
| (RUNNING ON DELL MINI 9 8GB SSD)
|
| I first off I used Synaptic Package Manager to install boost:
|                 libboost1.42-doc
|                libboost1.42-all-dev
|                 libboost1.42-dev
|  
| QuantLib-1.0.1 can also be successfully installed using synaptic however I
| found that I didn't get the associated cpp source files in ./ql/...
| etc. Therefore, to install QuantLib-1.0.1 I undertook the following steps:
|
| Downloaded QuantLib-1.0.1.tar.gz from http://www.quantlib.org
|
| Copied this tar from /home/XYZ/Downloads to /opt
|
|                 sudo cp QuantLib-1.0.1.tar.gz /opt
|
| (why opt: http://ubuntuforums.org/archive/index.php/t-686282.html ).
|
| Extracted tar in /opt using:
|
|                 sudo tar xzvf QuantLib-1.0.1.tar.gz
|
| Removed the tar file copy
|
|                  sudo rm QuantLib-1.0.1.tar.gz
|
| Configured Quantlib:
|                 ./configure --disable-static CXXFLAGS=-O2
|
| The switches where needed to fix code bloat which filled up my 8GB SSD and
| were suggested in an old thread by Luigi (see: http://old.nabble.com/
| Compilation-and-disk-space-td29830549.html)
|
| Now ran make:
|
|     make && sudo make install
| Next used:
|                 sudo ldconfig
|
| (why ldconfig: http://old.nabble.com/
| error-while-loading-shared-libraries%3A-libQuantLib-0.9.9.so-td26545177.html )
|
| Done.
|
| Now try to run
|     quantlib-test-suite
| Which gave me
|                 Tests completed in 26 m 44 s  
|                 ***No errors detected
|  
| and another example like FRA:
|     cd /opt/QuantLib-1.0.1/Examples/FRA
|     sudo g++ -g -Wall -o a.out -I/usr/local/include/boost-1_38 FRA.cpp
| -lQuantLib
|     sudo ./a.out
|
|  
|  
|  
|  
|
|
| ----------------------------------------------------------------------
| ------------------------------------------------------------------------------
| What You Don't Know About Data Connectivity CAN Hurt You
| This paper provides an overview of data connectivity, details
| its effect on application quality, and explores various alternative
| solutions. http://p.sf.net/sfu/progress-d2d
| ----------------------------------------------------------------------
| _______________________________________________
| QuantLib-users mailing list
| [hidden email]
| https://lists.sourceforge.net/lists/listinfo/quantlib-users

--
Dirk Eddelbuettel | [hidden email] | http://dirk.eddelbuettel.com

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users