Install EMAN2 » History » Version 26
Neil Voss, 08/13/2012 08:46 PM
| 1 | 1 | Neil Voss | h1. Install EMAN2/SPARX |
|---|---|---|---|
| 2 | |||
| 3 | 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. |
||
| 4 | 2 | Neil Voss | |
| 5 | 6 | Neil Voss | This documentation assumes you are using CentOS 6 (written as of CentOS 6.2) |
| 6 | |||
| 7 | h2. Install require pre-packages for EMAN2 compiling |
||
| 8 | |||
| 9 | 7 | Neil Voss | * Make sure EPEL is install, if not go here: [[Download additional Software (CentOS Specific)]] |
| 10 | * Use yum to install devel libraries: |
||
| 11 | <pre> |
||
| 12 | 10 | Neil Voss | sudo yum install fftw-devel gsl-devel boost-python numpy \ |
| 13 | 12 | Neil Voss | PyQt4-devel cmake ipython hdf5-devel libtiff-devel libpng-devel \ |
| 14 | 25 | Neil Voss | PyOpenGL ftgl-devel db4-devel python-argparse openmpi-devel |
| 15 | 8 | Neil Voss | </pre> |
| 16 | 22 | Neil Voss | * Additionally you need to install the python-bsddb3 library (not available via YUM). I just use the pypi easy_installer, yum will never know. |
| 17 | <pre> |
||
| 18 | sudo easy_install bsddb3 |
||
| 19 | </pre> |
||
| 20 | 26 | Neil Voss | * Additionally you need to install the python mpi library called mpi4py (also not available via YUM). I just use the pypi easy_installer, yum will never know. |
| 21 | <pre> |
||
| 22 | sudo easy_install mpi4py |
||
| 23 | </pre> |
||
| 24 | 8 | Neil Voss | |
| 25 | 3 | Neil Voss | h2. Download the source |
| 26 | |||
| 27 | # To download the source code go to the link: |
||
| 28 | #* http://blake.bcm.edu/emanwiki/EMAN2 |
||
| 29 | # Click on *"Current stable version - direct link"* |
||
| 30 | # Go under the heading "Source" at bottom of page |
||
| 31 | 17 | Neil Voss | # Click to download the *eman-source-2.xx.tar.gz* file (as of August 2012, 2.xx is 2.06) |
| 32 | 3 | Neil Voss | |
| 33 | h2. Work with the source |
||
| 34 | |||
| 35 | # go to the directory with the source code |
||
| 36 | # extract the archive: |
||
| 37 | <pre> |
||
| 38 | tar zxvf eman-source-2.06.tar.gz |
||
| 39 | </pre> |
||
| 40 | 4 | Neil Voss | # go into directory |
| 41 | 1 | Neil Voss | <pre>cd EMAN2/src/build</pre> |
| 42 | 15 | Neil Voss | # start configure script: |
| 43 | <pre>cmake ../eman2/</pre> |
||
| 44 | 19 | Neil Voss | #* Note: alternatively you can run @ccmake ../eman2/@ and configure all the parameters |
| 45 | 11 | Neil Voss | # start compiling: |
| 46 | 15 | Neil Voss | <pre>make</pre> |
| 47 | 18 | Neil Voss | # install to directory: |
| 48 | <pre>sudo make install</pre> |
||
| 49 | 3 | Neil Voss | |
| 50 | 23 | Neil Voss | h2. Set environmental variables |
| 51 | |||
| 52 | h3. bash |
||
| 53 | |||
| 54 | <pre>sudo nano /etc/profile.d/eman2.sh</pre> |
||
| 55 | |||
| 56 | <pre> |
||
| 57 | 24 | Neil Voss | export EMAN2DIR=/usr/local/EMAN2 |
| 58 | export PATH=${EMAN2DIR}/bin:${PATH} |
||
| 59 | export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${EMAN2DIR}/lib |
||
| 60 | export PYTHONPATH=${EMAN2DIR}/lib:${EMAN2DIR}/bin |
||
| 61 | 23 | Neil Voss | </pre> |
| 62 | |||
| 63 | |||
| 64 | 16 | Neil Voss | h2. Test to see if code works |
| 65 | |||
| 66 | see http://blake.bcm.edu/emanwiki/EMAN2/FAQ/EMAN2_unittest |
||
| 67 | |||
| 68 | <pre> |
||
| 69 | cd EMAN2/test/rt |
||
| 70 | ./rt.py |
||
| 71 | </pre> |
||
| 72 | |||
| 73 | 3 | Neil Voss | h2. Documentation |
| 74 | |||
| 75 | * http://blake.bcm.edu/emanwiki/EMAN2/Install |
||
| 76 | 9 | Neil Voss | * http://blake.bcm.edu/emanwiki/EMAN2/FAQ/eman2BuildFAQ |
| 77 | 3 | Neil Voss | |
| 78 | 2 | Neil Voss | ______ |
| 79 | |||
| 80 | [[Install EMAN|< Install EMAN 1]] | [[Install SPIDER|Install SPIDER >]] |
||
| 81 | |||
| 82 | ______ |