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

MacOS error building pcre-light dependency #171

Open
micheljansen opened this issue Jan 3, 2024 · 0 comments
Open

MacOS error building pcre-light dependency #171

micheljansen opened this issue Jan 3, 2024 · 0 comments

Comments

@micheljansen
Copy link

When building on MacOS (using the Homebrew instructions), the dependency package pcre-light fails to build with an error:


error: Base.hsc:105:10: fatal error: 'pcre.h' file not found
#include <pcre.h>
         ^~~~~~~~
1 error generated.

Error: cabal: Failed to build pcre-light-0.4.1.2 (which is required by
exe:arbtt-stats from arbtt-0.12.0.3). See the build log above for details.

I solved this by manually telling Cabal where to find pcre.h using a "cabal.project.local" file with these contents:

package pcre-light
  extra-include-dirs: /opt/homebrew/Cellar/pcre/8.45/include/
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

1 participant