How to compile PHASER to run on multiple CPUs (Linux)

From CCP4 wiki

Download the latest phaser source package, e.g. from CCP4 ftp server.

Untar the source code (this takes awhile)

tar xvzf ccp4-6.2.0-phaser-cctbx-src.tar.gz


python ccp4-6.2.0/lib/cctbx/cctbx_sources/cctbx_project/libtbx/ --repository=ccp4-6.2.0/src/phaser/source phaser --build-boost-python-extensions=False --enable-openmp-if-possible=True --static-exe

Setup compilation (assuming bash)

. ./

Now compile


The phaser binary is in exe folder. If you prefer dynamic linking, omit the --static-exe flag.