Hello there, I am new to Rust, by far I am still trying to install it from the source. unfortunately I've gotten the following error when I tried to compile the source by following the tutorial at GitHub - rust-lang/rust: Empowering everyone to build reliable and efficient software..
my host is Ubuntu 20.4, x86_64. I've tried python 2.7 and python3.8. both showed the same error. Thank you so much for helping me out.
on the 4th step,
$ ./x.py build
Updating only changed submodules
Submodules updated in 0.07 seconds
downloading https://static.rust-lang.org/dist/2021-03-25/rust-std-1.51.0-x86_64-unknown-linux-gnu.tar.xz
############################################################################################################################################################################################################ 100.0%
Traceback (most recent call last):
File "./x.py", line 27, in
bootstrap.main()
File "/home/wei/workspace/rust_/rust/src/bootstrap/bootstrap.py", line 1175, in main
bootstrap(help_triggered)
File "/home/wei/workspace/rust_/rust/src/bootstrap/bootstrap.py", line 1145, in bootstrap
build.download_stage0()
File "/home/wei/workspace/rust_/rust/src/bootstrap/bootstrap.py", line 409, in download_stage0
self.download_component_helper(filename, pattern, tarball_suffix, download_rustc)
File "/home/wei/workspace/rust/rust/src/bootstrap/bootstrap.py", line 518, in download_component_helper
get("{}/{}".format(url, filename), tarball, verbose=self.verbose, do_verify=do_verify)
File "/home/wei/workspace/rust/rust/src/bootstrap/bootstrap.py", line 49, in get
if do_verify and not verify(temp_path, sha_path, verbose):
File "/home/wei/workspace/rust_/rust/src/bootstrap/bootstrap.py", line 108, in verify
expected = sha256sum.readline().split()[0]
IndexError: list index out of range