mikeatrcn has asked for the wisdom of the Perl Monks concerning the following question:

Still new to Perl, I'm trying to read/write a Win32-style ini, so I tried to load Avatar's Config::Ini ver. 1.08 using PPM.

I have ActiveState's v5.8.0 Perl and, as I understand the PPM error msg, it's saying it cannot load Config::Ini because I need Perl 5.8! Clearly, I'm misunderstanding something.

Thanks in advance for any help you might offer to clear my confusion.

Details follow:

I downloaded the Config-Ini.zip file, and extracted both the Config-Ini.tar.gz file (on the zip file, it had a path of "MSWin32-x86-multi-thread") and the Config-Ini.ppd file into my G:\PerlCode\AddedModules\Config-Ini\ path.

Using ppm, I received the following error:

C:\ProgramFiles\Perl\bin>ppm install G:\PerlCode\AddedModules\Config +-Ini\Confi g-Ini.ppd Installing package 'G:\PerlCode\AddedModules\Config-Ini\Config-Ini.ppd +'... Error installing package 'G:\PerlCode\AddedModules\Config-Ini\Config-I +ni.ppd': R ead a PPD for 'G:\PerlCode\AddedModules\Config-Ini\Config-Ini.ppd', bu +t it is no t intended for this build of Perl (MSWin32-x86-multi-thread-5.8) ################################## C:\ProgramFiles\Perl\bin>perl -v This is perl, v5.8.0 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2002, Larry Wall Binary build 806 based on sources provided by ActiveState Corp. http://www.ActiveState.com Built 20:37:33 Apr 24 2003 ###################################### The Config-Ini.ppd contents follow: <?xml version="1.0" encoding="UTF-8"?> <SOFTPKG NAME="Config-Ini" VERSION="1,08,0,0"> <IMPLEMENTATION> <CODEBASE HREF="sun4-solaris-thread-multi/Config-Ini.tar.gz" /> <DEPENDENCY NAME="Tie-IxHash" VERSION="1,21,0,0" /> <ARCHITECTURE NAME="sun4-solaris-thread-multi" /> <OS NAME="solaris" /> </IMPLEMENTATION> <IMPLEMENTATION> <CODEBASE HREF="PA-RISC1.1-thread-multi/Config-Ini.tar.gz" /> <DEPENDENCY NAME="Tie-IxHash" VERSION="1,21,0,0" /> <ARCHITECTURE NAME="PA-RISC1.1-thread-multi" /> <OS NAME="hpux" /> </IMPLEMENTATION> <IMPLEMENTATION> <CODEBASE HREF="MSWin32-x86-multi-thread/Config-Ini.tar.gz" /> <DEPENDENCY NAME="Tie-IxHash" VERSION="1,21,0,0" /> <ARCHITECTURE NAME="MSWin32-x86-multi-thread" /> <OS NAME="MSWin32" /> </IMPLEMENTATION> <IMPLEMENTATION> <CODEBASE HREF="IA64.ARCHREV_0-thread-multi/Config-Ini.tar.gz" /> <DEPENDENCY NAME="Tie-IxHash" VERSION="1,21,0,0" /> <ARCHITECTURE NAME="IA64.ARCHREV_0-thread-multi" /> <OS NAME="hpux" /> </IMPLEMENTATION> <IMPLEMENTATION> <CODEBASE HREF="i686-linux-thread-multi/Config-Ini.tar.gz" /> <DEPENDENCY NAME="Tie-IxHash" VERSION="1,21,0,0" /> <ARCHITECTURE NAME="i686-linux-thread-multi" /> <OS NAME="linux" /> </IMPLEMENTATION> <IMPLEMENTATION> <CODEBASE HREF="IA64.ARCHREV_0-thread-multi-64all/Config-Ini.tar.g +z" /> <DEPENDENCY NAME="Tie-IxHash" VERSION="1,21,0,0" /> <ARCHITECTURE NAME="IA64.ARCHREV_0-thread-multi-64all" /> <OS NAME="hpux" /> </IMPLEMENTATION> <ABSTRACT>Perl interface to MS-Windows registry files, Windows .ini +and Unreal style .ini files.</ABSTRACT> <AUTHOR>Albert K. T. Hui (avatar@deva.net)</AUTHOR> <TITLE>Config-Ini</TITLE> </SOFTPKG> ######################################

Replies are listed 'Best First'.
Re: PPM error msg: not intended for this build of Perl
by PodMaster (Abbot) on May 19, 2004 at 04:50 UTC
    Notice that MSWin32-x86-multi-thread, the version available

    is not the same same as MSWin32-x86-multi-thread-5.8, the version of perl you have

    which is why you get that error message.

    I have ActiveState's v5.8.0 Perl and, as I understand the PPM error msg, it's saying it cannot load Config::Ini because I need Perl 5.8! Clearly, I'm misunderstanding something.
    No. The error message says that you have MSWin32-x86-multi-thread-5.8, and there is no package for that version.

    A Guide To Installing Modules

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

      I'm not disputing your analysis but, though I've reviewed it a number of times, I'm just not seeing what you apparently do.

      What I'm focusing on is . . .

      My version of Perl seems to be telling me that I have MSWin32-x86-multi-thread

      C:\ProgramFiles\Perl\bin>perl -v<p> This is perl, v5.8.0 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2002, Larry Wall
      and

      The Config-Ini.ppd seems to tell me that it is for (among other implementations):

      <IMPLEMENTATION> <CODEBASE HREF="MSWin32-x86-multi-thread/Config-Ini.tar.gz" /> <DEPENDENCY NAME="Tie-IxHash" VERSION="1,21,0,0" /> <ARCHITECTURE NAME="MSWin32-x86-multi-thread" /> <OS NAME="MSWin32" />
      To me, newbie that I am, I was looking at the value for ArchitectureName, and that appears to be the same as that which my version of Perl reports. I'm seeing the error msg as just combining the name and version number.

      Could I have a clarification, please. Thanks!

        Mine gives This is perl, v5.6.1 built for MSWin32-x86-multi-thread.

        ActiveState screwed the pooch with the v5.8.0 release in that PPM knew to look for MSWin32-x86-multi-thread-5.8 but perl -V did not reflect that.

        But all that is not important. Whats important is that you read your error messages carefully.
        Error installing package 'G:\PerlCode\AddedModules\Config-Ini\Config-Ini.ppd': R ead a PPD for 'G:\PerlCode\AddedModules\Config-Ini\Config-Ini.ppd', but it is not intended for this build of Perl (MSWin32-x86-multi-thread-5.8) .

        This (or ppm) is telling you that your version of perl is (or ppm considers it to be) MSWin32-x86-multi-thread-5.8. Some might consider that the error message is English a problem. You should complain to ActiveState if you do :)

        MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
        I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
        ** The third rule of perl club is a statement of fact: pod is sexy.