forked from williamblake333/ore-cuda-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
28 lines (21 loc) · 809 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
# Update and upgrade the system
sudo apt update && sudo apt upgrade -y
# git clone https://github.com/Solana0x/ore-cli-gpu
# # Change to the ore-cli directory
# cd ore-cli-gpu || { echo "Directory ore-cli not found!"; exit 1; }
# Install necessary dependencies
sudo apt-get install -y pkg-config libssl-dev build-essential curl
sudo apt-get install -y pkg-config
sudo apt install nano -y
sudo apt install screen -y
sudo apt install htop -y
# Install Rust
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
# Install Solana
sh -c "$(curl -sSfL https://release.solana.com/v1.18.4/install)"
export PATH="$HOME/.local/share/solana/install/active_release/bin:$PATH"
# Build the project with Cargo
cargo build --release --features gpu
echo "All tasks completed successfully!"