Install Xmipp » History » Version 52
Sargis Dallakyan, 02/02/2012 12:46 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 | |_.Name:|_.Download site:|_.yum package name|_.SuSE rpm name| |
||
10 | |gcc-c++||gcc-c++|| |
||
11 | |openmpi-devel||openmpi-devel|| |
||
12 | |libtiff-devel||libtiff-devel|| |
||
13 | 48 | Amber Herold | |libjpeg-devel||libjpeg-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 | 10 | Neil Voss | * Download the v2.4 source code from http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware |
23 | 12 | Neil Voss | * Unzip the source code: |
24 | <pre>tar zxvf Xmipp-2.4-src.tar.gz</pre> |
||
25 | 27 | Neil Voss | |
26 | 52 | Sargis Dallakyan | h3. Compile the source code |
27 | 27 | Neil Voss | |
28 | 11 | Neil Voss | * Go into Xmipp source directory |
29 | 1 | Amber Herold | |
30 | 52 | Sargis Dallakyan | * Add mpi compilers to your path. |
31 | 28 | Neil Voss | <pre> |
32 | 52 | Sargis Dallakyan | export PATH=/usr/lib64/openmpi/bin:$PATH |
33 | 1 | Amber Herold | </pre> |
34 | |||
35 | 52 | Sargis Dallakyan | *Note:* This example is for x86_64 CentOS 6. 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. |
36 | 27 | Neil Voss | |
37 | 40 | Amber Herold | * Configure |
38 | 11 | Neil Voss | |
39 | 39 | Amber Herold | |
40 | 1 | Amber Herold | <pre> |
41 | 52 | Sargis Dallakyan | ./scons.configure MPI_LIBDIR=/lib/usr/lib64/openmpi/lib MPI_LIB=mpi MPI_INCLUDE=/lib/usr/lib64/openmpi/include |
42 | 5 | Amber Herold | </pre> |
43 | 45 | Amber Herold | |
44 | 1 | Amber Herold | * Look for the following line in the output: |
45 | 42 | Amber Herold | |
46 | 1 | Amber Herold | <pre> |
47 | * Checking for MPI ... yes |
||
48 | 11 | Neil Voss | </pre> |
49 | 42 | Amber Herold | |
50 | 1 | Amber Herold | * Now compile the source code |
51 | 42 | Amber Herold | |
52 | 1 | Amber Herold | <pre> |
53 | ./scons.compile |
||
54 | </pre> |
||
55 | 42 | Amber Herold | |
56 | 17 | Neil Voss | * Move the main source code directory to global location, like @/usr/local@ |
57 | 42 | Amber Herold | |
58 | 19 | Neil Voss | <pre>sudo mv -v Xmipp-2.4-src /usr/local/Xmipp</pre> |
59 | 17 | Neil Voss | |
60 | 27 | Neil Voss | h3. Setup environmental variables |
61 | |||
62 | * For bash, edit xmipp.sh: |
||
63 | 21 | Neil Voss | <pre> |
64 | 18 | Neil Voss | export XMIPPDIR=/usr/local/Xmipp |
65 | export PATH=${XMIPPDIR}/bin:${PATH} |
||
66 | 1 | Amber Herold | export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XMIPPDIR}/lib |
67 | 18 | Neil Voss | </pre> |
68 | 27 | Neil Voss | * For C shell, edit xmipp.csh: |
69 | 18 | Neil Voss | <pre> |
70 | 1 | Amber Herold | setenv XMIPPDIR /usr/local/Xmipp |
71 | setenv PATH ${XMIPPDIR}/bin:${PATH} |
||
72 | setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XMIPPDIR}/lib |
||
73 | </pre> |
||
74 | 27 | Neil Voss | * Copy to /etc/profile.d |
75 | 17 | Neil Voss | <pre> |
76 | 18 | Neil Voss | sudo cp -v xmipp.sh /etc/profile.d/ |
77 | 20 | Neil Voss | sudo chmod 755 /etc/profile.d/xmipp.sh |
78 | 18 | Neil Voss | |
79 | 26 | Neil Voss | - or - |
80 | |||
81 | 18 | Neil Voss | sudo cp -v xmipp.csh /etc/profile.d/ |
82 | 20 | Neil Voss | sudo chmod 755 /etc/profile.d/xmipp.csh |
83 | 17 | Neil Voss | </pre> |
84 | 18 | Neil Voss | |
85 | 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> |
86 | 1 | Amber Herold | |
87 | 22 | Neil Voss | h2. Test Xmipp |
88 | 23 | Neil Voss | |
89 | Test Xmipp by running ml_align2d program |
||
90 | 1 | Amber Herold | <pre> |
91 | 24 | Neil Voss | xmipp_ml_align2d -h |
92 | 22 | Neil Voss | </pre> |
93 | 24 | Neil Voss | This result should appear |
94 | 22 | Neil Voss | <pre> |
95 | 2104:Argument -i not found or invalid argument |
||
96 | File: libraries/data/args.cpp line: 502 |
||
97 | Usage: ml_align2d [options] |
||
98 | -i <selfile> : Selfile with input images |
||
99 | -nref <int> : Number of references to generate automatically (recommended) |
||
100 | OR -ref <selfile/image> OR selfile with initial references/single reference image |
||
101 | [ -o <rootname> ] : Output rootname (default = "ml2d") |
||
102 | [ -mirror ] : Also check mirror image of each reference |
||
103 | [ -fast ] : Use pre-centered images to pre-calculate significant orientations |
||
104 | [ -thr <N=1> ] : Use N parallel threads |
||
105 | [ -more_options ] : Show all possible input parameters |
||
106 | </pre> |
||
107 | 47 | Amber Herold | |
108 | 8 | Amber Herold | ______ |
109 | 16 | Neil Voss | |
110 | 32 | Neil Voss | [[Install SPIDER|< Install SPIDER]] | [[Install UCSF Chimera|Install UCSF Chimera >]] |
111 | 9 | Amber Herold | |
112 | 1 | Amber Herold | ______ |