-
Notifications
You must be signed in to change notification settings - Fork 86
Guide to Compilation on Linux
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/
-
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.
-
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
-
Compile and install nlopt library (optional):. Download them from here http://ab-initio.mit.edu/wiki/index.php/NLopt
-
Create a directory named build within the working directory and move there:
mkdir build cd build
-
Run ccmake to configure PaGMO (under osx this needs to be installed). Assuming a system wide installation of the application we type
ccmake ../
-
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
andpython-networkx
packages -
Now build the code
make
-
Install the libraries and python module by typing
make install
-
Update the libraries database so that the newly installed pagmo libraries (static and dynamic) are found
sudo ldconfig