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
(cmake) not in PATH #987
Comments
you can already do this (or should anyhow). install cmake like this to have it added to PATH for all users: choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=System"' or the following to have it added to PATH for the current user only choco install cmake.install --installargs '"ADD_CMAKE_TO_PATH=User"' There isn't any intention of adding it by default, as it isn't added by default in the installer. |
This is different from website. Which leads me to failure in adding CMake to PATH. On Web: Effective: Please update the website. |
@manhnt9 Just tested the example shown in the package, and everything works as it should. |
Maybe it's because you already had the vars set. I tried uninstall CMake and reinstall several times. Choco didn't even warn me to refreshenv (and I did try that too). The command here solved my problem. |
I did not. Whenever I test packages, this is done in a completely bare-bones VM with next to nothing installed in it. (The VM in question is: https://github.com/chocolatey-community/chocolatey-test-environment) |
Well that's interesting though. Maybe there's something wrong with my environment. |
Well, everything is possible. You may also have had a typo, or maybe there is a difference in what command prompt was used (in my case, I tested it in powershell). |
Probably there's difference between cmd and powershell. |
I ended up uninstalling and reinstalling cmake (and cmake.install --im not sure how choco packages work here) several times. Turns out The problem was that |
@Groostav if you were running powershell, then it could be that the necessary module isn't loaded in your profile, and instead it used the bash edition of See https://chocolatey.org/docs/troubleshooting#refreshenv-has-no-effect for more information. |
I had to uninstall CMake and then reinstall it with:
Just reinstalling it with |
I ran into this problem today |
This. The entire point of a package manager is being just an "install x" away from being able to type "x args" in the command line, with sane defaults. If I didn't want to add it to path, I'd look up flags. But the default with no flags should be a usable setup out of the box. |
I agree on this. At least some way to add it after install, instead of having to uninstall and re-install with the
Why is this so? |
Not specifically a requirement, however in general chocolatey packages are expected to behave similar to the defaults of an installer. |
How can I do this in ChocolateyGUI? The default behavior should add cmake to the PATH. It is strange that this package does not add cmake to the path. All the other chocolatey packages do this by default! |
@aminya you can't, not until chocolatey/ChocolateyGUI#545 is implemented. |
ay make sure cmake perists in PATH upon installation, so that project builds can find it
The text was updated successfully, but these errors were encountered: