Install Xmipp » History » Version 28
Neil Voss, 05/13/2010 09:22 AM
1 | 1 | Amber Herold | h1. Install Xmipp |
---|---|---|---|
2 | |||
3 | 22 | Neil Voss | h2. Install Xmipp from source |
4 | |||
5 | 27 | Neil Voss | h3. Download source code |
6 | |||
7 | 10 | Neil Voss | * Download the v2.4 source code from http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware |
8 | 12 | Neil Voss | * Unzip the source code: |
9 | <pre>tar zxvf Xmipp-2.4-src.tar.gz</pre> |
||
10 | 27 | Neil Voss | |
11 | h3. Prepare Xmipp make files |
||
12 | |||
13 | 1 | Amber Herold | * Go into Xmipp source directory |
14 | * Find openmpi directory |
||
15 | <pre> |
||
16 | 11 | Neil Voss | locate libmpi.so |
17 | 15 | Neil Voss | /usr/lib64/openmpi/1.3.2-gcc/lib/libmpi.so |
18 | 1 | Amber Herold | </pre> |
19 | |||
20 | * Setup Xmipp to use openmpi by changing three lines in SConstruct |
||
21 | <pre> |
||
22 | 11 | Neil Voss | cp -v SConstruct SConstruct.orig |
23 | 28 | Neil Voss | </pre><pre> |
24 | 1 | Amber Herold | opts.Add('MPI_INCLUDE', 'MPI headers dir ', '/usr/lib/openmpi/1.2.7-gcc/include/') |
25 | opts.Add('MPI_LIBDIR', 'MPI libraries dir ', '/usr/lib/openmpi/1.2.7-gcc/lib/') |
||
26 | opts.Add('MPI_LIB', 'MPI library', 'mpi') |
||
27 | </pre> |
||
28 | |||
29 | 27 | Neil Voss | h3. Compile the source code |
30 | |||
31 | * Configure |
||
32 | 11 | Neil Voss | <pre> |
33 | sudo mpi-selector --yes --system --set `rpm --qf '%{NAME}-%{VERSION}-gcc-%{ARCH}\n' -q openmpi` |
||
34 | 1 | Amber Herold | export PATH=$PATH:/usr/lib64/openmpi/1.3.2-gcc/bin |
35 | ./scons.configure |
||
36 | 5 | Amber Herold | </pre> |
37 | 1 | Amber Herold | * Look for the following line in the output: |
38 | <pre> |
||
39 | * Checking for MPI ... yes |
||
40 | 11 | Neil Voss | </pre> |
41 | 1 | Amber Herold | * Now compile the source code |
42 | <pre> |
||
43 | ./scons.compile |
||
44 | </pre> |
||
45 | 17 | Neil Voss | * Move the main source code directory to global location, like @/usr/local@ |
46 | 19 | Neil Voss | <pre>sudo mv -v Xmipp-2.4-src /usr/local/Xmipp</pre> |
47 | 17 | Neil Voss | |
48 | 27 | Neil Voss | h3. Setup environmental variables |
49 | |||
50 | * For bash, edit xmipp.sh: |
||
51 | 21 | Neil Voss | <pre> |
52 | 18 | Neil Voss | export XMIPPDIR=/usr/local/Xmipp |
53 | export PATH=${XMIPPDIR}/bin:${PATH} |
||
54 | 1 | Amber Herold | export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XMIPPDIR}/lib |
55 | 18 | Neil Voss | </pre> |
56 | 27 | Neil Voss | * For C shell, edit xmipp.csh: |
57 | 18 | Neil Voss | <pre> |
58 | 1 | Amber Herold | setenv XMIPPDIR /usr/local/Xmipp |
59 | setenv PATH ${XMIPPDIR}/bin:${PATH} |
||
60 | setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XMIPPDIR}/lib |
||
61 | </pre> |
||
62 | 27 | Neil Voss | * Copy to /etc/profile.d |
63 | 17 | Neil Voss | <pre> |
64 | 18 | Neil Voss | sudo cp -v xmipp.sh /etc/profile.d/ |
65 | 20 | Neil Voss | sudo chmod 755 /etc/profile.d/xmipp.sh |
66 | 18 | Neil Voss | |
67 | 26 | Neil Voss | - or - |
68 | |||
69 | 18 | Neil Voss | sudo cp -v xmipp.csh /etc/profile.d/ |
70 | 20 | Neil Voss | sudo chmod 755 /etc/profile.d/xmipp.csh |
71 | 17 | Neil Voss | </pre> |
72 | 18 | Neil Voss | |
73 | 26 | Neil Voss | bq. You may need to log out and log back in for these changes to take place. |
74 | 1 | Amber Herold | |
75 | 22 | Neil Voss | h2. Test Xmipp |
76 | 23 | Neil Voss | |
77 | Test Xmipp by running ml_align2d program |
||
78 | 1 | Amber Herold | <pre> |
79 | 24 | Neil Voss | xmipp_ml_align2d -h |
80 | 22 | Neil Voss | </pre> |
81 | 24 | Neil Voss | This result should appear |
82 | 22 | Neil Voss | <pre> |
83 | 2104:Argument -i not found or invalid argument |
||
84 | File: libraries/data/args.cpp line: 502 |
||
85 | Usage: ml_align2d [options] |
||
86 | -i <selfile> : Selfile with input images |
||
87 | -nref <int> : Number of references to generate automatically (recommended) |
||
88 | OR -ref <selfile/image> OR selfile with initial references/single reference image |
||
89 | [ -o <rootname> ] : Output rootname (default = "ml2d") |
||
90 | [ -mirror ] : Also check mirror image of each reference |
||
91 | [ -fast ] : Use pre-centered images to pre-calculate significant orientations |
||
92 | [ -thr <N=1> ] : Use N parallel threads |
||
93 | [ -more_options ] : Show all possible input parameters |
||
94 | </pre> |
||
95 | 8 | Amber Herold | ______ |
96 | 16 | Neil Voss | |
97 | 25 | Neil Voss | [[Install SPIDER|< Install SPIDER]] | [[Compile FindEM|Compile FindEM >]] |
98 | 9 | Amber Herold | |
99 | 1 | Amber Herold | ______ |