Install Xmipp » History » Version 60
Amber Herold, 11/25/2013 04:08 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 | 46 | Amber Herold | h2. Install supporting packages |
8 | |||
9 | 57 | Neil Voss | |_.Name:|_.Download site:|_.CentOS package name|_.Fedora package name|_.SuSE rpm name| |
10 | 46 | Amber Herold | |gcc-c++||gcc-c++|| |
11 | |openmpi-devel||openmpi-devel|| |
||
12 | |libtiff-devel||libtiff-devel|| |
||
13 | 57 | Neil Voss | |libjpeg-devel||libjpeg-devel|libjpeg-turbo-devel|| |
14 | 49 | Amber Herold | |zlib-devel||zlib-devel|| |
15 | 46 | Amber Herold | |
16 | 22 | Neil Voss | h2. Install Xmipp from source |
17 | |||
18 | 29 | Neil Voss | We recommend installing Xmipp from source to properly use the openmpi libraries that allows you to run on multiple processors |
19 | |||
20 | 27 | Neil Voss | h3. Download source code |
21 | |||
22 | 60 | Amber Herold | * Download the v2.4 source code from http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/HowToInstall |
23 | 12 | Neil Voss | * Unzip the source code: |
24 | 1 | Amber Herold | <pre>tar zxvf Xmipp-2.4-src.tar.gz</pre> |
25 | 53 | Neil Voss | |
26 | Alternatively, you may download from the svn repo: |
||
27 | |||
28 | 55 | Neil Voss | <pre>svn co http://newxmipp.svn.sourceforge.net/svnroot/newxmipp/tags/release-2.4/xmipp/ Xmipp-2.4-src</pre> |
29 | 27 | Neil Voss | |
30 | 54 | Neil Voss | As of Feb 2012, this was required to compile the 2.4 source code. |
31 | |||
32 | 58 | Sargis Dallakyan | h3. Prepare Xmipp make files |
33 | 27 | Neil Voss | |
34 | 1 | Amber Herold | * Go into Xmipp source directory |
35 | 58 | Sargis Dallakyan | * Find openmpi directory |
36 | 52 | Sargis Dallakyan | <pre> |
37 | 58 | Sargis Dallakyan | locate libmpi.so |
38 | 59 | Neil Voss | /usr/lib/openmpi/1.2.7-gcc/lib/libmpi.so |
39 | 1 | Amber Herold | </pre> |
40 | |||
41 | 58 | Sargis Dallakyan | *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. |
42 | 1 | Amber Herold | |
43 | h3. Compile the source code |
||
44 | |||
45 | 59 | Neil Voss | * Setup Xmipp to use openmpi by the following command. Be sure to modify the path in the second command as needed. For example, on a 32 bit machine using 1.4-gcc the command is: |
46 | export PATH=$PATH:/usr/lib64/openmpi/bin |
||
47 | 58 | Sargis Dallakyan | |
48 | 59 | Neil Voss | h4. CentOS 5 |
49 | 1 | Amber Herold | |
50 | 58 | Sargis Dallakyan | <pre> |
51 | export PATH=$PATH:/usr/lib64/openmpi/1.3.2-gcc/bin |
||
52 | 59 | Neil Voss | ./scons.configure \ |
53 | MPI_LIBDIR=/usr/lib/openmpi/1.2.7-gcc/lib/ \ |
||
54 | MPI_INCLUDE=/usr/lib/openmpi/1.2.7-gcc/include/ \ |
||
55 | MPI_LIB=mpi |
||
56 | 58 | Sargis Dallakyan | </pre> |
57 | |||
58 | 59 | Neil Voss | h4. CentOS 6 |
59 | 58 | Sargis Dallakyan | |
60 | *Note:* If you are installing Xmipp on x86_64 CentOS 6, you can use the following commands instead. |
||
61 | |||
62 | <pre> |
||
63 | export PATH=/usr/lib64/openmpi/bin:$PATH |
||
64 | 56 | Neil Voss | ./scons.configure \ |
65 | MPI_LIBDIR=/lib/usr/lib64/openmpi/lib \ |
||
66 | MPI_INCLUDE=/lib/usr/lib64/openmpi/include \ |
||
67 | MPI_LIB=mpi |
||
68 | 5 | Amber Herold | </pre> |
69 | 45 | Amber Herold | |
70 | 1 | Amber Herold | * Look for the following line in the output: |
71 | 42 | Amber Herold | |
72 | 1 | Amber Herold | <pre> |
73 | * Checking for MPI ... yes |
||
74 | 11 | Neil Voss | </pre> |
75 | 42 | Amber Herold | |
76 | 1 | Amber Herold | * Now compile the source code |
77 | 42 | Amber Herold | |
78 | 1 | Amber Herold | <pre> |
79 | ./scons.compile |
||
80 | </pre> |
||
81 | 42 | Amber Herold | |
82 | 17 | Neil Voss | * Move the main source code directory to global location, like @/usr/local@ |
83 | 42 | Amber Herold | |
84 | 19 | Neil Voss | <pre>sudo mv -v Xmipp-2.4-src /usr/local/Xmipp</pre> |
85 | 17 | Neil Voss | |
86 | 27 | Neil Voss | h3. Setup environmental variables |
87 | |||
88 | * For bash, edit xmipp.sh: |
||
89 | 21 | Neil Voss | <pre> |
90 | 18 | Neil Voss | export XMIPPDIR=/usr/local/Xmipp |
91 | export PATH=${XMIPPDIR}/bin:${PATH} |
||
92 | 1 | Amber Herold | export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XMIPPDIR}/lib |
93 | 18 | Neil Voss | </pre> |
94 | 27 | Neil Voss | * For C shell, edit xmipp.csh: |
95 | 18 | Neil Voss | <pre> |
96 | 1 | Amber Herold | setenv XMIPPDIR /usr/local/Xmipp |
97 | setenv PATH ${XMIPPDIR}/bin:${PATH} |
||
98 | setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XMIPPDIR}/lib |
||
99 | </pre> |
||
100 | 27 | Neil Voss | * Copy to /etc/profile.d |
101 | 17 | Neil Voss | <pre> |
102 | 18 | Neil Voss | sudo cp -v xmipp.sh /etc/profile.d/ |
103 | 20 | Neil Voss | sudo chmod 755 /etc/profile.d/xmipp.sh |
104 | 18 | Neil Voss | |
105 | 26 | Neil Voss | - or - |
106 | |||
107 | 18 | Neil Voss | sudo cp -v xmipp.csh /etc/profile.d/ |
108 | 20 | Neil Voss | sudo chmod 755 /etc/profile.d/xmipp.csh |
109 | 17 | Neil Voss | </pre> |
110 | 18 | Neil Voss | |
111 | 51 | Amber Herold | bq. You may need to log out and log back in for these changes to take place, or source the environment script: <pre> source /etc/profile.d/xmipp.sh</pre> |
112 | 1 | Amber Herold | |
113 | 22 | Neil Voss | h2. Test Xmipp |
114 | 23 | Neil Voss | |
115 | Test Xmipp by running ml_align2d program |
||
116 | 1 | Amber Herold | <pre> |
117 | 24 | Neil Voss | xmipp_ml_align2d -h |
118 | 22 | Neil Voss | </pre> |
119 | 24 | Neil Voss | This result should appear |
120 | 22 | Neil Voss | <pre> |
121 | 2104:Argument -i not found or invalid argument |
||
122 | File: libraries/data/args.cpp line: 502 |
||
123 | Usage: ml_align2d [options] |
||
124 | -i <selfile> : Selfile with input images |
||
125 | -nref <int> : Number of references to generate automatically (recommended) |
||
126 | OR -ref <selfile/image> OR selfile with initial references/single reference image |
||
127 | [ -o <rootname> ] : Output rootname (default = "ml2d") |
||
128 | [ -mirror ] : Also check mirror image of each reference |
||
129 | [ -fast ] : Use pre-centered images to pre-calculate significant orientations |
||
130 | [ -thr <N=1> ] : Use N parallel threads |
||
131 | [ -more_options ] : Show all possible input parameters |
||
132 | </pre> |
||
133 | 47 | Amber Herold | |
134 | 8 | Amber Herold | ______ |
135 | 16 | Neil Voss | |
136 | 32 | Neil Voss | [[Install SPIDER|< Install SPIDER]] | [[Install UCSF Chimera|Install UCSF Chimera >]] |
137 | 9 | Amber Herold | |
138 | 1 | Amber Herold | ______ |