The PPD does not provide code to install for this platform

我再一次阅读gtk2-perl (Win32 binaries),试着可以装perl gtk在Winodws上,文中建议使用ActiveState Perl 5.8.8 build 819,但是我是用较新的5.10.0,而且我不想装回旧版的perl。

我的ExtUtils-Depends-0.205也较新而且可以从ppm的GUI视窗安装到,但是其他的档案我没有只好下载:

ExtUtils-PkgConfig-1.07 Download
Cairo-1.021 Download
Glib-1.142 Download
Gtk2-1.141 Download
Gtk2-GladeXML-1.006 Download

我在试2.a)失败,所以只好试2.b)
但是会发现

ppm install ExtUtils-PkgConfig.ppd
ppm install failed: The PPD does not provide code to install for this platform

这类的错误,这个解决的经验ppm install failed the ppd does not provide code to install for this platform有说到,叫我们转回安装较旧的ActivePerl 5.8.8.822,这我可不从,而且我印象中好像可以用欺骗的方法,所以我打开ExtUtils-PkgConfig.ppd,内容是这样:

<SOFTPKG NAME=”ExtUtils-PkgConfig” VERSION=”1,07,0,0″>
<TITLE>ExtUtils-PkgConfig</TITLE>
<ABSTRACT></ABSTRACT>
<AUTHOR></AUTHOR>
<IMPLEMENTATION>
<OS NAME=”MSWin32″ />
<ARCHITECTURE NAME=”MSWin32-x86-multi-thread-5.8″ />
<CODEBASE HREF=”ExtUtils-PkgConfig-1.07.tar.gz” />
</IMPLEMENTATION>
</SOFTPKG>

我在想MSWin32-x86-multi-thread-5.8这个可以改成MSWin32-x86-multi-thread-5.10来试试,测试状况如下:

D:\source\perl\gtk>ppm install ExtUtils-PkgConfig.ppd
Unpacking ExtUtils-PkgConfig-1.07…done
Generating HTML for ExtUtils-PkgConfig-1.07…done
Updating files in site area…done
2 files installed

D:\source\perl\gtk>ppm install Cairo.ppd
ppm install failed: The PPD does not provide code to install for this platform

D:\source\perl\gtk>ppm install Cairo.ppd
Unpacking Cairo-1.021…done
Generating HTML for Cairo-1.021…done
Updating files in site area…done
12 files installed

D:\source\perl\gtk>ppm install Glib.ppd
Unpacking Glib-1.142…done
Generating HTML for Glib-1.142…done
Updating files in site area…done
24 files installed

D:\source\perl\gtk>ppm install Gtk2.ppd
Unpacking Gtk2-1.141…done
Generating HTML for Gtk2-1.141…done
Updating files in site area…done
34 files installed

太好了骗了ppd了并且可以编译了,我再继续试试看!

哈哈,接下来跑范例gtk-demo时,真是该死,发生了这样的错误

弹出了这样的视窗:

2009-02-20_142149

以及这样的错误讯息:

D:\source\perl\gtk-demo\gtk-demo>perl main.pl
Can’t load ‘D:/xampp/perl/site/lib/auto/Glib/Glib.dll’ for module Glib: load_fil
e:找不到指定的模组。 at D:/xampp/perl/lib/DynaLoader.pm line 201.
at main.pl line 11
Compilation failed in require at main.pl line 11.
BEGIN failed–compilation aborted at main.pl line 11.

看来还是有个程式要载入5.8的perl,真是够笨的!

1 則留言

  1. Hello would you mind sharing which blog platform you’re working with? I’m looking
    to start my own blog soon but I’m having a difficult time deciding between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design and style seems different then most blogs and I’m
    looking for something unique. P.S My apologies for getting off-topic but I had to
    ask!

Comments are closed.