Project

General

Profile

Install Xmipp » History » Version 48

Amber Herold, 05/12/2011 02:18 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
|_.Name:|_.Download site:|_.yum package name|_.SuSE rpm name|
10
|gcc-c++||gcc-c++||
11
|openmpi-devel||openmpi-devel||
12
|libtiff-devel||libtiff-devel||
13 48 Amber Herold
|libjpeg-devel||libjpeg-devel||
14 46 Amber Herold
15 22 Neil Voss
h2. Install Xmipp from source
16
17 29 Neil Voss
We recommend installing Xmipp from source to properly use the openmpi libraries that allows you to run on multiple processors
18
19 27 Neil Voss
h3. Download source code
20
21 10 Neil Voss
* Download the v2.4 source code from http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware
22 12 Neil Voss
* Unzip the source code:
23
<pre>tar zxvf Xmipp-2.4-src.tar.gz</pre>
24 27 Neil Voss
25
h3. Prepare Xmipp make files
26
27 1 Amber Herold
* Go into Xmipp source directory
28
* Find openmpi directory
29
<pre>
30 11 Neil Voss
locate libmpi.so
31 15 Neil Voss
  /usr/lib64/openmpi/1.3.2-gcc/lib/libmpi.so
32 1 Amber Herold
</pre>
33
34 36 Amber Herold
 *Note:* 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.
35 35 Amber Herold
36 37 Amber Herold
* Setup Xmipp to use openmpi by changing three lines in SConstruct (creating a backup of the file first)
37 1 Amber Herold
<pre>
38 11 Neil Voss
cp -v SConstruct SConstruct.orig
39 28 Neil Voss
</pre><pre>
40 1 Amber Herold
opts.Add('MPI_INCLUDE', 'MPI headers dir ', '/usr/lib/openmpi/1.2.7-gcc/include/')
41
opts.Add('MPI_LIBDIR', 'MPI libraries dir ', '/usr/lib/openmpi/1.2.7-gcc/lib/')
42
opts.Add('MPI_LIB', 'MPI library', 'mpi')
43
</pre>
44
45 27 Neil Voss
h3. Compile the source code
46
47
* Configure
48 40 Amber Herold
49 41 Amber Herold
 Be sure to modify the path in the second command as needed. For example, on a 32 bit machine using 1.4-gcc the command is:
50
 export PATH=$PATH:/usr/lib/openmpi/1.4-gcc/bin
51 40 Amber Herold
52 11 Neil Voss
<pre>
53 39 Amber Herold
sudo mpi-selector --verbose --yes --system --set `rpm --qf '%{NAME}-%{VERSION}-gcc-%{ARCH}\n' -q openmpi`
54 1 Amber Herold
export PATH=$PATH:/usr/lib64/openmpi/1.3.2-gcc/bin
55
./scons.configure
56 5 Amber Herold
</pre>
57 45 Amber Herold
 
58 1 Amber Herold
* Look for the following line in the output:
59 42 Amber Herold
60 1 Amber Herold
<pre>
61
* Checking for MPI ... yes
62 11 Neil Voss
</pre>
63 42 Amber Herold
64 1 Amber Herold
* Now compile the source code
65 42 Amber Herold
66 1 Amber Herold
<pre>
67
./scons.compile
68
</pre>
69 42 Amber Herold
70 17 Neil Voss
* Move the main source code directory to global location, like @/usr/local@
71 42 Amber Herold
72 19 Neil Voss
<pre>sudo mv -v Xmipp-2.4-src /usr/local/Xmipp</pre>
73 17 Neil Voss
74 27 Neil Voss
h3. Setup environmental variables
75
76
* For bash, edit xmipp.sh:
77 21 Neil Voss
<pre>
78 18 Neil Voss
export XMIPPDIR=/usr/local/Xmipp
79
export PATH=${XMIPPDIR}/bin:${PATH}
80 1 Amber Herold
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XMIPPDIR}/lib
81 18 Neil Voss
</pre>
82 27 Neil Voss
* For C shell, edit xmipp.csh:
83 18 Neil Voss
<pre>
84 1 Amber Herold
setenv XMIPPDIR /usr/local/Xmipp
85
setenv PATH ${XMIPPDIR}/bin:${PATH}
86
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XMIPPDIR}/lib
87
</pre>
88 27 Neil Voss
* Copy to /etc/profile.d
89 17 Neil Voss
<pre>
90 18 Neil Voss
sudo cp -v xmipp.sh /etc/profile.d/
91 20 Neil Voss
sudo chmod 755 /etc/profile.d/xmipp.sh
92 18 Neil Voss
93 26 Neil Voss
- or -
94
95 18 Neil Voss
sudo cp -v xmipp.csh /etc/profile.d/
96 20 Neil Voss
sudo chmod 755 /etc/profile.d/xmipp.csh
97 17 Neil Voss
</pre>
98 18 Neil Voss
99 26 Neil Voss
bq. You may need to log out and log back in for these changes to take place.
100 1 Amber Herold
101 22 Neil Voss
h2. Test Xmipp
102 23 Neil Voss
103
Test Xmipp by running ml_align2d program
104 1 Amber Herold
<pre>
105 24 Neil Voss
xmipp_ml_align2d -h
106 22 Neil Voss
</pre>
107 24 Neil Voss
This result should appear
108 22 Neil Voss
<pre>
109
2104:Argument -i not found or invalid argument
110
File: libraries/data/args.cpp line: 502
111
Usage:  ml_align2d [options] 
112
   -i <selfile>                : Selfile with input images 
113
   -nref <int>                 : Number of references to generate automatically (recommended)
114
   OR -ref <selfile/image>         OR selfile with initial references/single reference image 
115
 [ -o <rootname> ]             : Output rootname (default = "ml2d")
116
 [ -mirror ]                   : Also check mirror image of each reference 
117
 [ -fast ]                     : Use pre-centered images to pre-calculate significant orientations
118
 [ -thr <N=1> ]                : Use N parallel threads 
119
 [ -more_options ]             : Show all possible input parameters 
120
</pre>
121 47 Amber Herold
122 8 Amber Herold
______
123 16 Neil Voss
124 32 Neil Voss
[[Install SPIDER|< Install SPIDER]] | [[Install UCSF Chimera|Install UCSF Chimera >]]
125 9 Amber Herold
126 1 Amber Herold
______