-
Notifications
You must be signed in to change notification settings - Fork 20
Installation
Jon Drobny edited this page Sep 20, 2020
·
46 revisions
Without optional features, rustBCA should compile with cargo on Windows, MacOS, and Linux systems. HDF5 has been tested on Windows, but HDF5 1.10.6 must be used. rcpr, the Adaptive Chebyshev Proxy Rootfinder with Automatic Subdivision and Polynomial Rootfinder package, has not yet been successfully compiled on Windows.
Manual Dependences:
-
rustup, the Rust toolchain
Automatic Dependencies:
- see Cargo.toml for a complete list
Optional Dependencies:
- HDF5 libraries
-
rcpr: https://github.com/drobnyjt/rcpr (will be automatically installed when built with--features cpr_rootfinder) - Python 3.6+
- Numpy, Matplotlib, toml, Shapely, scipy
Ubuntu 18.04 LTS:
- Optional: install Python 3.6+ (this comes natively in Ubuntu 18.04)
- Install curl,
apt-get install curl - Install rustup, the Rust toolchain (includes rustc, the compiler, and cargo, the package manager) from https://rustup.rs/
- Optional: Install pip for Python-3,
apt-get install python3-pip - Optional: Install Python libraries for making input files,
python3 -m pip install numpy matplotlib shapely scipy - Optional: Install Python toml library from source:
git clone https://github.com/uiri/toml.gitcd tomlpython3 setup.py install
- Install Cargo,
apt install cargo - Build RustBCA
git clone https://github.com/lcpp-org/rustBCAcd rustBCAcargo build --release
- Optional: Build RustBCA with optional dependencies, rcpr & hdf5
cargo build --release --features cpr_rootfinder,hdf5_input
- input.toml is the input file -- see Usage for more information
-
cargo testwill run all required tests - Optional:
cargo test --features cpr_rootfinderwill run all required and optional tests
Click Pages above to see all pages in the Wiki.
This page is a work in progress.