-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Installing from tarball? can't find crate for std
[E0463]
#33933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I found that I had another folder full of stuff that looks like the standard library in the (strangely long) path |
Yeah, bring back the old, unsplit tarball format for manual downloads! That's still working as expected after a bootstrap + |
@petevine I tried the instructions there but it didn't seem to help. I even tried copying the files from the std folder into I presume |
Last time I briefly used x86_64 rust a few weeks ago on a Live Distro, that's exactly what I did to get it work the way I like (by moving the std to rustlib and all binaries to bin). Once you recreate the default directory structure, |
@petevine Where did you move it to, |
You have to put the target triple from std under
|
I discovered there was an
I figured maybe that wasn't important, so tried compiling again:
I guess Rust requires |
That means the original issue was solved and you got to the linking stage. Just install the missing gcc package and that's it. |
Easier said than done on a Chromebook in dev mode :D But I'll give it a go. Thanks! |
Thanks for reminding everyone unpacking in your home directory doesn't just work the way it used to. |
I downloaded
I don't think I'm cut out for this Linux crap! :) |
Did you install |
@petevine tbh I don't know what I'm doing.. Rust said it needs a C compiler, so I googled and came to the conclusion that Like I said, this is probably a can of worms. ChromeOS is so stripped back it's hard to get anything working in dev mode without installing a "real" Linux distro. I love my Chromebook but maybe it's time to "upgrade" it to something that can do more without a load of faff =D |
The original issue is resolved and we sorta got off-topic, so gonna close this issue. I don't think installation on a dev-mode Chromebook is likely to be an officially supported scenario! |
You're probably not going to manually extract the required binaries from some distro's packages but it should be possible to integrate their repos. The best candidate would be slackware, as you wouldn't have to worry about overwriting your own stuff via dependency resolution. |
I spent several hours and have so far failed to get any binary of any C compiler to work on my Chromebook. Giving up on trying on the Chromebook; will give Rust a go on my desktop sometime instead! |
I have solved this. Obviously the MSI files here: https://forge.rust-lang.org/other-installation-methods#standalone-installers are installers. However the TAR.GZ files are also installers. So to work with ./install.sh --verbose --prefix=/tmp \
--components=rustc,rust-mingw,rust-std-x86_64-pc-windows-gnu or alternatively this: cp -r -s "$PWD"/rust-std-x86_64-pc-windows-gnu/lib rustc
cp -r -s "$PWD"/rust-mingw/lib rustc I disagree with the decision to make the TAR.GZ archives require installation: |
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 nofile
command on my Chromebook)./home/chronos/user/Downloads/Rust/rust-1.9.0/
/home/chronos/user/Downloads/Rust/rust-1.9.0/rustc/bin/
and/home/chronos/user/Downloads/Rust/rust-1.9.0/cargo/bin/
toPATH
/home/chronos/user/Downloads/Rust/rust-1.9.0/rustc/lib/
toLD_LIBRARY_PATH
rustc test.rs
Here's some console output:
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).
The text was updated successfully, but these errors were encountered: