Manual install on Windows - missing target libs

⚓ rust    📅 2025-07-03    👤 surdeus    👁️ 2      

surdeus

Hi,

I installed Rust on my laptop with Windows the manual way (unpack from the archive) as I do not have the administration rights and rustup failed to install.
I set up the PATH to rustc and cargo and I am able to compile with "rustc -L c:\opt\rust-1.87.0-x86_64-pc-windows-gnu\rust-std-x86_64-pc-windows-gnu\lib\rustlib\x86_64-pc-windows-gnu\lib\ main.rs"

But I am not able to run the "cargo build". Cargo is missing the library setup:

cargo build
Downloaded bmp v0.5.0
Downloaded byteorder v1.5.0
Downloaded 2 crates (35.1KiB) in 0.98s
Compiling byteorder v1.5.0
error[E0463]: can't find crate for std
|
= note: the x86_64-pc-windows-gnu target may not be installed

Which environmental variables shall I set for cargo? Thank you.

5 posts - 3 participants

Read full topic

🏷️ rust_feed