Project

General

Profile

Install Xmipp » History » Version 7

Amber Herold, 03/17/2010 03:14 PM

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