812
Comment:
|
1721
|
Deletions are marked like this. | Additions are marked like this. |
Line 9: | Line 9: |
1. Download and install Anaconda/Miniconda (:TODO: links). | 1. Download and install [[https://www.continuum.io/downloads | Anaconda2]] or [[https://conda.io/miniconda.html | Miniconda2]]. |
Line 11: | Line 11: |
1. Checkout EMAN2 code from GitHub, (link here). {{{ | 1. Checkout EMAN2 code from [[https://github.com/cryoem/eman2 | GitHub:cryoem/eman2]]. {{{ |
Line 17: | Line 17: |
1. Install dependencies ('''Work-In-Progress''') 1. `eman.yaml` 1. meta-package |
1. Optionally, activate an existing conda environment, e.g. `source activate eman-env`. Skip this step, if you don't understand this statement. However, if you already use anaconda, you may get package conflicts when you install eman dependencies in the next step. In that case, you need to install eman and its dependencies in its own conda environment. |
Line 21: | Line 19: |
1. Optionally, activate an existing conda environment, i.e. `source activate eman-env`. | 1. Install dependencies {{{ conda install eman-deps -c cryoem -c defaults -c conda-forge }}} 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. |
Line 23: | Line 23: |
1. Out-of-source builds are recommended, so work in a directory outside of eman2 source. {{{ | 1. Out-of-source builds are recommended, so work in a directory outside of eman2 source (this is generally true, 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'''. {{{ |
Line 26: | Line 26: |
cmake <some-path-to-keep-eman2-source> make -j |
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 |
Line 31: | Line 32: |
# == Linux == |
!!! UNDER CONSTRUCTION !!!
All platforms
The following instructions will work with cmake changes introduced in https://github.com/cryoem/eman2/pull/65.
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
Optionally, activate an existing conda environment, e.g. source activate eman-env. Skip this step, if you don't understand this statement. However, if you already use anaconda, you may get package conflicts when you install eman dependencies in the next step. In that case, you need to install eman and its dependencies in its own conda environment.
Install dependencies
conda install eman-deps -c cryoem -c defaults -c conda-forge
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 generally true, 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> -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