Closed mzji closed 7 years ago
What the fuck is a developer console. Fix your $PATH
.
@nabijaczleweli I'd have to say, when I see the f-word, I feel a bit uncomfortable.
Below is the explain of what is 'the developer console'. By default, after installed the Visual Studio or the Visual C++ building tools, the path of C/C++ building tools won't add to your $PATH
by default. The way to use the C/C++ building tools, recommended by Microsoft, is running this shortcut link in the Start Menu:
This shortcut is the 'developer console'. Click it, then a new console starts:
Starting this shortcut, on Windows, is slow, even with a SSD. It takes about 8~10 seconds on my machine (with an SSD, of course).
As I said above, the path of C/C++ building tools is not added to the $PATH
by default. So when a MSVC user try to cargo install cargo-update
in the normal console (since cargo itself don't need a developer console to run) will just get a building error with no hints. At least, we could add some notes in the README.md
, to tell MSVC users that it's required to use a developer console (or add the path of C/C++ building tools to the $PATH
, of course) to install or update the cargo-update crate.
Best regards,
MZ Ji
So you consciously choose to be incompatible with everything on the goddamn planet. Fine, I'll add a notice or something.
Released in v0.5.3
When I tried to install the cargo-update in the normal console (read as: not developer console) as usual, I get:
Then I try to re-do this in the developer console, I get:
Obviously, this line in the build.rs tries to
.unwrap()
to run therc
program which is unavailable in the 'normal' console, then aborts the building process.VS users won't always add the path of the building tools into
$PATH
. Also, running cargo and all of its sub-commands won't need a developer console. Since installing the old version of cargo-update won't need the developer console, I hope installing new versions won't need the developer console, too.