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

stack config can't set system-ghc true without a compiler #2852

Closed
unhammer opened this issue Dec 16, 2016 · 2 comments
Closed

stack config can't set system-ghc true without a compiler #2852

unhammer opened this issue Dec 16, 2016 · 2 comments
Milestone

Comments

@unhammer
Copy link

General summary/comments (optional)

stack config can't set system-ghc true without a compiler

Steps to reproduce

On Ubuntu 16.04,

Expected

~/.stack/config.yaml should say system-ghc:true

Actual

stack complains

No compiler found, expected minor version match with ghc-7.8.4 (x86_64) (based on resolver setting in /home/kiwibird/src/app/stack.yaml).
To install the correct GHC into /home/kiwibird/.stack/programs/x86_64-linux/, try running "stack setup" or use the "--install-ghc" flag. To use your system GHC installation, run "stack config set system-ghc --global true", or use the "--system-ghc" flag.

Stack version

$ stack --version
Version 1.3.0, Git revision 99b910d3c8e183aa376cb1e6f0341d86aed6d00e (4372 commits) x86_64 hpack-0.15.0

Method of installation

  • Official binary from fpcomplete's apt repo
@borsboom borsboom added this to the P1: Must milestone Dec 16, 2016
mgsloan added a commit that referenced this issue Dec 17, 2016
@mgsloan
Copy link
Contributor

mgsloan commented Dec 17, 2016

This actually turned out to be a trivial fix!

@lukehoersten
Copy link

@mgsloan was the default changed here? Why does this flag need to be set now instead of stack automatically searching for my system ghc first?

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

No branches or pull requests

4 participants