Change rust install instructions
This commit is contained in:
parent
1c99570e67
commit
2b1f213bea
|
@ -96,11 +96,13 @@ make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
# install rust
|
# install rust
|
||||||
# final binary: /opt/.cargo/bin/rustc
|
# final binary: /usr/local/bin/rustc
|
||||||
# get version: /opt/.cargo/bin/rustc --version
|
# get version: /usr/local/bin/rustc --version
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
|
cd /opt && mkdir rust && cd rust
|
||||||
echo 'export PATH=$PATH:/opt/.cargo/bin' >> /opt/.profile
|
wget https://static.rust-lang.org/dist/rust-1.49.0-x86_64-unknown-linux-gnu.tar.gz
|
||||||
source /opt/.profile
|
tar -xzf rust-1.49.0-x86_64-unknown-linux-gnu.tar.gz
|
||||||
|
cd rust-1.49.0-x86_64-unknown-linux-gnu
|
||||||
|
./install.sh
|
||||||
|
|
||||||
# install swift
|
# install swift
|
||||||
# final binary: /opt/swift/swift-5.1.5-RELEASE-ubuntu18.04/usr/bin/swift
|
# final binary: /opt/swift/swift-5.1.5-RELEASE-ubuntu18.04/usr/bin/swift
|
||||||
|
|
Loading…
Reference in New Issue