nomeata / arbtt

arbtt, the automatic rule-based time-tracker
http://arbtt.nomeata.de/
GNU General Public License v2.0
314 stars 36 forks source link

MacOS error building pcre-light dependency #171

Open micheljansen opened 9 months ago

micheljansen commented 9 months ago

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/