代码拉取完成,页面将自动刷新
#!/bin/bash
if [ ! -d "$HOME/.rustup" ]; then
curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
fi
echo "INFO: Installing cargo-binutils"
cargo install cargo-binutils
if [ $? -ne 0 ]; then
echo "ERROR: Installing cargo-binutils failed!"
exit 1
fi
echo "INFO: Installing rustup toolchain nightly"
rustup toolchain install nightly
if [ $? -ne 0 ]; then
echo "ERROR: Installing rustup toolchain nightly failed!"
exit 1
fi
# rustup default nightly
# echo "INFO: Adding rustup component rust-src"
# rustup component add rust-src
# if [ $? -ne 0 ]; then
# echo "ERROR: Adding rustup component rust-src failed!"
# exit 1
# fi
# echo "INFO: Adding rustup component llvm-tools"
# rustup component add llvm-tools
# if [ $? -ne 0 ]; then
# echo "ERROR: Adding rustup component llvm-tools failed!"
# exit 1
# fi
echo "INFO: Installing qemu-system-x86_64 for debian"
sudo apt install -y qemu-system-x86
if [ $? -ne 0 ]; then
echo "ERROR: Installing qemu-system-x86_64 for debian failed!"
exit 1
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。