Subject: | Unable to install WWW::WebKit on Darwin; have gdk-2.0, need gdk-3.0 |
I have been trying to install WWW::WebKit on Darwin/x86_64. For conformity with my fellow developers, I use 'brew' to install packages outside of CPAN and 'cpanm' to install CPAN packages. I have been unable to complete installation of WWW::WebKit, receiving the following error message:
##########
cpanm (App::cpanminus) 1.5021 on perl 5.016003 built for darwin-2level
Work directory is /Users/jkeenan/.cpanm/work/1380575580.61678
You have make /usr/bin/make
You have LWP 6.04
You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
You have /usr/bin/unzip
Searching install on cpanmetadb ...
install is up to date. (0.01)
Searching WWW::WebKit on cpanmetadb ...
--> Working on WWW::WebKit
Fetching http://www.cpan.org/authors/id/N/NI/NINE/WWW-WebKit-0.05.tar.gz
-> OK
Unpacking WWW-WebKit-0.05.tar.gz
Entering WWW-WebKit-0.05
Checking configure dependencies from META.yml
Checking if you have Glib::MakeHelper 0 ... Yes (1.302)
Checking if you have ExtUtils::MakeMaker 0 ... Yes (6.62)
Checking if you have ExtUtils::Depends 0 ... Yes (0.304)
Checking if you have ExtUtils::PkgConfig 0 ... Yes (1.15)
Configuring WWW-WebKit-0.05
Running Makefile.PL
Package gdk-3.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gdk-3.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gdk-3.0' found
at Makefile.PL line 7.
*** can not find package gdk-3.0
*** check that it is properly installed and available in PKG_CONFIG_PATH
at Makefile.PL line 7.
-> N/A
-> FAIL Configure failed for WWW-WebKit-0.05. See /Users/jkeenan/.cpanm/build.log for details.
##########
The pkg-config command gives me this output:
##########
$ pkg-config --list-all | ack 'g([td])k' | sort -d
gdk-2.0 GDK - GTK+ Drawing Kit (x11 target)
gdk-pixbuf-2.0 GdkPixbuf - Image loading and scaling
gdk-x11-2.0 GDK - GTK+ Drawing Kit (x11 target)
gtk+-2.0 GTK+ - GTK+ Graphical UI Library (x11 target)
gtk+-unix-print-2.0 GTK+ - GTK+ Unix print support
gtk+-x11-2.0 GTK+ - GTK+ Graphical UI Library (x11 target)
##########
This suggests that I only have gdk-2.0, but need gdk-3.0. However, when I say 'brew install gdk', I get: "No available formula for gdk".
So I am wondering:
1. Is there any way I could use WWW::WebKit with just gdk-2.0?
2. Do you know of any/a best way to install gdk-3.0?
Thank you very much.
Jim Keenan
##########
$ perl -V
Summary of my perl5 (revision 5 version 16 subversion 3) configuration:
Platform:
osname=darwin, osvers=11.4.2, archname=darwin-2level
uname='darwin macbook-pro.local 11.4.2 darwin kernel version 11.4.2: thu aug 23 16:25:48 pdt 2012; root:xnu-1699.32.7~1release_x86_64 x86_64 '
config_args='-de -Dprefix=/Users/jkeenan/perl5/perlbrew/perls/perl-5.16.2 -Aeval:scriptdir=/Users/jkeenan/perl5/perlbrew/perls/perl-5.16.2/bin'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include',
optimize='-O3',
cppflags='-fno-common -DPERL_DARWIN -fno-strict-aliasing -pipe -fstack-protector -I/usr/local/include'
ccversion='', gccversion='4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='env MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags =' -fstack-protector -L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lutil -lc
perllibs=-ldl -lm -lutil -lc
libc=, so=dylib, useshrplib=false, libperl=libperl.a
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES PERLIO_LAYERS PERL_DONT_CREATE_GVSV
PERL_MALLOC_WRAP PERL_PRESERVE_IVUV USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_LOCALE
USE_LOCALE_COLLATE USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC USE_PERLIO USE_PERL_ATOF
Built under darwin
Compiled at Mar 13 2013 11:01:16
%ENV:
PERL5DIR="/Users/jkeenan/gitwork/perl"
PERL5LIB="/Users/jkeenan/adama/extlib/lib/perl5/darwin-2level:/Users/jkeenan/adama/extlib/lib/perl5"
PERLBREW_BASHRC_VERSION="0.46"
PERLBREW_HOME="/Users/jkeenan/.perlbrew"
PERLBREW_MANPATH="/Users/jkeenan/perl5/perlbrew/perls/perl-5.16.2/man"
PERLBREW_PATH="/Users/jkeenan/perl5/perlbrew/bin:/Users/jkeenan/perl5/perlbrew/perls/perl-5.16.2/bin"
PERLBREW_PERL="perl-5.16.2"
PERLBREW_ROOT="/Users/jkeenan/perl5/perlbrew"
PERLBREW_VERSION="0.46"
PERL_LOCAL_LIB_ROOT="/Users/jkeenan/adama/extlib"
PERL_MB_OPT="--install_base /Users/jkeenan/adama/extlib"
PERL_MM_OPT="INSTALL_BASE=/Users/jkeenan/adama/extlib"
@INC:
/Users/jkeenan/adama/extlib/lib/perl5/darwin-2level
/Users/jkeenan/adama/extlib/lib/perl5/darwin-2level
/Users/jkeenan/adama/extlib/lib/perl5
/Users/jkeenan/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.3/darwin-2level
/Users/jkeenan/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.3
/Users/jkeenan/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.3/darwin-2level
/Users/jkeenan/perl5/perlbrew/perls/perl-5.16.2/lib/5.16.3
/Users/jkeenan/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.2/darwin-2level
/Users/jkeenan/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl/5.16.2
/Users/jkeenan/perl5/perlbrew/perls/perl-5.16.2/lib/site_perl
.
##########