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

发布于 2024-12-22 05:19:31 字数 1068 浏览 3 评论 0原文

我需要在我的 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)。

环境:perl 5.12.4,ubuntu 11.10

I need to use WebKit in my perl + gtk2 application. Found a package Gtk2::WebKit on CPAN, but can't get it working.

cpan> install Gtk2::WebKit

gives following output:

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

It looks as if cpan wasn't able to find webkit, but I'm not sure how to fix that (my first time using perl and cpan).

Env: perl 5.12.4, ubuntu 11.10

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

嗫嚅 2024-12-29 05:19:31

安装libwebkitgtk-devel:sudo apt-get install libwebkitgtk-devel。

Install libwebkitgtk-devel: sudo apt-get install libwebkitgtk-devel.

睡美人的小仙女 2024-12-29 05:19:31

sudo apt-get install libwebkitgtk-dev

sudo apt-get install libwebkitgtk-dev

我一直都在从未离去 2024-12-29 05:19:31

对于 Debian/Ubuntu 及类似版本,要安装的软件包名称是 libwebkitgtk-dev
对于 OpenSuse 和其他基于 RPM 的系统,软件包名称为 libwebkitgtk-devel

For Debian/Ubuntu and similar, the package name to install is libwebkitgtk-dev.
For OpenSuse and other RPM-based systems, the package name is libwebkitgtk-devel.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文