Project

General

Profile

Install Xmipp » History » Version 11

Neil Voss, 05/12/2010 11:57 AM

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 1 Amber Herold
* Go into Xmipp source directory
5
* Find openmpi directory
6
<pre>
7 11 Neil Voss
locate libmpi.so
8
  /usr/lib/openmpi/1.2.7-gcc/lib/libmpi.so
9 1 Amber Herold
</pre>
10
11
* Setup Xmipp to use openmpi by changing three lines in SConstruct
12
<pre>
13 11 Neil Voss
cp -v SConstruct SConstruct.orig
14 1 Amber Herold
</pre>
15
16
<pre>
17
opts.Add('MPI_INCLUDE', 'MPI headers dir ', '/usr/lib/openmpi/1.2.7-gcc/include/')
18
opts.Add('MPI_LIBDIR', 'MPI libraries dir ', '/usr/lib/openmpi/1.2.7-gcc/lib/')
19
opts.Add('MPI_LIB', 'MPI library', 'mpi')
20
</pre>
21
22
* Compile
23
<pre>
24 11 Neil Voss
sudo mpi-selector --yes --system --set `rpm --qf '%{NAME}-%{VERSION}-gcc-%{ARCH}\n' -q openmpi`
25
export PATH=$PATH:/usr/lib/openmpi/1.2.7-gcc/bin
26
./scons.configure
27 1 Amber Herold
</pre>
28
29 5 Amber Herold
* Look for the following line in the output:
30 1 Amber Herold
<pre>
31
* Checking for MPI ... yes
32
</pre>
33
34 11 Neil Voss
* Now compile the source code
35 1 Amber Herold
<pre>
36 11 Neil Voss
./scons.compile
37 1 Amber Herold
</pre>
38 8 Amber Herold
39
______
40
41
[[Compile Radermacher|< Compile Radermacher]] | [[Test Appion|Test Appion >]]
42 9 Amber Herold
43
______