首頁 / CompScience / Programming / Languages / perl / The PPD does not provide code to install for this platform
:idea:即日起到2016/04/06止,請到http://blogawards.tw/competitor?co=160幫工作達人按讚󾮗,之後到http://goo.gl/forms/SK3WNR5RlA填單,我們會有隱藏版獎品贈送喔~

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,真是夠笨的!

馬上成為工作達人的Fans

About ㄚ琪

工作達人Fun Taiwan的創辦者及總編,可以在這裡更認識他。

One comment

  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!

發表迴響

你的電子郵件位址並不會被公開。 Required fields are marked *

*

Scroll To Top