Opened 10 years ago

Closed 10 years ago

#29117 closed defect (fixed)

varnish missing pcre dependency

Reported by:… Owned by: pmq@…
Priority: Normal Milestone:
Component: ports Version: 1.9.2
Keywords: Cc: ryandesign (Ryan Schmidt)
Port: varnish

Description (last modified by ryandesign (Ryan Schmidt))

  • OSX 10.6.7
  • MacPorts 1.9.2

Error when installing varnish follows. Solution for me was:

% sudo port install pcre
% sudo port install varnish
--->  Configuring varnish
Error: Target org.macports.configure returned: configure failure: shell command failed (see log for details)
Log for varnish is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_varnish/main.log
Error: Status 1 encountered during processing.
To report a bug, see <>
varnish-2.1.5 1:32pm % vi /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_varnish/main.log

% cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_varnish/work/varnish-2.1.5"
% sudo ./configure --prefix=/opt/local
.....many checking for (etc) removed...
checking for PCRE... no
configure: error: Package requirements (libpcre) were not met:

No package 'libpcre' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables PCRE_CFLAGS
and PCRE_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

Change History (2)

comment:1 Changed 10 years ago by ryandesign (Ryan Schmidt)

Cc: ryandesign@… added
Description: modified (diff)
Keywords: varnish compile fail pcre removed
Owner: changed from macports-tickets@… to pmq@…
Summary: varnish fails to compile on osx 10.6varnish missing pcre dependency

comment:2 Changed 10 years ago by ryandesign (Ryan Schmidt)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.