Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Cabal install depends on c2hs #39

Open
ZephArvanitis opened this issue Dec 2, 2013 · 1 comment
Open

Cabal install depends on c2hs #39

ZephArvanitis opened this issue Dec 2, 2013 · 1 comment

Comments

@ZephArvanitis
Copy link

When I run cabal install opencl on Mac OSX 10.7.5, I get the following error:

Resolving dependencies...
Downloading OpenCL-1.0.3.4...
Configuring OpenCL-1.0.3.4...
cabal: The program c2hs is required but it could not be found.
Failed to install OpenCL-1.0.3.4
cabal: Error: some packages failed to install:
OpenCL-1.0.3.4 failed during the configure step. The exception was:
ExitFailure 1

Running cabal install c2hs followed by cabal install opencl worked perfectly.

It looks like the .cabal file lists c2hs in build-tools but not build-depends, and for whatever reason, cabal install doesn't verify that c2hs is installed. There seems to be some documentation on these options here. I tried to figure out the right thing to do but am not sure.

@zhensydow
Copy link
Contributor

I understand that build-depends install libraries you need in a package, but c2hs is not a library, is a full program.

I didn't check with the last version of cabal, but usually I install c2hs before this package.

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

No branches or pull requests

2 participants