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

Couldn't cabal install without happy and alex #1337

Closed
hardbyte opened this issue Jun 13, 2014 · 1 comment
Closed

Couldn't cabal install without happy and alex #1337

hardbyte opened this issue Jun 13, 2014 · 1 comment

Comments

@hardbyte
Copy link

On archlinux with a freshly installed and updated cabal calab install pandoc failed with the following message:

Configuring pandoc-1.12.4.2...
setup: The program alex is required but it could not be found.
cabal: Error: some packages failed to install:
pandoc-1.12.4.2 failed during the configure step. The exception was:
ExitFailure 1

After manually installing alex the same message occurred for happy. Then pandoc installed fine.

I see alex and happy are listed as build tools and not as build dependencies.

@jgm
Copy link
Owner

jgm commented Jun 13, 2014

Quoth the INSTALL file:

1.  Install the [Haskell platform].  This will give you [GHC] and
    the [cabal-install] build tool, as well as `alex` and `happy`.
    If you do not use the Haskell platform, you'll need to install
    `alex` and `happy` separately:

        cabal install alex happy

I think that listing them as build-tools is the correct thing to do, but cabal doesn't do the right thing and install them before proceeding. There's an open issue for this: haskell/cabal#220.

So, no bug here as far as I can see...

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

3 participants
@jgm @hardbyte and others