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 build fails during happy build #2

Closed
paf31 opened this issue Apr 21, 2016 · 2 comments
Closed

stack build fails during happy build #2

paf31 opened this issue Apr 21, 2016 · 2 comments

Comments

@paf31
Copy link

paf31 commented Apr 21, 2016

I followed the instructions in the readme, and stack setup worked fine. However, stack build failed during the Happy build, with

setup: The program 'ghc' is required but it could not be found

I'm using Stack v1.0.4.3 on MacOS, without a global GHC install.

@yamafaktory
Copy link
Owner

Hi,

Could you try stack --no-system-ghc build (and eventually try again afterward with stack build)?

Another option could be stack --resolver ghc-7.10 setup --reinstall.

@paf31
Copy link
Author

paf31 commented Apr 21, 2016

These didn't work, but some temporary modifications to my PATH did the trick.

For the benefit of future readers, this was the command I required:

PATH=$PATH:~/.stack/programs/x86_64-osx/ghc-7.10.3/bin/:~/.stack/snapshots/x86_64-osx/lts-5.4/7.10.3/bin stack build

Thanks!

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

2 participants