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

Error Building Happy: The program 'happy' is required but it could not be found #285

Closed
Boring545 opened this issue Jul 18, 2024 · 4 comments

Comments

@Boring545
Copy link

Boring545 commented Jul 18, 2024

Here's the process I followed to build happy, ending with the reported error:

wget https://hackage.haskell.org/package/happy-1.20.1/happy-1.20.1.tar.gz
tar -xf happy-1.20.1.tar.gz
cd happy-1.20.1

ghc --make Setup.hs
./Setup configure --user --enable-library-profiling

Attempt to build happy, resulting in the following error:

./Setup build
Preprocessing executable 'happy' for happy-1.20.1..
Error: Setup: The program 'happy' is required but it could not be found

Additionally, I successfully built Alex using a nearly identical approach.Is there an issue with my build method?

@Boring545 Boring545 changed the title Error Building Happy: Missing Program 'happy' Error Building Happy: The program 'happy' is required but it could not be found Jul 18, 2024
@Boring545
Copy link
Author

Boring545 commented Jul 18, 2024

I tried version: starting with 1.20.1, 1.21.0, and they all failed during the process. Finally, I tried 1.19.12, 1.20.1.1, and the build was successful.

@sgraf812
Copy link
Collaborator

Indeed, 1.20.1.1 should work. 1.21.0 and 1.20.1 were deprecated for the very reason that they can't be built.

@sgraf812
Copy link
Collaborator

@Boring545 is there anything left to do here? Perhaps adding documentation somewhere? Where?

I see that you were using wget to download the tarball. Why not cabal get happy? That would have automatically downloaded the correct version.

@sgraf812
Copy link
Collaborator

sgraf812 commented Sep 9, 2024

Closing, because there is a happy release (1.20.1.1) that works.

@sgraf812 sgraf812 closed this as completed Sep 9, 2024
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