-
Notifications
You must be signed in to change notification settings - Fork 842
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
"I don't know how to install GHC on your system configuration, please install manually" on nix #4420
Comments
@teto I have a machine with a similar setup and it appears to work so probably there's some not yet listed detail which makes Stack work incorrectly. Does Stack in impure Nix mode show you the same results? I.e. using |
Thanks for your answer. I find another command:
not sure if it's due to a mismatch in ghc versions. |
Feel free to close as there seems to be several similar issues already open and was able to work around my problem. I feel like there is something fishy in stack ghc detection system, might be a bug/lack of verbosity/misunderstanding I am not sure. |
@teto the error above points to the fact that your system GHC uses |
@qrilka you guessed right. I was using ghc 8.4.4 and it seemed like updating the solver to use a more recent lts was the key. Yet I am a bit sad there is not a proper error/logged message about why it discarded my ghc. I really had to try all flags while the log could have hinted at using some flags, something like: "we found ghc844 but it is not compatible with lts9 so ignoring it, use --ghc-ignore-check to bypass this". |
I had the same issue. For some reason I had GHC 8.2.2 on path instead of GHC 8.6.4 which was defined in my configuration.nix The fix was to remove GHC 8.2.2 from the nix store. This put GHC 8.6.4 back on path and then |
See also #4934.
|
I must confess that whatever the tool I am completely lost in the haskell ecosystem, everything seems to fail in a different way. Ideally I would like to use nix to handle everythings but it fails in different ways as well and a website I need to modify requires stack so I gave it a spin but stack fails with
I don't know how to install GHC on your system configuration, please install manually
even though ghc844 is in PATH:My global config is
while the project specific is almost empty:
My understanding is that $HOME/.stack/config.yaml gets merged with the project specific stack.yaml but some people on IRC disagreed and the doc isn't especially clear on this
https://docs.haskellstack.org/en/stable/yaml_configuration/
As
--verbose
doesn't dump options, in doubt I have append my $HOME/.stack/config.yaml to the project specific stack.yaml to no avail.I've also tried to specify options on the command line without success:
Stack version
Method of installation
via
nix-shell -p stack ghc
Related #4362
The text was updated successfully, but these errors were encountered: