Actions
  Install Xmipp » History » Revision 22
      « Previous |
    Revision 22/61
      (diff)
      | Next »
    
    Neil Voss, 05/12/2010 02:39 PM 
    
    
Install Xmipp¶
Install Xmipp from source¶
- Download the v2.4 source code from http://xmipp.cnb.csic.es/twiki/bin/view/Xmipp/InstallingTheSoftware
 - Unzip the source code:
tar zxvf Xmipp-2.4-src.tar.gz
 - Go into Xmipp source directory
 - Find openmpi directory
locate libmpi.so /usr/lib64/openmpi/1.3.2-gcc/lib/libmpi.so
 
- Setup Xmipp to use openmpi by changing three lines in SConstruct
cp -v SConstruct SConstruct.orig
opts.Add('MPI_INCLUDE', 'MPI headers dir ', '/usr/lib/openmpi/1.2.7-gcc/include/') opts.Add('MPI_LIBDIR', 'MPI libraries dir ', '/usr/lib/openmpi/1.2.7-gcc/lib/') opts.Add('MPI_LIB', 'MPI library', 'mpi') 
- Compile
sudo mpi-selector --yes --system --set `rpm --qf '%{NAME}-%{VERSION}-gcc-%{ARCH}\n' -q openmpi` export PATH=$PATH:/usr/lib64/openmpi/1.3.2-gcc/bin ./scons.configure 
- Look for the following line in the output:
* Checking for MPI ... yes
 
- Now compile the source code
./scons.compile
 
- Move the main source code directory to global location, like 
/usr/localsudo mv -v Xmipp-2.4-src /usr/local/Xmipp
 
- Set environmental variables:
	
- For bash, edit xmipp.sh:
export XMIPPDIR=/usr/local/Xmipp export PATH=${XMIPPDIR}/bin:${PATH} export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${XMIPPDIR}/lib - For C shell, edit xmipp.csh:
setenv XMIPPDIR /usr/local/Xmipp setenv PATH ${XMIPPDIR}/bin:${PATH} setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${XMIPPDIR}/lib - Copy to /etc/profile.d
sudo cp -v xmipp.sh /etc/profile.d/ sudo chmod 755 /etc/profile.d/xmipp.sh sudo cp -v xmipp.csh /etc/profile.d/ sudo chmod 755 /etc/profile.d/xmipp.csh
 
 - For bash, edit xmipp.sh:
 
Test Xmipp
xmipp_ml_align2d
2104:Argument -i not found or invalid argument
File: libraries/data/args.cpp line: 502
Usage:  ml_align2d [options] 
   -i <selfile>                : Selfile with input images 
   -nref <int>                 : Number of references to generate automatically (recommended)
   OR -ref <selfile/image>         OR selfile with initial references/single reference image 
 [ -o <rootname> ]             : Output rootname (default = "ml2d")
 [ -mirror ]                   : Also check mirror image of each reference 
 [ -fast ]                     : Use pre-centered images to pre-calculate significant orientations
 [ -thr <N=1> ]                : Use N parallel threads 
 [ -more_options ]             : Show all possible input parameters 
should appear
	< Compile Ace2 | Test Appion >
Updated by Neil Voss over 15 years ago · 61 revisions