Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

Latest commit

 

History

History
76 lines (46 loc) · 2.39 KB

README.md

File metadata and controls

76 lines (46 loc) · 2.39 KB

Catapult Install Scripts

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 via apt update and apt 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 via brew update and brew 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">

Ubuntu Instructions

  1. Open your Terminal

  2. Create a directory for your catapult install to go: mkdir catapult-source

  3. Clone and checkout the correct branch: git clone https://github.com/IoDLT/cat-install-scripts.git --single-branch --branch v0.9.4.1

  4. Go into the directory: cd cat-install-scripts/src

  5. Run the pre-install script for base dependencies (might take some time): bash install_base_deps_ubuntu.sh

  6. Export OpenSSL lib path: export LD_LIBRARY_PATH=/opt/openssl/lib

  7. Run the script: bash install_cat_deps.sh /home/<Your-Username>/catapult-source 8

macOS Instructions

  1. Open your Terminal

  2. Create a directory for your catapult install to go: mkdir catapult-source

  3. Clone: git clone https://github.com/IoDLT/cat-install-scripts.git

  4. Go into the directory: cd cat-install-scripts/src

  5. Run the base dependency setup: bash install_base_deps_macos.sh

  6. Run the script: bash install_cat_deps.sh /Users/<Your-Username>/catapult-source 8

Other options

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