Install Xmipp » History » Version 1
Amber Herold, 03/17/2010 02:22 PM
1 | 1 | Amber Herold | h1. Install Xmipp |
---|---|---|---|
2 | |||
3 | *TODO:* List the lastest version that we have tested with. |
||
4 | |||
5 | * For more info, see http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware |
||
6 | * 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 | </pre> |
||
22 | |||
23 | <pre> |
||
24 | $ nano SConstruct |
||
25 | </pre> |
||
26 | |||
27 | <pre> |
||
28 | opts.Add('MPI_INCLUDE', 'MPI headers dir ', '/usr/lib/openmpi/1.2.7-gcc/include/') |
||
29 | opts.Add('MPI_LIBDIR', 'MPI libraries dir ', '/usr/lib/openmpi/1.2.7-gcc/lib/') |
||
30 | opts.Add('MPI_LIB', 'MPI library', 'mpi') |
||
31 | </pre> |
||
32 | |||
33 | * Compile |
||
34 | |||
35 | <pre> |
||
36 | $ sudo mpi-selector --yes --system --set `rpm --qf '%{NAME}-%{VERSION}-gcc-%{ARCH}\n' -q openmpi` |
||
37 | </pre> |
||
38 | |||
39 | <pre> |
||
40 | $ export PATH=$PATH:/usr/lib/openmpi/1.2.7-gcc/bin |
||
41 | </pre> |
||
42 | |||
43 | <pre> |
||
44 | $ ./scons.configure |
||
45 | </pre> |
||
46 | |||
47 | you should see the line: |
||
48 | |||
49 | <pre> |
||
50 | * Checking for MPI ... yes |
||
51 | </pre> |
||
52 | |||
53 | <pre> |
||
54 | $ ./scons.compile |
||
55 | </pre> |