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

Rust installation not found #210

Closed
martinlierschof opened this issue Mar 6, 2016 · 12 comments
Closed

Rust installation not found #210

martinlierschof opened this issue Mar 6, 2016 · 12 comments

Comments

@martinlierschof
Copy link

When using visual rust and compiling i always get the error message:
No Rust installation detected. You can download official Rust installer from rust-lang.org/install
I installed a few rust versions inclusive the msvc abi etc.. but the error keeps beeing there. I have the path set to my rust installation and the rust src env path.
I use visual studio 2015. I tried with latest build of visual rust and latest stable.
Can you help me with that?

@tommiv
Copy link

tommiv commented Mar 7, 2016

Same here. Rust compiler (MSVC ABI, x64) installed and bin directory have added to env.path.

> rustc --version
rustc 1.7.0 (a5d1e7a59 2016-02-29)

VisualRust version is latest stable (0.1.1 I guess)

@KaleidoDeer
Copy link

Same here. Tried all versions with Rust 1.7.0 and Visual Rust 0.1.1 still no installation found.

@mogu84
Copy link

mogu84 commented Mar 9, 2016

This seems to be a problem with the new version (1.7.0) of Rust.

A temporary workaround can be achieved by setting a windows registery key with regedit into:

  • Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla Foundation\Rust stable (64-bit)\1.7\

And there you need to add a new string value with data of your rust install directory.

  • For example: C:\Program Files\Rust stable MSVC 1.7

After this Visual Studio should compile normally.
This same workaround was discussed in #207 and #187

@tommiv
Copy link

tommiv commented Mar 9, 2016

Should we report to the Rust installer maintainers then? Is this a bug or just a breaking change?

@dimitri-xyz
Copy link

I have the same problem with the same versions cited by @tommiv

@vosen
Copy link
Member

vosen commented Mar 9, 2016

@tommiv Sure, it's a change on the Rust installer maintainers side, but they never commited to keeping the paths stable between release and it's on me to keep up with the changes to the installer, so no reason for reporting it to them.
I've pushed out here and on VS Gallery a new version 0.1.2 that should fix this problem.

@waynenilsen
Copy link

I am also getting this message using rustup-rs on windows 7 using 0.1.2

@mjfmechanic
Copy link

I know this may be basic, but I haven't heard anyone mention this; did you put the installation in your OS environment variables path? Depending if you are using windows/mac, the variable path should already be there and look something like this under system variables ex: variable will be path and value will be C:\Program Files\Rust stable MSVC 1.9\bin; (There's a long list of programs there so copy and past into a text file or something to see all the paths).

Again sorry for the basics and I know everyone is sharp but covering all bases:
right click on "my computer" or "This PC" in your explorer nav window, properties, advanced system settings, Advanced, environment variables, and edit variable named path to show where the location of your Rust version is. Remember to put semi-colons on both sides of your entry. If it's already there, I also added it to my user variable path by creating a RUST_SRC_PATH variable and then also adding the location under values all the way up to the bin file. ex. C:\Program Files\Rust stable MSVC 1.9\bin;

Hope this helps or if not, at least the bases were covered.

-Mike

@Thomas-Fleming
Copy link

Seems to now be resolved for me. First I installed Visual Rust then attempted to compile a basic hello_world.rs app. Got the rust installation not found error. Downloaded the official rust installer and installed. Hit rebuild and everything built fine.

rustc --version
rustc 1.10.0 (cfcb716cf 2016-07-03)

@Boddlnagg
Copy link
Contributor

I think this was a duplicate of #207, which has been fixed.

@Pzixel
Copy link

Pzixel commented Feb 22, 2017

Same here. Have C:\Users\Alex\.cargo\bin and C:\Users\Alex\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin in PATH with rustc inside: installed rustc 1.15.1 (021bd294c 2017-02-08) from official site with all defaults.

@bbi-ashmatheson
Copy link

bbi-ashmatheson commented May 18, 2017

Just installed Visual Rust on VS 2015 and getting this as well.

C:\Users\xxNNxx>rustc --version
rustc 1.17.0 (56124baa9 2017-04-24)

following the instructions here: #263 resolved the issue for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests