Skip to content
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

.tar.gz dist files require running install.sh before they can be used #60335

Open
ghost opened this issue Apr 27, 2019 · 2 comments
Open

.tar.gz dist files require running install.sh before they can be used #60335

ghost opened this issue Apr 27, 2019 · 2 comments
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Comments

@ghost
Copy link

ghost commented Apr 27, 2019

If I download Rust using:

x86_64-pc-windows-gnu.tar.gz

from here:

https://forge.rust-lang.org/other-installation-methods#standalone-installers

it seems the compiler cant actually compile anything:

$ cat aaaaa.rs
fn main() {
   println!("bbbbb ccccc");
}

$ rustc aaaaa.rs
error[E0463]: can't find crate for `std`
@ghost ghost changed the title If I download Rust using: error[E0463]: can't find crate for std Apr 27, 2019
@csmoe csmoe added the O-windows-gnu Toolchain: GNU, Operating system: Windows label Apr 27, 2019
@ghost
Copy link
Author

ghost commented May 14, 2019

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
the TAR.GZ, you need to do this:

./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:
the whole point distributing an archive over an installer is so that users can
extract and go.

@pietroalbini pietroalbini added T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels May 15, 2019
@mati865
Copy link
Contributor

mati865 commented Dec 27, 2019

Not MinGW specific.

@rustbot modify labels: -O-windows-gnu

@rustbot rustbot removed the O-windows-gnu Toolchain: GNU, Operating system: Windows label Dec 27, 2019
@jyn514 jyn514 changed the title error[E0463]: can't find crate for std .tar.gz files require running install.sh before they can be used Feb 3, 2023
@jyn514 jyn514 changed the title .tar.gz files require running install.sh before they can be used .tar.gz dist files require running install.sh before they can be used Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

4 participants