Project

General

Profile

Actions

Install EMAN2 » History » Revision 28

« Previous | Revision 28/87 (diff) | Next »
Neil Voss, 08/13/2012 09:25 PM


Install EMAN2/SPARX

It is best to install EMAN2/SPARX from source, so that do not have conflicts with having two different versions of python on your system. Binaries of EMAN2/SPARX all come with their own python pre-installed.

This documentation assumes you are using CentOS 6 (written as of CentOS 6.2)

Install require pre-packages for EMAN2 compiling

yum based packages

  • Make sure EPEL is install, if not go here: Download additional Software (CentOS Specific)
  • Use yum to install devel libraries:
    sudo yum install fftw-devel gsl-devel boost-python numpy \
     PyQt4-devel cmake ipython hdf5-devel libtiff-devel libpng-devel \
     PyOpenGL ftgl-devel db4-devel python-argparse openmpi-devel
    

bsddb3

Additionally you need to install the python-bsddb3 library (not available via YUM). I just use the pypi easy_installer, yum will never know.

sudo easy_install bsddb3

pyMPI

I think this is a dead module (latest version from 2008), but it is required for some EMAN2/SPARX functions, including sxisac.py

  • Download pyMPI from here:
    http://sourceforge.net/projects/pympi/files/pyMPI/2.5%20beta/
  • Extract the contents:
    tar zxvf pyMPI-2.5b0.tar.gz
  • Compile:
    cd pyMPI-2.5b0
    export CFLAGS=`python-config --cflags`
    export LDFLAGS=`python-config --ldflags`
    ./configure
    make
    

    cd pyMPI-2.5b0
    setenv CFLAGS `python-config --cflags`
    setenv LDFLAGS `python-config --ldflags`
    ./configure
    make
    

Download the source

  1. To download the source code go to the link:
  2. Click on "Current stable version - direct link"
  3. Go under the heading "Source" at bottom of page
  4. Click to download the eman-source-2.xx.tar.gz file (as of August 2012, 2.xx is 2.06)

Work with the source

  1. go to the directory with the source code
  2. extract the archive:
    tar zxvf eman-source-2.06.tar.gz
    
  3. go into directory
    cd EMAN2/src/build
  4. start configure script:
    cmake ../eman2/
    • Note: alternatively you can run ccmake ../eman2/ and configure all the parameters
  5. start compiling:
    make
  6. install to directory:
    sudo make install

Set environmental variables

bash

sudo nano /etc/profile.d/eman2.sh
export EMAN2DIR=/usr/local/EMAN2
export PATH=${EMAN2DIR}/bin:${PATH}
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${EMAN2DIR}/lib
export PYTHONPATH=${EMAN2DIR}/lib:${EMAN2DIR}/bin

Test to see if code works

see http://blake.bcm.edu/emanwiki/EMAN2/FAQ/EMAN2_unittest

cd EMAN2/test/rt
./rt.py

Documentation


< Install EMAN 1 | Install SPIDER >


Updated by Neil Voss over 12 years ago · 28 revisions