2011-12-19 18 views
2

我需要在我的perl + gtk2應用程序中使用WebKit。在CPAN上找到一個包Gtk2 :: WebKit,但無法使其工作。讓WebKit綁定與Perl和gkt2一起工作

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

回答

6

安裝libwebkitgtk-develsudo apt-get install libwebkitgtk-devel

+0

這解決了我的問題,謝謝 – 2011-12-19 21:15:29

5

命令和apt-get安裝libwebkitgtk-dev的

3

對於Debian/Ubuntu和類似的,安裝的軟件包名稱爲libwebkitgtk-dev的。 對於OpenSuse和其他基於RPM的系統,軟件包名稱爲libwebkitgtk-devel