Table Of Contents

Previous topic


Next topic


This Page


On Unix-like system building CPyMAD from source is most convenient and should be unproblematic.

Install dependencies

On many distributions all Dependencies can be installed from the official repositories.

Install libmadx

Download the MAD-X source from SVN

svn co

Build and install the library

mkdir build && cd build
make && make install

The install step might require root privileges if not changing the installation prefix.

Install CPyMAD

The latest CPyMAD release can conveniently be installed using pip:

pip install cern-cpymad

If you run into problems with this, you should manually download and install the CPyMad source to see in which step the problem occurs:

git clone git://
cd pymad
python build
python install

You might need root privileges for the last step if not installing to a virtualenv.