Install Xmipp » History » Version 3
Amber Herold, 03/17/2010 02:45 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 | 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 | you should see the line: |
||
39 | |||
40 | <pre> |
||
41 | * Checking for MPI ... yes |
||
42 | </pre> |
||
43 | |||
44 | <pre> |
||
45 | $ ./scons.compile |
||
46 | </pre> |