Project

General

Profile

Install Xmipp » History » Version 12

Neil Voss, 05/12/2010 11:58 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 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
  /usr/lib/openmpi/1.2.7-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
18
<pre>
19
opts.Add('MPI_INCLUDE', 'MPI headers dir ', '/usr/lib/openmpi/1.2.7-gcc/include/')
20
opts.Add('MPI_LIBDIR', 'MPI libraries dir ', '/usr/lib/openmpi/1.2.7-gcc/lib/')
21
opts.Add('MPI_LIB', 'MPI library', 'mpi')
22
</pre>
23
24
* Compile
25
<pre>
26 11 Neil Voss
sudo mpi-selector --yes --system --set `rpm --qf '%{NAME}-%{VERSION}-gcc-%{ARCH}\n' -q openmpi`
27
export PATH=$PATH:/usr/lib/openmpi/1.2.7-gcc/bin
28
./scons.configure
29 1 Amber Herold
</pre>
30
31 5 Amber Herold
* Look for the following line in the output:
32 1 Amber Herold
<pre>
33
* Checking for MPI ... yes
34
</pre>
35
36 11 Neil Voss
* Now compile the source code
37 1 Amber Herold
<pre>
38 11 Neil Voss
./scons.compile
39 1 Amber Herold
</pre>
40 8 Amber Herold
41
______
42
43
[[Compile Radermacher|< Compile Radermacher]] | [[Test Appion|Test Appion >]]
44 9 Amber Herold
45
______