(solved) The pkg-config package 'libpcre' is required but it could not be found.
pkg-confg
として認識されているか確認する。
$ pkg-config --libs libpcre Package libpcre was not found in the pkg-config search path. Perhaps you should add the directory containing `libpcre.pc' to the PKG_CONFIG_PATH environment variable No package 'libpcre' found
profile
の編集
$ vim ~/.bash_profile
.bash_profile
に下記を追加。
export PKG_CONFIG_PATH=/usr/lib/pkgconfig
パスを登録
source ~/.bash_profile
認識されていることを確認
$ pkg-config --libs libpcre -lpcre
再インストール
$ cabal install pcre-light-0.4.0.4 --reinstall Resolving dependencies... In order, the following will be installed: pcre-light-0.4.0.4 (via: mysql-simple-0.4.0.1) (new version) mysql-simple-0.4.0.1 (via: persistent-mysql-2.6) (reinstall) (changes: pcre-light-0.4.0.3 removed) persistent-mysql-2.6 (reinstall) (changes: mysql-simple-0.4.0.1 removed) Warning: Note that reinstalls are always dangerous. Continuing anyway... Notice: installing into a sandbox located at /work03/webapp/servant04/.cabal-sandbox Configuring pcre-light-0.4.0.4... Building pcre-light-0.4.0.4... Installed pcre-light-0.4.0.4 Configuring mysql-simple-0.4.0.1... Building mysql-simple-0.4.0.1... Installed mysql-simple-0.4.0.1 Configuring persistent-mysql-2.6... Building persistent-mysql-2.6... Installed persistent-mysql-2.6 Updating documentation index /work03/webapp/servant04/.cabal-sandbox/share/doc/x86_64-osx-ghc-8.0.1/index.html