Project

General

Profile

Install Xmipp » History » Version 21

Neil Voss, 05/12/2010 01:25 PM

1 1 Amber Herold
h1. Install Xmipp
2
3 10 Neil Voss
* Download the v2.4 source code from http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware
4 12 Neil Voss
* Unzip the source code:
5
<pre>tar zxvf Xmipp-2.4-src.tar.gz</pre>
6 1 Amber Herold
* Go into Xmipp source directory
7
* Find openmpi directory
8
<pre>
9 11 Neil Voss
locate libmpi.so
10 15 Neil Voss
  /usr/lib64/openmpi/1.3.2-gcc/lib/libmpi.so
11 1 Amber Herold
</pre>
12
13
* Setup Xmipp to use openmpi by changing three lines in SConstruct
14
<pre>
15 11 Neil Voss
cp -v SConstruct SConstruct.orig
16 1 Amber Herold
</pre>
17
<pre>
18
opts.Add('MPI_INCLUDE', 'MPI headers dir ', '/usr/lib/openmpi/1.2.7-gcc/include/')
19
opts.Add('MPI_LIBDIR', 'MPI libraries dir ', '/usr/lib/openmpi/1.2.7-gcc/lib/')
20
opts.Add('MPI_LIB', 'MPI library', 'mpi')
21
</pre>
22
23
* Compile
24
<pre>
25 11 Neil Voss
sudo mpi-selector --yes --system --set `rpm --qf '%{NAME}-%{VERSION}-gcc-%{ARCH}\n' -q openmpi`
26 15 Neil Voss
export PATH=$PATH:/usr/lib64/openmpi/1.3.2-gcc/bin
27 11 Neil Voss
./scons.configure
28 1 Amber Herold
</pre>
29
30 5 Amber Herold
* Look for the following line in the output:
31 1 Amber Herold
<pre>
32
* Checking for MPI ... yes
33
</pre>
34
35 11 Neil Voss
* Now compile the source code
36 1 Amber Herold
<pre>
37 11 Neil Voss
./scons.compile
38 1 Amber Herold
</pre>
39 8 Amber Herold
40 17 Neil Voss
* Move the main source code directory to global location, like @/usr/local@
41 19 Neil Voss
<pre>sudo mv -v Xmipp-2.4-src /usr/local/Xmipp</pre>
42 17 Neil Voss
43 18 Neil Voss
* Set environmental variables:
44
** For bash, edit xmipp.sh:
45 1 Amber Herold
<pre>
46 21 Neil Voss
export XMIPPDIR=/usr/local/Xmipp
47 18 Neil Voss
export PATH=${XMIPPDIR}/bin:${PATH}
48
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XMIPPDIR}/lib
49
</pre>
50
** For C shell, edit xmipp.csh:
51
<pre>
52 1 Amber Herold
setenv XMIPPDIR /usr/local/Xmipp
53
setenv PATH ${XMIPPDIR}/bin:${PATH}
54
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XMIPPDIR}/lib
55
</pre>
56 18 Neil Voss
** Copy to /etc/profile.d
57 17 Neil Voss
<pre>
58 18 Neil Voss
sudo cp -v xmipp.sh /etc/profile.d/
59 20 Neil Voss
sudo chmod 755 /etc/profile.d/xmipp.sh
60 18 Neil Voss
61
sudo cp -v xmipp.csh /etc/profile.d/
62 20 Neil Voss
sudo chmod 755 /etc/profile.d/xmipp.csh
63 17 Neil Voss
</pre>
64 18 Neil Voss
65
66 8 Amber Herold
67
______
68 16 Neil Voss
69 9 Amber Herold
[[Compile Ace2|< Compile Ace2]] | [[Test Appion|Test Appion >]]
70
71 1 Amber Herold
______