EMAN depend on some third party libraries: Some dependency libraries are mandatory, like fftw2, gsl, and cmake for eman compilation. Some others are optional, like boost.python, Python if you need run Pyhton program in EMAN or want to program in Python with EMAN, you can turn this option off by switching ENABLE_PYTHON to off. And png, tiff, and jpeg for extra image format support. They can be controlled by flag ENABLE_TIF and ENABLE_PNG in ccmake. Qt library is necessary for EMAN’s GUI programs, if you don’t need GUI program, you can turn off the flag ENABLE_GUI. For hdf5 image support, you need HDF5 library, this can also be switched off by flag ENABLE_HDF. Also perlis needed for EMAN's help documentation generation. I will talk more about those compilation flag later.

For all these libraries, you can either install them through your Linux system’s package management, or compile them from source. For your convenience, we provide source code package download link for all these dependencies on our EMAN download site. The packages are the newest package tested compatible for EMAN compilation.

If you don’t know which dependency library are missing on your system. You can start with installation of cmake. The typical directory structure to compile EMAN is like this, all source code of EMAN stay in ~/EMAN/src/eman directory. You make a new directory build as ~/EMAN/src/build. In this build directory, type ccmake ../eman. Type ‘c’, then you will see the configuration screen for EMAN. If you type ‘t’ you can toggle to advanced mode. Except the previous introduced flags to control optional dependency package support, we have some more flags:

In the CCMAKE screen, you can type ‘c’ for configure, cmake will search through some system default directory for all dependency libraries. If it return with a page said some header or libraries missing, perhaps your system is missing some libraries. As I said, you can either installed these missing libraries through your system’s package management or compile them from source. After you resolve all the dependencies, you can type ‘c’ to configure then type ‘g’ to generate a makefile, this will also quit from cmake, now in your build directory, you need type ‘make’ then ‘make install’ to finish EMAN building.

After 'make install', in the /EMAN directory, except the src directory, you have six more directories:

Now you need setup three environmental variables to make your EMAN functional, you could add these lines into your .bashrc or .bash_profile (I use my home directory and BASH shell as an example, you can do accordingly in C Shell):

You can do several simple tests to make sure your EMAN compilation is basically successful:

  1. run ‘speedtest’, it should return you a score to tell you haw fast your CPU is;
  2. If you set ENABLE_GUI to on, run ‘eman’, an GUI program will pop up;
  3. If you set ENABLE_GUI to on, run ‘proc2d help’, a window will pop up with help to refine command, you can get help by this way for all other command;
  4. If you set ENABLE_PYHTON to on, open a Python window, type ‘import EMAN’, this should return with no error.

Congratulations, you have successfully compiled EMAN!

EMAN_COMPILE_UNIX (last edited 2008-11-26 04:42:28 by localhost)