Skip to content

Commit

Permalink
add ubuntu install script
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalojoec committed Oct 31, 2024
1 parent 028ad7a commit 3f59adf
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@ This tool allows for validation of targets (e.g. Firedancer) against Solana Agav

## Requirements

This tool only works on RHEL8.
This tool works on RHEL8 or Ubuntu.

## Installation

Clone this repository and run:
Clone this repository and, for RHEL8, run:

```sh
source install.sh
```

For Ubuntu, run:

```sh
source install_ubuntu.sh
```

### Install auto-completion

```sh
Expand Down
26 changes: 26 additions & 0 deletions install_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Install the toolkit on Ubuntu.

# Clone repositories.
cd impl
git clone http://github.com/firedancer-io/firedancer.git
git clone -b agave-v1.17 http://github.com/firedancer-io/solfuzz-agave.git agave-v1.17
git clone -b agave-v2.0 http://github.com/firedancer-io/solfuzz-agave.git agave-v2.0
cd ..

# Configure GCC.
sudo apt install -y build-essential software-properties-common
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt install -y gcc-12 g++-12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 20

# Configure Python virtual environment.
sudo apt install -y python3.11 python3.11-dev
python3.11 -m venv test_suite_env
source test_suite_env/bin/activate

# Bootstrap environment.
make -j -C impl
pip install -e ".[dev]"
pre-commit install

0 comments on commit 3f59adf

Please sign in to comment.