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