6759
Comment:
|
6732
|
Deletions are marked like this. | Additions are marked like this. |
Line 2: | Line 2: |
'''Note:''' Along with upgrading '''!NumPy''' to 1.13, we are also upgrading '''conda''' to 4.4 and '''conda-build''' to 3. Please, pay attention to PATH related instructions as there is no need to manipulate PATH anymore. | These instructions are for building with '''!NumPy v1.13'''. |
Line 4: | Line 4: |
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. | EMAN2 source lives on !GitHub, downloading the source is part of the instructions below. Since EMAN2 uses Anaconda for its base environment, please follow the instructions below for a painless compile from source. If you go 'off script' you're on your own! 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 as much as 5-7 years old. Please report any problems. |
Line 13: | Line 15: |
The approaches below will install EMAN2 with a precompiled version of OpenMPI, which may or may not work with the batch queuing system on your cluster. If it does not work, the symptom will be that MPI parallel jobs will use only a single node, no matter how many you have allocated in your job. If this happens please see the linux cluster installations on the [[EMAN2/Install/BinaryInstallAnaconda|binary install page]]. Those instructions should also work with either of the source-based installations below. https://github.com/cryoem/eman2/pull/167 | The approaches below will install EMAN2 with a precompiled version of OpenMPI, which may or may not work with the batch queuing system on your cluster. If it does not work, the symptom will be that MPI parallel jobs will use only a single node, no matter how many you have allocated in your job. If this happens please see the linux cluster installations on the [[EMAN2/Install/BinaryInstallAnaconda|binary install page]]. Those instructions should also work with either of the source-based installations below. |
Line 17: | Line 19: |
1. For existing installations install conda 4.4. | 1. For existing installations install conda 4.5. |
Line 19: | Line 21: |
conda install conda=4.4 -c defaults | conda install "conda>=4.5.2" -c defaults |
Line 22: | Line 24: |
1. '''Remove''' any miniconda2/bin entries from your PATH and run {{{ . <miniconda2-path>/etc/profile.d/conda.sh }}} . or, if you have a line reading {{{ export PATH=<miniconda2-path>/bin:$PATH }}} in your .bashrc or .profile, replace it with {{{ . <miniconda2-path>/etc/profile.d/conda.sh }}} |
1. 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. |
Line 35: | Line 26: |
1. Make sure 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. 1. '''Install dependencies''' |
1. '''Install dependencies''', click [[https://github.com/cryoem/eman-deps-feedstock/blob/e8c31645c2e263efeeff232a7aa8a1e7eea65479/recipe/meta.yaml#L11-L42|here]] for conda dependencies |
Line 40: | Line 29: |
conda install eman-deps=8 -c cryoem -c defaults -c conda-forge | conda install eman-deps=14 -c cryoem -c defaults -c conda-forge |
Line 73: | Line 62: |
Line 74: | Line 64: |
1. For existing installations install conda 4.4. | 1. For existing installations install conda 4.5. |
Line 76: | Line 66: |
conda install conda=4.4 -c defaults | conda install "conda>=4.5.2" -c defaults |
Line 79: | Line 69: |
1. '''Remove''' any anaconda2/bin entries from your PATH and run | 1. 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 Anaconda. Alternatively, you may set up a shell script or alias to make these environment changes on demand when you want to use EMAN2/anaconda. 1. '''Install dependencies''', click [[https://github.com/cryoem/eman-deps-feedstock/blob/e8c31645c2e263efeeff232a7aa8a1e7eea65479/recipe/meta.yaml#L11-L42|here]] for conda dependencies |
Line 81: | Line 73: |
. <anaconda2-path>/etc/profile.d/conda.sh }}} . or, if you have a line reading {{{ export PATH=<anaconda2-path>/bin:$PATH }}} in your .bashrc or .profile, replace it with {{{ . <anaconda2-path>/etc/profile.d/conda.sh |
conda create -n eman-env cmake=3.9 -c defaults conda install -n eman-env eman-deps=14 -c cryoem -c defaults -c conda-forge source activate eman-env |
Line 92: | Line 79: |
1. Make sure 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 Anaconda. Alternatively, you may set up a shell script or alias to make these environment changes on demand when you want to use EMAN2/anaconda. 1. '''Install dependencies''' {{{ conda create -n eman-env cmake=3.9 -c defaults conda install -n eman-env eman-deps=8 -c cryoem -c defaults -c conda-forge conda activate eman-env }}} 1. Note that you will need to run {{{ conda activate eman-env }}} once in each shell before being able to run EMAN2 commands. |
1. Note that you will need to run {{{ source activate eman-env }}} once in each shell before being able to run EMAN2 commands. |
Anaconda based Build, All Platforms
These instructions are for building with NumPy v1.13.
EMAN2 source lives on GitHub, downloading the source is part of the instructions below. Since EMAN2 uses Anaconda for its base environment, please follow the instructions below for a painless compile from source. If you go 'off script' you're on your own!
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 as much as 5-7 years old. Please report any problems.
GPU Support
For features which support the GPU, please complete the source install instructions below, then follow the GPU instructions from the binary installation page.
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.
Linux Clusters
The approaches below will install EMAN2 with a precompiled version of OpenMPI, which may or may not work with the batch queuing system on your cluster. If it does not work, the symptom will be that MPI parallel jobs will use only a single node, no matter how many you have allocated in your job. If this happens please see the linux cluster installations on the binary install page. Those instructions should also work with either of the source-based installations below.
Miniconda2
Download and install Miniconda2-4.4.10 for Linux or Mac OSX.
- For existing installations install conda 4.5.
conda install "conda>=4.5.2" -c defaults
- For existing installations install conda 4.5.
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.
Install dependencies, click here for conda dependencies
conda install cmake=3.9 -c defaults conda install eman-deps=14 -c cryoem -c defaults -c conda-forge
Checkout EMAN2 code from GitHub:cryoem/eman2.
cd <path-where-you-want-eman2-source> # eg - $HOME/src git clone https://github.com/cryoem/eman2.git # this will create an eman2 folder containing the current source code from the master branch
Create a build directory (out-of-source builds are recommended).
mkdir <build-directory> # eg- $HOME/src/eman2-build cd <build-directory> cmake <path-to-eman2-source> # - eg $HOME/src/eman2. 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.
Build EMAN2
make -j make install
- 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
Download and install Anaconda2-5.1.0 for Linux or Mac OSX.
- For existing installations install conda 4.5.
conda install "conda>=4.5.2" -c defaults
- For existing installations install conda 4.5.
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 Anaconda. Alternatively, you may set up a shell script or alias to make these environment changes on demand when you want to use EMAN2/anaconda.
Install dependencies, click here for conda dependencies
conda create -n eman-env cmake=3.9 -c defaults conda install -n eman-env eman-deps=14 -c cryoem -c defaults -c conda-forge source activate eman-env
Note that you will need to run source activate eman-env once in each shell before being able to run EMAN2 commands.
Checkout EMAN2 code from GitHub:cryoem/eman2.
cd <path-where-you-want-eman2-source> # eg - $HOME/src git clone https://github.com/cryoem/eman2.git # this will create an eman2 folder containing the current source code from the master branch
Create a build directory (out-of-source builds are recommended).
mkdir <build-directory> # eg- $HOME/src/eman2-build cd <build-directory> cmake <path-to-eman2-source> # - eg $HOME/src/eman2. 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.
Build EMAN2
make -j make install
- 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