Skip to content

Commit

Permalink
[scripts] add ubuntu installation script for rooch dev environment (#490
Browse files Browse the repository at this point in the history
)

* [scripts] add ubuntu installation script for rooch dev environment

* add update source list cmd
  • Loading branch information
geometryolife authored Jul 17, 2023
1 parent 93c28b0 commit 55c12a8
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions scripts/ubuntu_dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash
# Copyright (c) RoochNetwork
# SPDX-License-Identifier: Apache-2.0
# This script sets up the environment for installing necessary dependencies.
#
# Usage ./ubuntu_dev.sh

if [ "$(whoami)" != 'root' ]; then
sudo apt update
sudo apt install git curl clang lld pkg-config libssl-dev
else
apt update
apt install git curl clang lld pkg-config libssl-dev
fi

cat << EOF
=== Congratulations! ===
You have installed the required system dependencies,
now ready to install Rust, if you already have Rust
installed you can choose to cancel (Option 3).
EOF

echo "Installing Rust ..."
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

0 comments on commit 55c12a8

Please sign in to comment.