Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
让WebKit绑定与Perl和gkt2一起使用_Perl_Webkit_Cpan_Gtk2 - Fatal编程技术网

让WebKit绑定与Perl和gkt2一起使用

让WebKit绑定与Perl和gkt2一起使用,perl,webkit,cpan,gtk2,Perl,Webkit,Cpan,Gtk2,我需要在perl+gtk2应用程序中使用WebKit。在CPAN上找到一个包Gtk2::WebKit,但无法使其工作 cpan> install Gtk2::WebKit 给出以下输出: Package webkit-1.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `webkit-1.0.pc' to the PKG_CONFIG_PATH e

我需要在perl+gtk2应用程序中使用WebKit。在CPAN上找到一个包Gtk2::WebKit,但无法使其工作

cpan> install Gtk2::WebKit
给出以下输出:

Package webkit-1.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `webkit-1.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'webkit-1.0' found
at inc/Module/Install/PRIVATE/WebKit.pm line 24
*** can not find package webkit-1.0
*** check that it is properly installed and available in PKG_CONFIG_PATH
at inc/Module/Install/PRIVATE/WebKit.pm line 24
No 'Makefile' created'YAML' not installed, will not store persistent state
FLORA/Gtk2-WebKit-0.09.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
FLORA/Gtk2-WebKit-0.09.tar.gz                : writemakefile NO -- No 'Makefile' created
看起来cpan似乎无法找到webkit,但我不确定如何修复它(我第一次使用perl和cpan)


Env:perl 5.12.4,ubuntu 11.10

安装
libwebkittk-devel
sudo-apt-get-Install-libwebkittk-devel
对于Debian/ubuntu和类似的软件,要安装的软件包名是libwebkittk-dev。 对于OpenSuse和其他基于RPM的系统,包名为libwebkitgtk-devel