-
Notifications
You must be signed in to change notification settings - Fork 70
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
the reactive-banana-wx
package cannot be installed under linux with stack
#150
Comments
The |
Hey @HeinrichApfelmus, is it possible you need a |
@jdreaver Oh, this seems to be the right field, indeed. It seems to be new, though. Which version of Cabal introduced the |
To be honest I have no idea. I was just subscribed to this repo, saw this issue, and thought "hm there has to be a way to solve that." 😄 I did some brief searching around the cabal Github repo. Here is a commit documenting the feature, and I saw some even older example cabal files with There is also some documentation on this somewhere in their source tree in the form of an error message. |
Judging by those error messages, it looks like this might work:
I'm not sure if the actual library depends on |
For what it's worth, I had this same issue and was able to resolve it by putting:
in my stack.yaml |
@jdreaver, when I add those lines to the bottom of
Is it necessary to add that stanza to each build target? The cabal docs do not seem to be clear on that point. |
@lobachevzky The |
I see. That's what yielded the error I mentioned. In case I'm getting something wrong, here's a gist of my cabal file: https://gist.github.com/lobachevzky/021d9a6173cb4aa47cec0a0a672fef8b |
Try putting this in your
|
Those lines are already included as part of the original repository. It seems as if one of the dependencies needs an earlier version of cabal, but I am not sure which one. So I assume the build works for you? It's strange that it works on one system but not another, since stack is supposed to provide an isolated reproducible environment. |
Ok. Oddly,
Then it worked. |
I'm using
stack
to install packages, there is no problem installingreactive-banana
but with
stack install reactive-banana-wx
, it shows thatcabal-macosx-0.2.4.0
is required, but Linux is absolutely not MacOS, which leads to the failure/tmp/stack6202/reactive-banana-wx-1.1.1.0/Setup.hs:5:1: error: Failed to load interface for ‘Distribution.MacOSX’ Perhaps you meant Distribution.Make (from Cabal-1.24.2.0) Distribution.GetOpt Distribution.Package (from Cabal-1.24.2.0) Use -v to see a list of the files searched for.
so, I wonder if
reactive-banana-wx
cannot be installed under Linux?The text was updated successfully, but these errors were encountered: