I installed the rust environment using the following steps:
- Download the linux stand-alone installation package from the official website: x86_64-unknown-linux-gnu.tar.gz
- Upload to linux and decompress tar.gz, the path is: /home/xcscsa/rust-1.70.0-x86_64-unknown-linux-gnu
- Enter the decompression directory, run sudo ./install.sh, the installation is successful
- Check the rustc and cargo directories, which are ~/.cargo/bin/rustc and ~/.cargo/bin/cargo respectively, and add them to the environment variable
rustc --version, report:
error: rustup could not choose a version of rustc to run, because one wasn't specified explicitly, and no default is configured.
help: run 'rustup default stable' to download the latest stable release of Rust and set it as your default toolchain.
rustup default stable, because the machine cannot connect to the Internet, it reports:
could not download file from 'https://static.rust-lang.org/dist/channel-rust-stable.toml.sha256' to '/home/xcscsa/.rustup/tmp/ofq36f3folrolefe_file'
Now, what should I do because the linux machine cannot connect to the internet, please help me, thanks~