Skip to content

Commit

Permalink
Merge pull request #312 from jtpio/dev-install
Browse files Browse the repository at this point in the history
Add instructions to install from source
  • Loading branch information
JohanMabille committed Mar 17, 2020
2 parents a96413d + 589af06 commit 302021a
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ xeus-cling has been packaged for the conda package manager on the **Linux** and
To ensure that the installation works, it is preferable to install `xeus-cling` in a fresh conda environment. It is also needed to use a [miniconda](https://conda.io/miniconda.html) installation because with the full [anaconda](https://www.anaconda.com/) you may have a conflict with the `ZeroMQ` library which is already installed in the anaconda distribution.


The safest usage is to create an environment named `cling` with your miniconda installation
### Installation from conda

The safest usage is to create an environment named `cling` with your miniconda installation:

```
conda create -n cling
Expand All @@ -29,10 +31,19 @@ Then you can install in this environment `xeus-cling` and its dependencies
conda install xeus-cling -c conda-forge
```

Or you can install it directly from the sources, if all the dependencies are already installed.
### Installation from source

You will first need to create a new environment and install the dependencies:

```bash
conda create -n xeus-cling -c conda-forge cmake xeus=0.23.3 cling=0.6.0 clangdev=5.0 llvmdev=5 nlohmann_json cppzmq=4.3.0 xtl=0.6.9 pugixml cxxopts=2.1.1
conda activate xeus-cling
```

You can then compile the sources:

```bash
cmake -DCMAKE_INSTALL_PREFIX=your_conda_path -DCMAKE_INSTALL_LIBDIR=your_conda_path/lib
cmake -D CMAKE_INSTALL_PREFIX=${CONDA_PREFIX} -D CMAKE_C_COMPILER=$CC -D CMAKE_CXX_COMPILER=$CXX -D CMAKE_INSTALL_LIBDIR=${CONDA_PREFIX}/lib -D DOWNLOAD_GTEST=ON
make && make install
```

Expand Down

0 comments on commit 302021a

Please sign in to comment.