Package libpcre missing

877 views
Skip to first unread message

Charlie Dorian

unread,
Jun 28, 2014, 8:08:56 PM6/28/14
to golan...@googlegroups.com
When I run ./all.bash, I get an error that says I'm missing package libpcre.

# ../test/bench/shootout
...
fannkuch
fannkuch-parallel
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
regex-dna
regex-dna-parallel
...

I have a MacBook Pro, with OS X Version 10.9.3

How do I add this package? Thanks

Gary Scarr

unread,
Jun 29, 2014, 5:04:39 PM6/29/14
to golan...@googlegroups.com
You could probably install pcre via brew but it wasn't necessary for me - I just tried it with go1.3rc2 and go1.3 and all.bash ran without any errors on my 10.9.3.
Gary

# ../test/bench/shootout
fasta
reverse-complement
nbody
binary-tree
binary-tree-freelist
fannkuch
fannkuch-parallel
regex-dna
regex-dna-parallel
spectral-norm
k-nucleotide
k-nucleotide-parallel
mandelbrot
meteor-contest
pidigits
threadring
chameneosredux

real 0m4.446s
user 0m3.698s
sys 0m0.694s

 ../test/bench/go1
ok   _/usr/local/go/test/bench/go1 1.686s

# ../test

real 0m11.124s
user 1m4.755s
sys 0m24.979s

# Checking API compatibility.
Go version is "go1.3", ignoring -next /usr/local/go/api/next.txt

real 0m4.669s
user 0m3.853s
sys 0m0.604s

ALL TESTS PASSED

---
Installed Go for darwin/amd64 in /usr/local/go
Installed commands in /usr/local/go/bin
mp:src gary$ go env
GOARCH="amd64"
GOBIN=""
GOCHAR="6"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/gary/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fno-common"
CXX="clang++"
CGO_ENABLED="1"
Reply all
Reply to author
Forward
0 new messages