Rendering of reStructured text is not possible, please install Docutils.
.. contents:: **Table of Contents**
.. section-numbering::

Binary installation for linux -- Overview
------------------------------------------

The binary installation is simpler than a full source installation, and it takes significantly less time (around 1 minute after downloading).  However, there is no way a single binary can reliably work on all linux distributions, so I provide three binaries below; choose the one most likely to work for you.

The binaries provided here do not require root access, and they can be installed to any location.  To remove them, simply delete their directory.

If 

 - your linux system is highly customized
 - you plan on writing your own C/C++ code, or you want to contribute to eman2/cctbx

using the `source installer`_ is highly recommended.  

.. _`source installer`:  Installer/SourceInstallation

If you want to add packages to the installer yourself (e.g. to include xmipp), you MUST use the source installer.


Download & install 
---------------------------------
Binaries produced on one linux system may or may not work on another.  To avoid incompatibilities, run the commands ::

    uname -pm
    gcc --version

and choose the package from the following table:


    +-----------------+---------------+----------------------------+
    |output from      |output from    |download                    |
    |`uname -p`       |`gcc --version`|                            |
    |                 |               |                            |
    |                 |               |                            |
    +-----------------+---------------+----------------------------+
    |x86 / i386 /     |3.2 / 3.3      |`sparx-rh8-i686.tar.gz`_    |
    |i686             |               |                            |
    |                 +---------------+----------------------------+
    |                 |3.4 / 4.0+     |`sparx-fc6-i686.tar.gz`_    |
    +-----------------+---------------+----------------------------+
    |x86_64           |3.4 / 4.0+     |`sparx-fc3-x86_64.tar.gz`_  |
    |                 |               |                            |
    +-----------------+---------------+----------------------------+

.. _`sparx-rh8-i686.tar.gz`: http://www.macro-em.org/download/installer/sparx-rh8-i686.tar.gz

.. _`sparx-fc6-i686.tar.gz`: http://www.macro-em.org/download/installer/sparx-fc6-i686.tar.gz

.. _`sparx-fc3-x86_64.tar.gz`: http://www.macro-em.org/download/installer/sparx-fc3-x86_64.tar.gz

If you need more information, the following sections explain the architecture and gcc choices.  Otherwise, download the installer (to, say, `/tmp`), extract it, and set it up.  For example::

    mkdir $HOME/sparx
    cd $HOME/sparx
    tar zxvf /tmp/sparx-fc6-i686.tar.gz

    cd $HOME/sparx/sparx-fc6-i686
    ./post-extract

Once done, run the minimal `tests`_.

.. _`tests`: Installer/Tests



Checking the machine type
---------------------------------
First, choose between 32 Bit vs. 64 Bit::

    uname -op

This may show ::

    i686 GNU/Linux

for a 32 Bit machine, or ::
    
    x86_64 GNU/Linux

for 64 Bits.


Checking the compiler version
---------------------------------
There are binary incompatibilities between different gcc versions.  
Compatible versions are 3.2 / 3.3 and versions 3.4 / 4.0+.

Type ::

    gcc --version

to find out which your system uses.  If no compiler is installed, the following may help.



Fedora core

    ===========    ================  ================  ================  ================  ================  ================  ================  ================
    distro         rawhide           7                 6                 5                 4                 3                 2                 1
                                     moonshine         zod               bordeaux          stentz            heidelberg        tettnang          yarrow
    ===========    ================  ================  ================  ================  ================  ================  ================  ================
    gcc             4.1.2             4.1.2             4.1.1             4.1.0             4.0.0             3.4.2             3.3.3             3.3.2
    ===========    ================  ================  ================  ================  ================  ================  ================  ================


Mandrake / Mandriva

   ==========     =========  =========  =========  =========  =========  =========  =========  =========  =========  =========
   distro         cooker     2007.1     2007       2006       2005       10.1       10.0       9.2        9.1        9.0
                                                                                               fivestar   bamboo     dolphin
   ==========     =========  =========  =========  =========  =========  =========  =========  =========  =========  =========
   gcc            4.2.1      4.1.2      4.1.1      4.0.1      3.4.3      3.4.1      3.3.2      3.3.1      3.2.2      3.2
   ==========     =========  =========  =========  =========  =========  =========  =========  =========  =========  =========

Debian

   =============  =================  =================  =================  ===========
   distro         unstable           testing            4.0                3.1
                  sid                lenny              etch               sarge
   =============  =================  =================  =================  ===========
   gcc            4.1.2              4.1.1              4.1.1              3.3.5
   =============  =================  =================  =================  ===========

Ubuntu

    =============   ==================  ==================  ==================  ==================  ==================  ==================  ==================
    distro          snapshot            7.04                6.10                6.06                5.10                5.04                4.10
                                        feisty              edgy                dapper              breezy              hoary               warty
    =============   ==================  ==================  ==================  ==================  ==================  ==================  ==================
    gcc             4.1.2               4.1.2               4.1.1               4.0.3               4.0.1               3.3.5               3.3.4
    =============   ==================  ==================  ==================  ==================  ==================  ==================  ==================

Installer/BinaryLinux (last edited 2013-07-01 13:13:03 by localhost)