Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Guide to Compilation on Linux

Dario Izzo edited this page May 11, 2015 · 1 revision

Compiling under Unix

If you have a unix based operating system (also mac osx), you will need to compile PaGMO from the source code. This is straight forward as far as everything works :). We will assume that you have downloaded the git repository and that the working directory is pagmo/

  1. Install the boost libraries system wide. You will need boost thread and boost serialization. For PyGMO you will need boost python. For the GTOP database you will need boost date-time.

  2. Install blas and gsl libraries (optional): On debian based system it's possible to install blas and gsl library in this way

     sudo apt-get install libgsl0-dev libblas-dev
    
  3. Compile and install nlopt library (optional):. Download them from here http://ab-initio.mit.edu/wiki/index.php/NLopt

  4. Create a directory named build within the working directory and move there:

     mkdir build
     cd build
    
  5. Run ccmake to configure PaGMO (under osx this needs to be installed). Assuming a system wide installation of the application we type

     ccmake ../
    
  6. Select the options you want. Choose to build main.cpp and/or PyGMO (the python module). Configure two times and generate. Then quit. To build the python module on debian based system you need to install python-dev and python-networkx packages

  7. Now build the code

     make
    
  8. Install the libraries and python module by typing

     make install
    
  9. Update the libraries database so that the newly installed pagmo libraries (static and dynamic) are found

     sudo ldconfig
    
Clone this wiki locally