Project

General

Profile

Install Xmipp » History » Version 57

Neil Voss, 02/29/2012 02:07 PM

1 1 Amber Herold
h1. Install Xmipp
2
3 30 Neil Voss
h2. Install documentation at Xmipp
4
5 34 Amber Herold
Biocomputing Unit at the Spanish National Center of Biotechnology (CNB-CSIC) provides "detailed documentation":http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware on how to install Xmipp on various systems. Below we cover _our way_ to get it working on your system.
6 30 Neil Voss
7 46 Amber Herold
h2. Install supporting packages
8
9 57 Neil Voss
|_.Name:|_.Download site:|_.CentOS package name|_.Fedora package name|_.SuSE rpm name|
10 46 Amber Herold
|gcc-c++||gcc-c++||
11
|openmpi-devel||openmpi-devel||
12
|libtiff-devel||libtiff-devel||
13 57 Neil Voss
|libjpeg-devel||libjpeg-devel|libjpeg-turbo-devel||
14 49 Amber Herold
|zlib-devel||zlib-devel||
15 46 Amber Herold
16 22 Neil Voss
h2. Install Xmipp from source
17
18 29 Neil Voss
We recommend installing Xmipp from source to properly use the openmpi libraries that allows you to run on multiple processors
19
20 27 Neil Voss
h3. Download source code
21
22 10 Neil Voss
* Download the v2.4 source code from http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware
23 12 Neil Voss
* Unzip the source code:
24 1 Amber Herold
<pre>tar zxvf Xmipp-2.4-src.tar.gz</pre>
25 53 Neil Voss
26
Alternatively, you may download from the svn repo:
27
28 55 Neil Voss
<pre>svn co http://newxmipp.svn.sourceforge.net/svnroot/newxmipp/tags/release-2.4/xmipp/ Xmipp-2.4-src</pre>
29 27 Neil Voss
30 54 Neil Voss
As of Feb 2012, this was required to compile the 2.4 source code.
31
32 52 Sargis Dallakyan
h3. Compile the source code
33 27 Neil Voss
34 11 Neil Voss
* Go into Xmipp source directory
35 1 Amber Herold
36 52 Sargis Dallakyan
* Add mpi compilers to your path. 
37 28 Neil Voss
<pre>
38 52 Sargis Dallakyan
export PATH=/usr/lib64/openmpi/bin:$PATH
39 1 Amber Herold
</pre>
40
41 52 Sargis Dallakyan
*Note:* This example is for x86_64 CentOS 6. If you can not find the openmpi directory, make sure you have installed the openmpi package. The installation on CentOS using yum is: yum -y install openmpi-devel.
42 27 Neil Voss
43 40 Amber Herold
* Configure
44 11 Neil Voss
45 39 Amber Herold
46 1 Amber Herold
<pre>
47 56 Neil Voss
./scons.configure \
48
 MPI_LIBDIR=/lib/usr/lib64/openmpi/lib \
49
 MPI_INCLUDE=/lib/usr/lib64/openmpi/include \
50
 MPI_LIB=mpi
51 5 Amber Herold
</pre>
52 45 Amber Herold
 
53 1 Amber Herold
* Look for the following line in the output:
54 42 Amber Herold
55 1 Amber Herold
<pre>
56
* Checking for MPI ... yes
57 11 Neil Voss
</pre>
58 42 Amber Herold
59 1 Amber Herold
* Now compile the source code
60 42 Amber Herold
61 1 Amber Herold
<pre>
62
./scons.compile
63
</pre>
64 42 Amber Herold
65 17 Neil Voss
* Move the main source code directory to global location, like @/usr/local@
66 42 Amber Herold
67 19 Neil Voss
<pre>sudo mv -v Xmipp-2.4-src /usr/local/Xmipp</pre>
68 17 Neil Voss
69 27 Neil Voss
h3. Setup environmental variables
70
71
* For bash, edit xmipp.sh:
72 21 Neil Voss
<pre>
73 18 Neil Voss
export XMIPPDIR=/usr/local/Xmipp
74
export PATH=${XMIPPDIR}/bin:${PATH}
75 1 Amber Herold
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XMIPPDIR}/lib
76 18 Neil Voss
</pre>
77 27 Neil Voss
* For C shell, edit xmipp.csh:
78 18 Neil Voss
<pre>
79 1 Amber Herold
setenv XMIPPDIR /usr/local/Xmipp
80
setenv PATH ${XMIPPDIR}/bin:${PATH}
81
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XMIPPDIR}/lib
82
</pre>
83 27 Neil Voss
* Copy to /etc/profile.d
84 17 Neil Voss
<pre>
85 18 Neil Voss
sudo cp -v xmipp.sh /etc/profile.d/
86 20 Neil Voss
sudo chmod 755 /etc/profile.d/xmipp.sh
87 18 Neil Voss
88 26 Neil Voss
- or -
89
90 18 Neil Voss
sudo cp -v xmipp.csh /etc/profile.d/
91 20 Neil Voss
sudo chmod 755 /etc/profile.d/xmipp.csh
92 17 Neil Voss
</pre>
93 18 Neil Voss
94 51 Amber Herold
bq. You may need to log out and log back in for these changes to take place, or source the environment script: <pre> source /etc/profile.d/xmipp.sh</pre>
95 1 Amber Herold
96 22 Neil Voss
h2. Test Xmipp
97 23 Neil Voss
98
Test Xmipp by running ml_align2d program
99 1 Amber Herold
<pre>
100 24 Neil Voss
xmipp_ml_align2d -h
101 22 Neil Voss
</pre>
102 24 Neil Voss
This result should appear
103 22 Neil Voss
<pre>
104
2104:Argument -i not found or invalid argument
105
File: libraries/data/args.cpp line: 502
106
Usage:  ml_align2d [options] 
107
   -i <selfile>                : Selfile with input images 
108
   -nref <int>                 : Number of references to generate automatically (recommended)
109
   OR -ref <selfile/image>         OR selfile with initial references/single reference image 
110
 [ -o <rootname> ]             : Output rootname (default = "ml2d")
111
 [ -mirror ]                   : Also check mirror image of each reference 
112
 [ -fast ]                     : Use pre-centered images to pre-calculate significant orientations
113
 [ -thr <N=1> ]                : Use N parallel threads 
114
 [ -more_options ]             : Show all possible input parameters 
115
</pre>
116 47 Amber Herold
117 8 Amber Herold
______
118 16 Neil Voss
119 32 Neil Voss
[[Install SPIDER|< Install SPIDER]] | [[Install UCSF Chimera|Install UCSF Chimera >]]
120 9 Amber Herold
121 1 Amber Herold
______