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

Hard-coded /usr/bin paths #3

Open
peti opened this issue Feb 3, 2015 · 1 comment
Open

Hard-coded /usr/bin paths #3

peti opened this issue Feb 3, 2015 · 1 comment

Comments

@peti
Copy link

peti commented Feb 3, 2015

Please don't hard-code search paths like /usr/include/zookeeper in the Cabal file! On many machines, this path doesn't exist, and on some distributions (like NixOS) the build will fail because of that setting. It's much better to trust the user to specify --extra-include-dirs properly rather than providing incorrect defaults.

@jpittis
Copy link

jpittis commented May 25, 2018

For those of us on OSX, brew install zookeeper creates /usr/local/include/zookeeper.

We can then add the following to our stack.yml.

extra-include-dirs:
- /usr/local/include/zookeeper

and stack build should now work.

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