This set of bash scripts (base script originally from Jaguar0625) that aid in downloading, compiling,and installing the Catapult toolchain on macOS & Debian-based Linux systems. I also added scripts for updating gcc
and cmake
, but keep in mind it is only for Debian (for now).
The following scripts are included:
-
install_base_deps_ubuntu.sh
- for Ubuntu.Installs
apt
system dependencies that are required for Catapult. It also updates viaapt update
andapt upgrade
.Usage:
bash install_base_deps_ubuntu.sh
-
install_base_deps_macos.sh
- for macOS.Installs
brew
system dependencies that are required for Catapult. It also updates viabrew update
andbrew upgrade
. You must have Homebrew installed for this to work.Usage:
bash install_base_deps_macos.sh
-
install_cat_deps.sh
- installs direct Catapult dependencies. Dependencies will be installed in the specified directory.Usage:
bash install_cat_deps.sh <install_dir> <job_count, i.e "8">
-
Open your Terminal
-
Create a directory for your catapult install to go:
mkdir catapult-source
-
Clone and checkout the correct branch: git clone
https://github.com/IoDLT/cat-install-scripts.git --single-branch --branch v0.9.4.1
-
Go into the directory:
cd cat-install-scripts/src
-
Run the pre-install script for base dependencies (might take some time):
bash install_base_deps_ubuntu.sh
-
Export OpenSSL lib path:
export LD_LIBRARY_PATH=/opt/openssl/lib
-
Run the script:
bash install_cat_deps.sh /home/<Your-Username>/catapult-source 8
-
Open your Terminal
-
Create a directory for your catapult install to go:
mkdir catapult-source
-
Clone:
git clone https://github.com/IoDLT/cat-install-scripts.git
-
Go into the directory:
cd cat-install-scripts/src
-
Run the base dependency setup:
bash install_base_deps_macos.sh
-
Run the script:
bash install_cat_deps.sh /Users/<Your-Username>/catapult-source 8
Appending rebuild
to the end will rebuild / continue the compilation of catapult-server
:
bash install_cat_deps.sh /Users/<Your-Username>/catapult-source 8 rebuild
You can also specify the version of which catapult-server
instance you wish to compile:
bash install_cat_deps.sh /Users/<Your-Username>/catapult-source v0.9.4.1 8