Project

General

Profile

Install Xmipp » History » Version 5

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

1 1 Amber Herold
h1. Install Xmipp
2
3
*TODO:* List the lastest version that we have tested with.
4
5 5 Amber Herold
* Download the source code from http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware
6 1 Amber Herold
* Go into Xmipp source directory
7
* Find openmpi directory
8
9
<pre>
10
$ locate libmpi.so
11
</pre>
12
13
<pre>
14
/usr/lib/openmpi/1.2.7-gcc/lib/libmpi.so
15
</pre>
16
17
* Setup Xmipp to use openmpi by changing three lines in SConstruct
18
19
<pre>
20
$ cp SConstruct SConstruct.orig
21 3 Amber Herold
$ vi SConstruct
22 1 Amber Herold
</pre>
23
24
<pre>
25
opts.Add('MPI_INCLUDE', 'MPI headers dir ', '/usr/lib/openmpi/1.2.7-gcc/include/')
26
opts.Add('MPI_LIBDIR', 'MPI libraries dir ', '/usr/lib/openmpi/1.2.7-gcc/lib/')
27
opts.Add('MPI_LIB', 'MPI library', 'mpi')
28
</pre>
29
30
* Compile
31
32
<pre>
33
$ sudo mpi-selector --yes --system --set `rpm --qf '%{NAME}-%{VERSION}-gcc-%{ARCH}\n' -q openmpi`
34
$ export PATH=$PATH:/usr/lib/openmpi/1.2.7-gcc/bin
35
$ ./scons.configure
36
</pre>
37
38 5 Amber Herold
* Look for the following line in the output:
39 1 Amber Herold
40
<pre>
41
* Checking for MPI ... yes
42
</pre>
43
44
<pre>
45
$ ./scons.compile
46
</pre>