Skip to content

Install docs / Conda env #7

Open
pebert opened this issue Mar 30, 2017 · 2 comments
Open

Install docs / Conda env #7

pebert opened this issue Mar 30, 2017 · 2 comments

Comments

@pebert
Copy link
Collaborator

pebert commented Mar 30, 2017

Building/installing Shogun can be a bit involved, the following process may be used as a working example. Using the Conda package manager, one creates a dedicated environment:

name: shogun
channels:
  - bioconda
  - conda-forge
dependencies:
  - cmake
  - ccache
  - atlas
  - hdf5
  - lapack
  - clapack
  - openblas
  - swig=3.*
  - eigen=3.*
  - nlopt
  - curl
  - openssl
  - python=2.7
  - numpy
  - java-jdk

Create the above environment, activate it, clone the dev branch of Shogun (this process worked with shogun_5.0.0-602-g86ca84e) and follow Shogun's installation instructions; specifically, call cmake as follows

cmake
-DPythonModular=ON
-DBUILD_META_EXAMPLES=OFF
-DCMAKE_PREFIX_PATH=/MY-PATH/TO/conda/envs/shogun
-DCMAKE_INSTALL_PREFIX=/MY-PATH/TO/conda/envs/shogun
-DSWIG_EXECUTABLE=/MY-PATH/TO/conda/envs/shogun/bin/swig
-DBUILD_EXAMPLES=OFF

Assuming that this worked, call afterwards:

make && make install

If everything works, this will install Shogun in the Conda environment, i.e., Shogun will be available as soon as the environment is activated.

@pebert
Copy link
Collaborator Author

pebert commented Aug 1, 2017

As an update, I just confirmed that the above still works with the last major release of Shogun 6.0.0

@snikumbh
Copy link
Owner

snikumbh commented Aug 1, 2017

Thanks, that is very helpful. I will update the README accordingly.

Sign in to join this conversation on GitHub.
Projects
None yet
Development

No branches or pull requests

2 participants