Differences between revisions 55 and 59 (spanning 4 versions)
Revision 55 as of 2017-08-05 20:03:27
Size: 4627
Editor: TunayDurmaz
Comment:
Revision 59 as of 2017-08-06 20:54:00
Size: 5362
Editor: TunayDurmaz
Comment:
Deletions are marked like this. Additions are marked like this.
Line 19: Line 19:
conda install cmake=3.8 -c conda-forge
conda install eman-deps -c cryoem -c defaults -c conda-forge # Mac OSX
conda install eman-deps="*"="np18*" -c cryoem -c defaults -c conda-forge # Linux
 }}}
   a. If you have a broken cmake or ccmake, try the following sequence of commands. {{{
conda remove cmake bzip2 expat jsoncpp ncurses
conda install cmake=3.8 -c conda-forge
Line 28: Line 35:
  * If conda is not found in PATH, set CONDA_ROOT to your conda environment directory. It could be the main installation or an environment. This step most likely will be needed only if you use '''cmake-gui'''.
   * If you set CONDA_ROOT to an environment, make sure to delete any cmake variables that cmake already found, variables like EMAN_INSTALL_PREFIX, EMAN_PREFIX, *_LIBRARY or similar, *_INCLUDE_PATH or similar.
  * If conda is not found in PATH, set CONDA_PREFIX to your conda environment directory. It could be the main installation or an environment. This step most likely will be needed only if you use '''cmake-gui'''.
   * If you set CONDA_PREFIX to an environment, make sure to delete any cmake variables that cmake already found, variables like *_LIBRARY or similar, *_INCLUDE_PATH or similar.
Line 51: Line 58:
conda create -n eman-env eman-deps -c cryoem -c defaults -c conda-forge # Mac
conda create -n eman-env eman-deps="*"="np18*" -c cryoem -c defaults -c conda-forge # Linux
conda create -n eman-env cmake=3.8 -c conda-forge
conda install -n eman-env
eman-deps -c cryoem -c defaults -c conda-forge # Mac
conda install -n eman-env eman-deps="*"="np18*" -c cryoem -c defaults -c conda-forge # Linux
Line 54: Line 62:
 }}}
   a. If you have a broken cmake or ccmake, try the following sequence of commands. {{{
conda remove cmake bzip2 expat jsoncpp ncurses
conda install cmake=3.8 -c conda-forge
conda install eman-deps -c cryoem -c defaults -c conda-forge # Mac OSX
conda install eman-deps="*"="np18*" -c cryoem -c defaults -c conda-forge # Linux
Line 62: Line 76:
  * If conda is not found in PATH, set CONDA_ROOT to your conda environment directory. It could be the main installation or an environment. This step most likely will be needed only if you use '''cmake-gui'''.
   * If you set CONDA_ROOT to an environment, make sure to delete any cmake variables that cmake already found, variables like EMAN_INSTALL_PREFIX, EMAN_PREFIX, *_LIBRARY or similar, *_INCLUDE_PATH or similar.
  * If conda is not found in PATH, set CONDA_PREFIX to your conda environment directory. It could be the main installation or an environment. This step most likely will be needed only if you use '''cmake-gui'''.
   * If you set CONDA_PREFIX to an environment, make sure to delete any cmake variables that cmake already found, variables like *_LIBRARY or similar, *_INCLUDE_PATH or similar.

Anaconda based Build, All Platforms

Note that even with a source build it may be difficult to get this working on systems with very old operating system installs. We normally try to support OS versions 6-7 years old. Please report any problems.

Mac OS X, Linux

There are two approaches you can use for the installation. One uses 'Miniconda' and the other uses full 'Anaconda'. Miniconda is a much smaller (~30 MB) install, provides everything EMAN2 needs, and can be expanded with more packages as you like. Anaconda is a much more complete environment (~300 MB), including useful tools such as the Jupyter notebook, but will require the use of a conda environment to make EMAN2 work properly at present.

Miniconda2

  1. Download and install Miniconda2 - make sure you don't get the Python3 version

  2. Make sure that you have added miniconda2/bin as the first element in your PATH, and that you do not have LD_LIBRARY_PATH or PYTHONPATH set in your shell. If you need these settings for other software, you can still try to proceed, and hope they do not conflict with Miniconda. Alternatively, you may set up a shell script or alias to make these environment changes on demand when you want to use EMAN2/miniconda.
  3. Checkout EMAN2 code from GitHub:cryoem/eman2.

    cd <path-to-eman2-source>
    git clone https://github.com/cryoem/eman2.git
  4. Install dependencies
    conda install cmake=3.8 -c conda-forge
    conda install eman-deps -c cryoem -c defaults -c conda-forge              # Mac OSX
    conda install eman-deps="*"="np18*" -c cryoem -c defaults -c conda-forge  # Linux
    1. If you have a broken cmake or ccmake, try the following sequence of commands.

      conda remove cmake bzip2 expat jsoncpp ncurses
      conda install cmake=3.8 -c conda-forge
      conda install eman-deps -c cryoem -c defaults -c conda-forge              # Mac OSX
      conda install eman-deps="*"="np18*" -c cryoem -c defaults -c conda-forge  # Linux
  5. Create a build directory (out-of-source builds are recommended).
    cd <build-directory>
    cmake -DENABLE_CONDA=ON <path-to-eman2-source>
    # on linux, also add -DENABLE_OPTIMIZE_MACHINE=ON 
    • If conda is not found in PATH, set CONDA_PREFIX to your conda environment directory. It could be the main installation or an environment. This step most likely will be needed only if you use cmake-gui.

      • If you set CONDA_PREFIX to an environment, make sure to delete any cmake variables that cmake already found, variables like *_LIBRARY or similar, *_INCLUDE_PATH or similar.
      • Rerun cmake.
  6. Build EMAN2

    make -j
    make install
  7. You may also wish to run
    make test          # if everything passes you are fine, if there are failures, you are welcome to ask
    make test-verbose  # verbose test output to help to identify specific failures

Anaconda2

  1. Download and install Anaconda2 - make sure you don't get the Python3 version

  2. Make sure that you have added anaconda2/bin as the first element in your PATH, and that you do not have LD_LIBRARY_PATH or PYTHONPATH set in your shell. If you need these settings for other software, you can still try to proceed, and hope they do not conflict with Miniconda. Alternatively, you may set up a shell script or alias to make these environment changes on demand when you want to use EMAN2/miniconda.
  3. Checkout EMAN2 code from GitHub:cryoem/eman2.

    cd <path-to-eman2-source>
    git clone https://github.com/cryoem/eman2.git
  4. Install dependencies
    conda create -n eman-env cmake=3.8 -c conda-forge
    conda install -n eman-env eman-deps -c cryoem -c defaults -c conda-forge              # Mac
    conda install -n eman-env eman-deps="*"="np18*" -c cryoem -c defaults -c conda-forge  # Linux
    source activate eman-env
    1. If you have a broken cmake or ccmake, try the following sequence of commands.

      conda remove cmake bzip2 expat jsoncpp ncurses
      conda install cmake=3.8 -c conda-forge
      conda install eman-deps -c cryoem -c defaults -c conda-forge              # Mac OSX
      conda install eman-deps="*"="np18*" -c cryoem -c defaults -c conda-forge  # Linux
  5. Note that you will need to run  source activate eman-env  once in each shell before being able to run EMAN2 commands.

  6. Create a build directory (out-of-source builds are recommended).
    cd <build-directory>
    cmake -DENABLE_CONDA=ON <path-to-eman2-source>
    # on linux, also add -DENABLE_OPTIMIZE_MACHINE=ON 
    • If conda is not found in PATH, set CONDA_PREFIX to your conda environment directory. It could be the main installation or an environment. This step most likely will be needed only if you use cmake-gui.

      • If you set CONDA_PREFIX to an environment, make sure to delete any cmake variables that cmake already found, variables like *_LIBRARY or similar, *_INCLUDE_PATH or similar.
      • Rerun cmake.
  7. Build EMAN2

    make -j
    make install
  8. You may also wish to run
    make test          # if everything passes you are fine, if there are failures, you are welcome to ask
    make test-verbose  # verbose test output to help to identify specific failures

EMAN2/COMPILE_EMAN2_ANACONDA-PRE-CONDA-ENVIRONMENTS (last edited 2019-11-01 14:27:54 by TunayDurmaz)