1 Star 0 Fork 0

liusen/snarkOS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build_ubuntu.sh 1.14 KB
一键复制 编辑 原始数据 按行查看 历史
Howard Wu 提交于 2022-10-28 11:21 . Add build_ubuntu
#!/bin/bash
if [[ $(/usr/bin/id -u) -ne 0 ]]; then
echo "Aborting: run as root user!"
exit 1
fi
echo "================================================"
echo " Attention - Building snarkOS from source code."
echo "================================================"
# Install Ubuntu dependencies
apt-get update
apt-get install -y \
build-essential \
curl \
clang \
gcc \
libssl-dev \
llvm \
make \
pkg-config \
tmux \
xz-utils
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
# Install snarkOS
# cargo clean
cargo install --path .
echo "=================================================="
echo " Attention - Please ensure ports 4133 and 3033"
echo " are enabled on your local network."
echo ""
echo " Cloud Providers - Enable ports 4133 and 3033"
echo " in your network firewall"
echo ""
echo " Home Users - Enable port forwarding or NAT rules"
echo " for 4133 and 3033 on your router."
echo "=================================================="
# Open ports on system
ufw allow 4133/tcp
ufw allow 3033/tcp
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/liusen_n/snarkOS.git
[email protected]:liusen_n/snarkOS.git
liusen_n
snarkOS
snarkOS
sen-dev

搜索帮助