2617
Comment:
|
2429
|
Deletions are marked like this. | Additions are marked like this. |
Line 1: | Line 1: |
= !!! UNDER CONSTRUCTION !!! = | = Anaconda based Build, All Platforms = |
Line 3: | Line 3: |
= 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. |
Line 16: | Line 16: |
a. {{{ | a. This option installs Anaconda and sets up a specific environment for EMAN2. It requires running the second command in each shell before trying to run EMAN2/SPARX/SPHIRE commands. {{{ conda create -n eman-env eman-deps -c cryoem -c defaults -c conda-forge source activate eman-env }}} a. This option is easier, and doesn't use an environment, but may be broken (July 2017) due to recent Qt changes in Anaconda {{{ |
Line 21: | Line 25: |
a. If you already use anaconda, you may get package conflicts when you install eman dependencies by following the instructions in the previous step. In that case, you need to install eman and its dependencies in its own conda environment.{{{ conda create -n eman-env eman-deps -c cryoem -c defaults -c conda-forge source activate eman-env }}} |
|
Line 29: | Line 28: |
rm -f CMakeCache.txt # This is needed to ensure cmake doesn't have any leftovers from previous runs cmake <some-path-to-keep-eman2-source> -DENABLE_CONDA=ON make -j # "make" should pick up the number of available processors, make -j4 # but you may specify the number if you like make install }}} == Instructions valid for code on branch "cmake-refactor-main". == Replaces last bullet from the previous section. 1. {{{ |
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
Download and install Anaconda2 or Miniconda2.
Checkout EMAN2 code from GitHub:cryoem/eman2.
cd <some-path-to-keep-eman2-source> git clone https://github.com/cryoem/eman2.git
- Install dependencies. Follow only one of the steps below:
This option installs Anaconda and sets up a specific environment for EMAN2. It requires running the second command in each shell before trying to run EMAN2/SPARX/SPHIRE commands.
conda create -n eman-env eman-deps -c cryoem -c defaults -c conda-forge source activate eman-env
This option is easier, and doesn't use an environment, but may be broken (July 2017) due to recent Qt changes in Anaconda
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
Listing the channels explicitly can be avoided by specifying them in $HOME/.condarc, see conda documentation for more details, https://conda.io/docs/using/index.html.
Out-of-source builds are recommended, so work in a directory outside of eman2 source (this is a recommended practice in general, not EMAN2-specific). Note cmake, not ccmake . CMake will automatically find the dependencies. If you want to change any of the CMake values, then use cmake-gui or ccmake.
cd <build-directory> cmake <some-path-to-keep-eman2-source>
- If conda is not found in PATH, set CONDA_ROOT to your conda environment directory. It could be the main installation or an environment.
- 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.
Rerun cmake and continue with make.
cmake <some-path-to-keep-eman2-source> make -j # "make" should pick up the number of available processors, make -j4 # but you may specify the number if you like make install