Skip to content

Installing from tarball? can't find crate for std [E0463] #33933

Closed
@DanTup

Description

@DanTup

I'm trying to use Rust on my Chromebook (I don't know if this will work on ChromeOS, but I want to give it a Go... it worked for Dart). I've never used it before so it's likely I'm doing something silly, but I'm not sure how to diagnose (I can't find any instructions for installing from the tar.gz, and rustup fails ue to no file command on my Chromebook).

  • I downloaded the 64bit Linux 1.9.0 tar.gz
  • I extracted to /home/chronos/user/Downloads/Rust/rust-1.9.0/
  • I added /home/chronos/user/Downloads/Rust/rust-1.9.0/rustc/bin/ and /home/chronos/user/Downloads/Rust/rust-1.9.0/cargo/bin/ to PATH
  • I added /home/chronos/user/Downloads/Rust/rust-1.9.0/rustc/lib/ to LD_LIBRARY_PATH
  • I copied the Hello World code and ran rustc test.rs

Here's some console output:

chronos@localhost ~/Downloads/Rust/HelloWorld $ echo $PATH
/usr/local/bin:/usr/bin:/bin:/opt/bin:/home/chronos/user/Downloads/Rust/rust-1.9.0/rustc/bin/:/home/chronos/user/Downloads/Rust/rust-1.9.0/cargo/bin/

chronos@localhost ~/Downloads/Rust/HelloWorld $ echo $LD_LIBRARY_PATH 
/usr/local/lib:/usr/local/lib64:/home/chronos/user/Downloads/Rust/rust-1.9.0/rustc/lib/

chronos@localhost ~/Downloads/Rust/HelloWorld $ rustc --version
rustc 1.9.0 (e4e8b6668 2016-05-18)

chronos@localhost ~/Downloads/Rust/HelloWorld $ rustc test.rs 
error: can't find crate for `std` [E0463]
error: aborting due to previous error

I'm guessing there's more I need to do (rustup is huge and I only did a few things), but I can't find any details anywhere. Is setting it up manually feasible? I found this issue that is the same error but there was a comment from @didrocks that suggests it was a bug with the Rust release that has since been fixed (though whether he means Rust here or an Ununtu package, I'm not sure).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions