Rust installation on linux(without root and offline)

My computer(centOS7) cannot connect to internet and I do not have root permission. I download 'rust-1.37.0-x86_64-unknown-linux-gnu.tar.gz' and run '', I get the message 'error: can't write to destination. consider sudo.'

Then I export env:
export PATH="~/rust-1.37/cargo/bin:$PATH"
export PATH="~/rust-1.37/rustc/bin:$PATH"
export LD_LIBRARY_PATH="~/rust-1.37/rustc/lib:$LD_LIBRARY_PATH"
export LD_LIBRARY_PATH="~/rust-1.37/rust-std-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib:$LD_LIBRARY_PATH"

when I run 'cargo build', I get 'error[E0463]: can't find crate for std'

What should I do?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.