Create a gist now

Instantly share code, notes, and snippets.

The pkg-config package 'libpcre' is required but it could not be found.
foo$ stack new servant06
Downloading template "new-template" to create project "servant06" in servant06/ ...
The following parameters were needed by the template but not provided: author-email, author-name, category, copyright, github-username
You can provide them in /Users/bar/.stack/config.yaml, like this:
templates:
params:
author-email: value
author-name: value
category: value
copyright: value
github-username: value
Or you can pass each one as parameters like this:
stack new servant06 new-template -p "author-email:value" -p "author-name:value" -p "category:value" -p "copyright:value" -p "github-username:value"
Looking for .cabal or package.yaml files to use to init the project.
Using cabal packages:
- servant06/servant06.cabal
Selecting the best among 10 snapshots...
DoDownloaded lts-8.3 build plan.
remote: Counting objects: 15833, done.
remote: Compressing objects: 100% (12749/12749), done.
remote: Total 15833 (delta 4263), reused 12972 (delta 2780), pack-reused 0
Receiving objects: 100% (15833/15833), 4.41 MiB | 956.00 KiB/s, done.
Resolving deltas: 100% (4263/4263), completed with 1329 local objects.
From https://github.com/commercialhaskell/all-cabal-hashes
+ 6740aad...94fd2e6 hackage -> origin/hackage (forced update)
- [tag update] current-hackage -> current-hackage
Fetched package index.
Populated index cache.
* Matches lts-8.3
Selected resolver: lts-8.3
Initialising configuration using resolver: lts-8.3
Total number of user packages considered: 1
Writing configuration to file: servant06/stack.yaml
All done.
(root)blender:webapp bar$ cd servant06/
foo$ ls
LICENSE Setup.hs app servant06.cabal src stack.yaml test
foo$ stack build
Compiler version mismatched, found ghc-8.0.1 (x86_64), but expected minor version match with ghc-8.0.2 (x86_64) (based on resolver setting in /Users/bar/work03/webapp/servant06/stack.yaml).
Try running "stack setup" to install the correct GHC into /Users/bar/.stack/programs/x86_64-osx/
foo$ stack setup
Preparing to install GHC to an isolated location.
This will not interfere with any system-level installation.
Downloaded ghc-8.0.2.
Installed GHC.
stack will use a locally installed GHC
For more information on paths, see 'stack path' and 'stack exec env'
To use this GHC and packages outside of a project, consider using:
stack ghc, stack ghci, stack runghc, or stack exec
foo$ stack repl
[1 of 1] Compiling Main ( /private/var/folders/hw/p4bp49hd7v9_1j60sjvmhqnr0000gn/T/stack76379/Setup.hs, /private/var/folders/hw/p4bp49hd7v9_1j60sjvmhqnr0000gn/T/stack76379/Setup.o )
Linking /Users/bar/.stack/setup-exe-cache/x86_64-osx/tmp-setup-Simple-Cabal-1.24.2.0-ghc-8.0.2 ...
servant06-0.1.0.0: configure
Configuring servant06-0.1.0.0...
servant06-0.1.0.0: build
Preprocessing library servant06-0.1.0.0...
[1 of 1] Compiling Lib ( src/Lib.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Lib.o )
Preprocessing executable 'servant06-exe' for servant06-0.1.0.0...
[1 of 1] Compiling Main ( app/Main.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/servant06-exe/servant06-exe-tmp/Main.o )
Linking .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/servant06-exe/servant06-exe ...
servant06-0.1.0.0: copy/register
Installing library in
/Users/bar/work03/webapp/servant06/.stack-work/install/x86_64-osx/lts-8.3/8.0.2/lib/x86_64-osx-ghc-8.0.2/servant06-0.1.0.0-3hxMy99bCEO8eEoa9n17iN
Installing executable(s) in
/Users/bar/work03/webapp/servant06/.stack-work/install/x86_64-osx/lts-8.3/8.0.2/bin
Registering servant06-0.1.0.0...
The following GHC options are incompatible with GHCi and have not been passed to it: -threaded
Using main module: 1. Package `servant06' component exe:servant06-exe with main-is file: /Users/bar/work03/webapp/servant06/app/Main.hs
Configuring GHCi with the following packages: servant06
GHCi, version 8.0.2: http://www.haskell.org/ghc/ :? for help
[1 of 1] Compiling Lib ( /Users/bar/work03/webapp/servant06/src/Lib.hs, interpreted )
Ok, modules loaded: Lib.
[2 of 2] Compiling Main ( /Users/bar/work03/webapp/servant06/app/Main.hs, interpreted )
Ok, modules loaded: Lib, Main.
Loaded GHCi configuration from /private/var/folders/hw/p4bp49hd7v9_1j60sjvmhqnr0000gn/T/ghci76379/ghci-script
*Main Lib> :v
unknown command ':v'
use :? for help.
*Main Lib> :version
unknown command ':version'
use :? for help.
*Main Lib> :q
Leaving GHCi.
foo$ vim servant06.cabal
foo$ stack build
servant06-0.1.0.0: unregistering (missing dependencies: persistent, servant-server)
ansi-terminal-0.6.2.3: download
base-compat-0.9.1: download
auto-update-0.1.4: download
appar-0.1.4: download
appar-0.1.4: configure
appar-0.1.4: build
auto-update-0.1.4: configure
auto-update-0.1.4: build
ansi-terminal-0.6.2.3: configure
appar-0.1.4: copy/register
ansi-terminal-0.6.2.3: build
base-compat-0.9.1: configure
auto-update-0.1.4: copy/register
base64-bytestring-1.0.0.1: download
base-compat-0.9.1: build
base64-bytestring-1.0.0.1: configure
byteorder-1.0.4: download
base64-bytestring-1.0.0.1: build
byteorder-1.0.4: configure
byteorder-1.0.4: build
base-compat-0.9.1: copy/register
byteorder-1.0.4: copy/register
base64-bytestring-1.0.0.1: copy/register
cmdargs-0.10.14: download
bytestring-builder-0.10.8.1.0: download
data-default-class-0.1.2.0: download
data-default-class-0.1.2.0: configure
ansi-terminal-0.6.2.3: copy/register
data-default-class-0.1.2.0: build
cmdargs-0.10.14: configure
ansi-wl-pprint-0.6.7.3: download
cmdargs-0.10.14: build
bytestring-builder-0.10.8.1.0: configure
data-default-class-0.1.2.0: copy/register
bytestring-builder-0.10.8.1.0: build
ansi-wl-pprint-0.6.7.3: configure
bytestring-builder-0.10.8.1.0: copy/register
dlist-0.8.0.2: download
ansi-wl-pprint-0.6.7.3: build
dlist-0.8.0.2: configure
easy-file-0.2.1: download
dlist-0.8.0.2: build
easy-file-0.2.1: configure
easy-file-0.2.1: build
ansi-wl-pprint-0.6.7.3: copy/register
dlist-0.8.0.2: copy/register
file-embed-0.0.10: download
file-embed-0.0.10: configure
easy-file-0.2.1: copy/register
hex-0.1.2: download
file-embed-0.0.10: build
hex-0.1.2: configure
integer-logarithms-1.0.1: download
hex-0.1.2: build
integer-logarithms-1.0.1: configure
hex-0.1.2: copy/register
integer-logarithms-1.0.1: build
file-embed-0.0.10: copy/register
memory-0.14.1: download
memory-0.14.1: configure
monad-loops-0.4.3: download
integer-logarithms-1.0.1: copy/register
memory-0.14.1: build
monad-loops-0.4.3: configure
mtl-2.2.1: download
monad-loops-0.4.3: build
mtl-2.2.1: configure
mtl-2.2.1: build
monad-loops-0.4.3: copy/register
network-2.6.3.1: download
network-2.6.3.1: configure
mtl-2.2.1: copy/register
old-locale-1.0.0.7: download
cmdargs-0.10.14: copy/register
memory-0.14.1: copy/register
primitive-0.6.1.0: download
cryptonite-0.21: download
network-2.6.3.1: build
old-locale-1.0.0.7: configure
old-locale-1.0.0.7: build
primitive-0.6.1.0: configure
primitive-0.6.1.0: build
cryptonite-0.21: configure
old-locale-1.0.0.7: copy/register
cryptonite-0.21: build
old-time-1.1.0.3: download
old-time-1.1.0.3: configure
primitive-0.6.1.0: copy/register
random-1.1: download
old-time-1.1.0.3: build
random-1.1: configure
random-1.1: build
network-2.6.3.1: copy/register
iproute-1.7.1: download
iproute-1.7.1: configure
iproute-1.7.1: build
old-time-1.1.0.3: copy/register
random-1.1: copy/register
safe-0.3.14: download
safe-0.3.14: configure
semigroups-0.18.2: download
safe-0.3.14: build
semigroups-0.18.2: configure
semigroups-0.18.2: build
semigroups-0.18.2: copy/register
silently-1.2.5: download
silently-1.2.5: configure
safe-0.3.14: copy/register
silently-1.2.5: build
simple-sendfile-0.2.25: download
silently-1.2.5: copy/register
simple-sendfile-0.2.25: configure
split-0.2.3.1: download
iproute-1.7.1: copy/register
simple-sendfile-0.2.25: build
split-0.2.3.1: configure
stm-2.4.4.1: download
split-0.2.3.1: build
stm-2.4.4.1: configure
stm-2.4.4.1: build
simple-sendfile-0.2.25: copy/register
split-0.2.3.1: copy/register
stringsearch-0.3.6.6: download
stringsearch-0.3.6.6: configure
text-1.2.2.1: download
stm-2.4.4.1: copy/register
stringsearch-0.3.6.6: build
text-1.2.2.1: configure
async-2.1.1: download
text-1.2.2.1: build
async-2.1.1: configure
async-2.1.1: build
async-2.1.1: copy/register
stm-chans-3.0.0.4: download
stm-chans-3.0.0.4: configure
stm-chans-3.0.0.4: build
stm-chans-3.0.0.4: copy/register
stringsearch-0.3.6.6: copy/register
th-lift-0.7.6: download
time-locale-compat-0.1.1.3: download
time-locale-compat-0.1.1.3: configure
time-locale-compat-0.1.1.3: build
th-lift-0.7.6: configure
time-locale-compat-0.1.1.3: copy/register
th-lift-0.7.6: build
transformers-compat-0.5.1.4: download
transformers-compat-0.5.1.4: configure
transformers-compat-0.5.1.4: build
th-lift-0.7.6: copy/register
transformers-compat-0.5.1.4: copy/register
exceptions-0.8.3: download
exceptions-0.8.3: configure
unix-compat-0.4.3.1: download
exceptions-0.8.3: build
unix-compat-0.4.3.1: configure
unix-compat-0.4.3.1: build
unix-compat-0.4.3.1: copy/register
exceptions-0.8.3: copy/register
mmorph-1.0.9: download
mmorph-1.0.9: configure
optparse-applicative-0.13.1.0: download
mmorph-1.0.9: build
optparse-applicative-0.13.1.0: configure
optparse-applicative-0.13.1.0: build
mmorph-1.0.9: copy/register
tagged-0.8.5: download
tagged-0.8.5: configure
tagged-0.8.5: build
tagged-0.8.5: copy/register
transformers-base-0.4.4: download
transformers-base-0.4.4: configure
transformers-base-0.4.4: build
optparse-applicative-0.13.1.0: copy/register
transformers-base-0.4.4: copy/register
unix-time-0.3.7: download
unix-time-0.3.7: configure
monad-control-1.0.1.0: download
unix-time-0.3.7: build
monad-control-1.0.1.0: configure
monad-control-1.0.1.0: build
monad-control-1.0.1.0: copy/register
unix-time-0.3.7: copy/register
lifted-base-0.2.3.10: download
lifted-base-0.2.3.10: configure
utf8-string-1.0.1.1: download
lifted-base-0.2.3.10: build
utf8-string-1.0.1.1: configure
utf8-string-1.0.1.1: build
lifted-base-0.2.3.10: copy/register
resourcet-1.1.9: download
resourcet-1.1.9: configure
cryptonite-0.21: copy/register
resourcet-1.1.9: build
vector-0.11.0.0: download
utf8-string-1.0.1.1: copy/register
vector-0.11.0.0: configure
word8-0.1.2: download
vector-0.11.0.0: build
word8-0.1.2: configure
word8-0.1.2: build
resourcet-1.1.9: copy/register
word8-0.1.2: copy/register
conduit-1.2.9: download
conduit-1.2.9: configure
zlib-0.6.1.2: download
conduit-1.2.9: build
zlib-0.6.1.2: configure
zlib-0.6.1.2: build
zlib-0.6.1.2: copy/register
conduit-1.2.9: copy/register
text-1.2.2.1: copy/register
hashable-1.2.5.0: download
blaze-builder-0.4.0.2: download
fast-logger-2.4.10: download
fast-logger-2.4.10: configure
fast-logger-2.4.10: build
hashable-1.2.5.0: configure
hashable-1.2.5.0: build
blaze-builder-0.4.0.2: configure
blaze-builder-0.4.0.2: build
fast-logger-2.4.10: copy/register
mime-types-0.1.0.7: download
mime-types-0.1.0.7: configure
hashable-1.2.5.0: copy/register
mime-types-0.1.0.7: build
case-insensitive-1.2.0.8: download
blaze-builder-0.4.0.2: copy/register
case-insensitive-1.2.0.8: configure
blaze-markup-0.7.1.1: download
case-insensitive-1.2.0.8: build
blaze-markup-0.7.1.1: configure
blaze-markup-0.7.1.1: build
case-insensitive-1.2.0.8: copy/register
cookie-0.4.2.1: download
cookie-0.4.2.1: configure
cookie-0.4.2.1: build
cookie-0.4.2.1: copy/register
http-media-0.6.4: download
http-media-0.6.4: configure
http-media-0.6.4: build
blaze-markup-0.7.1.1: copy/register
mime-types-0.1.0.7: copy/register
blaze-html-0.8.1.3: download
blaze-html-0.8.1.3: configure
http-types-0.9.1: download
blaze-html-0.8.1.3: build
http-types-0.9.1: configure
http-types-0.9.1: build
http-media-0.6.4: copy/register
parsec-3.1.11: download
parsec-3.1.11: configure
parsec-3.1.11: build
http-types-0.9.1: copy/register
path-pieces-0.2.1: download
path-pieces-0.2.1: configure
path-pieces-0.2.1: build
path-pieces-0.2.1: copy/register
psqueues-0.2.2.3: download
psqueues-0.2.2.3: configure
psqueues-0.2.2.3: build
parsec-3.1.11: copy/register
network-uri-2.6.1.0: download
network-uri-2.6.1.0: configure
network-uri-2.6.1.0: build
psqueues-0.2.2.3: copy/register
streaming-commons-0.1.17: download
streaming-commons-0.1.17: configure
streaming-commons-0.1.17: build
network-uri-2.6.1.0: copy/register
string-conversions-0.4.0.1: download
string-conversions-0.4.0.1: configure
string-conversions-0.4.0.1: build
string-conversions-0.4.0.1: copy/register
system-filepath-0.4.13.4: download
system-filepath-0.4.13.4: configure
system-filepath-0.4.13.4: build
streaming-commons-0.1.17: copy/register
unordered-containers-0.2.7.2: download
unordered-containers-0.2.7.2: configure
unordered-containers-0.2.7.2: build
system-filepath-0.4.13.4: copy/register
uuid-types-1.0.3: download
uuid-types-1.0.3: configure
uuid-types-1.0.3: build
uuid-types-1.0.3: copy/register
void-0.7.1: download
void-0.7.1: configure
void-0.7.1: build
blaze-html-0.8.1.3: copy/register
void-0.7.1: copy/register
vector-0.11.0.0: copy/register
unordered-containers-0.2.7.2: copy/register
th-lift-instances-0.1.11: download
th-lift-instances-0.1.11: configure
scientific-0.3.4.10: download
resource-pool-0.2.3.2: download
vault-0.3.0.6: download
th-lift-instances-0.1.11: build
resource-pool-0.2.3.2: configure
resource-pool-0.2.3.2: build
scientific-0.3.4.10: configure
th-lift-instances-0.1.11: copy/register
scientific-0.3.4.10: build
vault-0.3.0.6: configure
vault-0.3.0.6: build
resource-pool-0.2.3.2: copy/register
vault-0.3.0.6: copy/register
wai-3.2.1.1: download
wai-3.2.1.1: configure
wai-3.2.1.1: build
scientific-0.3.4.10: copy/register
wai-3.2.1.1: copy/register
attoparsec-0.13.1.0: download
wai-logger-2.3.0: download
wai-logger-2.3.0: configure
wai-logger-2.3.0: build
attoparsec-0.13.1.0: configure
attoparsec-0.13.1.0: build
wai-logger-2.3.0: copy/register
attoparsec-0.13.1.0: copy/register
conduit-extra-1.1.15: download
http-date-0.0.6.1: download
aeson-1.0.2.1: download
http-date-0.0.6.1: configure
uri-bytestring-0.2.3.0: download
http-date-0.0.6.1: build
uri-bytestring-0.2.3.0: configure
uri-bytestring-0.2.3.0: build
conduit-extra-1.1.15: configure
conduit-extra-1.1.15: build
aeson-1.0.2.1: configure
aeson-1.0.2.1: build
http-date-0.0.6.1: copy/register
uri-bytestring-0.2.3.0: copy/register
conduit-extra-1.1.15: copy/register
http-api-data-0.3.5: download
http-api-data-0.3.5: configure
monad-logger-0.3.20.2: download
http-api-data-0.3.5: build
monad-logger-0.3.20.2: configure
monad-logger-0.3.20.2: build
monad-logger-0.3.20.2: copy/register
http-api-data-0.3.5: copy/register
aeson-1.0.2.1: copy/register
aeson-pretty-0.8.2: download
aeson-pretty-0.8.2: configure
servant-0.9.1.1: download
wai-extra-3.0.19.1: download
persistent-2.6: download
aeson-pretty-0.8.2: build
servant-0.9.1.1: configure
servant-0.9.1.1: build
wai-extra-3.0.19.1: configure
wai-extra-3.0.19.1: build
persistent-2.6: configure
persistent-2.6: build
aeson-pretty-0.8.2: copy/register
servant-0.9.1.1: copy/register
http2-1.6.3: download
http2-1.6.3: configure
http2-1.6.3: build
wai-extra-3.0.19.1: copy/register
http2-1.6.3: copy/register
warp-3.2.11.1: download
warp-3.2.11.1: configure
warp-3.2.11.1: build
persistent-2.6: copy/register
warp-3.2.11.1: copy/register
wai-app-static-3.1.6.1: download
wai-app-static-3.1.6.1: configure
wai-app-static-3.1.6.1: build
wai-app-static-3.1.6.1: copy/register
servant-server-0.9.1.1: download
servant-server-0.9.1.1: configure
servant-server-0.9.1.1: build
servant-server-0.9.1.1: copy/register
servant06-0.1.0.0: configure
Configuring servant06-0.1.0.0...
servant06-0.1.0.0: build
Preprocessing library servant06-0.1.0.0...
Preprocessing executable 'servant06-exe' for servant06-0.1.0.0...
servant06-0.1.0.0: copy/register
Installing library in
/Users/bar/work03/webapp/servant06/.stack-work/install/x86_64-osx/lts-8.3/8.0.2/lib/x86_64-osx-ghc-8.0.2/servant06-0.1.0.0-3hxMy99bCEO8eEoa9n17iN
Installing executable(s) in
/Users/bar/work03/webapp/servant06/.stack-work/install/x86_64-osx/lts-8.3/8.0.2/bin
Registering servant06-0.1.0.0...
Completed 95 action(s).
foo$ vim servant06.cabal
foo$ stack build
servant06-0.1.0.0: unregistering (missing dependencies: persistent-mysql)
pcre-light-0.4.0.4: configure
base16-bytestring-0.1.1.6: download
mysql-0.1.4: download
base16-bytestring-0.1.1.6: configure
blaze-textual-0.2.1.0: download
base16-bytestring-0.1.1.6: build
mysql-0.1.4: configure
base16-bytestring-0.1.1.6: copy/register
mysql-0.1.4: build
blaze-textual-0.2.1.0: configure
blaze-textual-0.2.1.0: build
blaze-textual-0.2.1.0: copy/register
mysql-0.1.4: copy/register
Progress: 4/7
-- While building package pcre-light-0.4.0.4 using:
/Users/bar/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.24.2.0-ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 configure --with-ghc=/Users/bar/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc --with-ghc-pkg=/Users/bar/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/pkgdb --libdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/lib --bindir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/bin --datadir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/share --libexecdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/libexec --sysconfdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/etc --docdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --htmldir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --haddockdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --dependency=base=base-4.9.1.0 --dependency=bytestring=bytestring-0.10.8.1
Process exited with code: ExitFailure 1
Logs have been written to: /Users/bar/work03/webapp/servant06/.stack-work/logs/pcre-light-0.4.0.4.log
Configuring pcre-light-0.4.0.4...
setup-Simple-Cabal-1.24.2.0-ghc-8.0.2: The pkg-config package 'libpcre' is
required but it could not be found.
foo$ ls /usr/local/lib/pkgconfig/
freetype2.pc libpcre.pc libpcrecpp.pc libpng.pc mysqlclient.pc
libecpg.pc libpcre16.pc libpcreposix.pc libpng16.pc tcl.pc
libecpg_compat.pc libpcre32.pc libpgtypes.pc libpq.pc tk.pc
foo$ ls /usr/local/Cellar/pcre/8.39
AUTHORS ChangeLog LICENCE README include share
COPYING INSTALL_RECEIPT.json NEWS bin lib
foo$ ls /usr/local/Cellar/pcre/8.39/include/
pcre.h pcre_scanner.h pcre_stringpiece.h pcrecpp.h pcrecpparg.h pcreposix.h
foo$ stack build --extra-lib-dirs "/usr/local/lib/pkgconfig"
pcre-light-0.4.0.4: configure
Progress: 1/4
-- While building package pcre-light-0.4.0.4 using:
/Users/bar/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.24.2.0-ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 configure --with-ghc=/Users/bar/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc --with-ghc-pkg=/Users/bar/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/pkgdb --libdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/lib --bindir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/bin --datadir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/share --libexecdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/libexec --sysconfdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/etc --docdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --htmldir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --haddockdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --dependency=base=base-4.9.1.0 --dependency=bytestring=bytestring-0.10.8.1 --extra-lib-dirs=/usr/local/lib/pkgconfig
Process exited with code: ExitFailure 1
Logs have been written to: /Users/bar/work03/webapp/servant06/.stack-work/logs/pcre-light-0.4.0.4.log
Configuring pcre-light-0.4.0.4...
setup-Simple-Cabal-1.24.2.0-ghc-8.0.2: The pkg-config package 'libpcre' is
required but it could not be found.
foo$ vim stack.yaml
foo$ stack build --extra-lib-dirs "/usr/local/lib/pkgconfig":
foo$ vim stack.yaml
foo$ stack build
pcre-light-0.4.0.4: configure
Progress: 1/4
-- While building package pcre-light-0.4.0.4 using:
/Users/bar/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.24.2.0-ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 configure --with-ghc=/Users/bar/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc --with-ghc-pkg=/Users/bar/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/pkgdb --libdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/lib --bindir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/bin --datadir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/share --libexecdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/libexec --sysconfdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/etc --docdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --htmldir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --haddockdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --dependency=base=base-4.9.1.0 --dependency=bytestring=bytestring-0.10.8.1 --extra-lib-dirs=/usr/local/lib/pkgconfig
Process exited with code: ExitFailure 1
Logs have been written to: /Users/bar/work03/webapp/servant06/.stack-work/logs/pcre-light-0.4.0.4.log
Configuring pcre-light-0.4.0.4...
setup-Simple-Cabal-1.24.2.0-ghc-8.0.2: The pkg-config package 'libpcre' is
required but it could not be found.
foo$ brew link pcre
Warning: Already linked: /usr/local/Cellar/pcre/8.39
To relink: brew unlink pcre && brew link pcre
foo$ ls /usr/local/lib/pkgconfig
freetype2.pc libecpg_compat.pc libpcre16.pc libpcrecpp.pc libpgtypes.pc libpng16.pc mysqlclient.pc
libecpg.pc libpcre.pc libpcre32.pc libpcreposix.pc libpng.pc libpq.pc
foo$ ls -al /usr/local/lib/pkgconfig | grep libpcre
lrwxr-xr-x 1 bar admin 47 2 28 21:16 libpcre.pc -> ../../Cellar/pcre/8.39/lib/pkgconfig/libpcre.pc
lrwxr-xr-x 1 bar admin 49 2 28 21:16 libpcre16.pc -> ../../Cellar/pcre/8.39/lib/pkgconfig/libpcre16.pc
lrwxr-xr-x 1 bar admin 49 2 28 21:16 libpcre32.pc -> ../../Cellar/pcre/8.39/lib/pkgconfig/libpcre32.pc
lrwxr-xr-x 1 bar admin 50 2 28 21:16 libpcrecpp.pc -> ../../Cellar/pcre/8.39/lib/pkgconfig/libpcrecpp.pc
lrwxr-xr-x 1 bar admin 52 2 28 21:16 libpcreposix.pc -> ../../Cellar/pcre/8.39/lib/pkgconfig/libpcreposix.pc
foo$ stack build --extra-lib-dirs "/usr/local/lib/pkgconfig" --extra-include-dirs /usr/local/include
pcre-light-0.4.0.4: configure
Progress: 1/4
-- While building package pcre-light-0.4.0.4 using:
/Users/bar/.stack/setup-exe-cache/x86_64-osx/setup-Simple-Cabal-1.24.2.0-ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 configure --with-ghc=/Users/bar/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc --with-ghc-pkg=/Users/bar/.stack/programs/x86_64-osx/ghc-8.0.2/bin/ghc-pkg --user --package-db=clear --package-db=global --package-db=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/pkgdb --libdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/lib --bindir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/bin --datadir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/share --libexecdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/libexec --sysconfdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/etc --docdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --htmldir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --haddockdir=/Users/bar/.stack/snapshots/x86_64-osx/lts-8.3/8.0.2/doc/pcre-light-0.4.0.4 --dependency=base=base-4.9.1.0 --dependency=bytestring=bytestring-0.10.8.1 --extra-include-dirs=/usr/local/include --extra-lib-dirs=/usr/local/lib/pkgconfig
Process exited with code: ExitFailure 1
Logs have been written to: /Users/bar/work03/webapp/servant06/.stack-work/logs/pcre-light-0.4.0.4.log
Configuring pcre-light-0.4.0.4...
setup-Simple-Cabal-1.24.2.0-ghc-8.0.2: The pkg-config package 'libpcre' is
required but it could not be found.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment