Project

General

Profile

Install Xmipp » History » Version 26

Neil Voss, 05/13/2010 09:20 AM

1 1 Amber Herold
h1. Install Xmipp
2
3 22 Neil Voss
h2. Install Xmipp from source
4
5 10 Neil Voss
* Download the v2.4 source code from http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware
6 12 Neil Voss
* Unzip the source code:
7
<pre>tar zxvf Xmipp-2.4-src.tar.gz</pre>
8 1 Amber Herold
* Go into Xmipp source directory
9
* Find openmpi directory
10
<pre>
11 11 Neil Voss
locate libmpi.so
12 15 Neil Voss
  /usr/lib64/openmpi/1.3.2-gcc/lib/libmpi.so
13 1 Amber Herold
</pre>
14
15
* Setup Xmipp to use openmpi by changing three lines in SConstruct
16
<pre>
17 11 Neil Voss
cp -v SConstruct SConstruct.orig
18 1 Amber Herold
</pre>
19
<pre>
20
opts.Add('MPI_INCLUDE', 'MPI headers dir ', '/usr/lib/openmpi/1.2.7-gcc/include/')
21
opts.Add('MPI_LIBDIR', 'MPI libraries dir ', '/usr/lib/openmpi/1.2.7-gcc/lib/')
22
opts.Add('MPI_LIB', 'MPI library', 'mpi')
23
</pre>
24
25
* Compile
26
<pre>
27 11 Neil Voss
sudo mpi-selector --yes --system --set `rpm --qf '%{NAME}-%{VERSION}-gcc-%{ARCH}\n' -q openmpi`
28 15 Neil Voss
export PATH=$PATH:/usr/lib64/openmpi/1.3.2-gcc/bin
29 11 Neil Voss
./scons.configure
30 1 Amber Herold
</pre>
31
32 5 Amber Herold
* Look for the following line in the output:
33 1 Amber Herold
<pre>
34
* Checking for MPI ... yes
35
</pre>
36
37 11 Neil Voss
* Now compile the source code
38 1 Amber Herold
<pre>
39 11 Neil Voss
./scons.compile
40 1 Amber Herold
</pre>
41 8 Amber Herold
42 17 Neil Voss
* Move the main source code directory to global location, like @/usr/local@
43 19 Neil Voss
<pre>sudo mv -v Xmipp-2.4-src /usr/local/Xmipp</pre>
44 17 Neil Voss
45 18 Neil Voss
* Set environmental variables:
46
** For bash, edit xmipp.sh:
47 1 Amber Herold
<pre>
48 21 Neil Voss
export XMIPPDIR=/usr/local/Xmipp
49 18 Neil Voss
export PATH=${XMIPPDIR}/bin:${PATH}
50
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XMIPPDIR}/lib
51
</pre>
52
** For C shell, edit xmipp.csh:
53
<pre>
54 1 Amber Herold
setenv XMIPPDIR /usr/local/Xmipp
55
setenv PATH ${XMIPPDIR}/bin:${PATH}
56
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XMIPPDIR}/lib
57
</pre>
58 18 Neil Voss
** Copy to /etc/profile.d
59 17 Neil Voss
<pre>
60 18 Neil Voss
sudo cp -v xmipp.sh /etc/profile.d/
61 20 Neil Voss
sudo chmod 755 /etc/profile.d/xmipp.sh
62 18 Neil Voss
63 26 Neil Voss
- or -
64
65 18 Neil Voss
sudo cp -v xmipp.csh /etc/profile.d/
66 20 Neil Voss
sudo chmod 755 /etc/profile.d/xmipp.csh
67 17 Neil Voss
</pre>
68 18 Neil Voss
69 26 Neil Voss
bq. You may need to log out and log back in for these changes to take place.
70 1 Amber Herold
71 22 Neil Voss
h2. Test Xmipp
72 23 Neil Voss
73
Test Xmipp by running ml_align2d program
74 1 Amber Herold
<pre>
75 24 Neil Voss
xmipp_ml_align2d -h
76 22 Neil Voss
</pre>
77 24 Neil Voss
This result should appear
78 22 Neil Voss
<pre>
79
2104:Argument -i not found or invalid argument
80
File: libraries/data/args.cpp line: 502
81
Usage:  ml_align2d [options] 
82
   -i <selfile>                : Selfile with input images 
83
   -nref <int>                 : Number of references to generate automatically (recommended)
84
   OR -ref <selfile/image>         OR selfile with initial references/single reference image 
85
 [ -o <rootname> ]             : Output rootname (default = "ml2d")
86
 [ -mirror ]                   : Also check mirror image of each reference 
87
 [ -fast ]                     : Use pre-centered images to pre-calculate significant orientations
88
 [ -thr <N=1> ]                : Use N parallel threads 
89
 [ -more_options ]             : Show all possible input parameters 
90
</pre>
91 8 Amber Herold
______
92 16 Neil Voss
93 25 Neil Voss
[[Install SPIDER|< Install SPIDER]] | [[Compile FindEM|Compile FindEM >]]
94 9 Amber Herold
95 1 Amber Herold
______