Project

General

Profile

Install Xmipp » History » Version 17

Neil Voss, 05/12/2010 01:19 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
<pre>mv -v Xmipp-2.4-src /usr/local/Xmipp</pre>
42
43
* Create environmental file:
44
** For bash:
45
<pre>
46
setenv XMIPPDIR /usr/local/Xmipp
47
setenv PATH ${XMIPPDIR}/bin:${PATH}
48
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XMIPPDIR}/lib
49
</pre>
50
** For C shell:
51
<pre>
52
export XMIPPDIR=/usr/local/EMAN
53
export PATH=${XMIPPDIR}/bin:${PATH}
54
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XMIPPDIR}/lib
55
</pre>
56
57 8 Amber Herold
______
58
59 16 Neil Voss
[[Compile Ace2|< Compile Ace2]] | [[Test Appion|Test Appion >]]
60 9 Amber Herold
61
______