Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

PPM: Modules Dissappearing / Alternative Repositories?

by boblawblah (Scribe)
on Mar 01, 2008 at 18:21 UTC ( [id://671410]=perlquestion: print w/replies, xml ) Need Help??

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

I am using ActivePerl 5.8.8.822 on a Windows XP box, both at home and at work.

It has been less than a week since I have installed Date::Calc (and its requisites Bit::Vector, Carp::Clan), Win3::API, and DBD::mysql on my work computer using PPM.

I tried to do the same yesterday on my home computer, and PPM cannot find these modules. (They show up in search results, when I try to install, I get a 404 message.)

What gives with the PPM lately, this is not the first time this has happened to me...

I have gotten no responses from anyone at activestate. I have tried installing the modules from CPAN, but alas they all require a C compiler, which I don't have. Am I going to have to aquire a C compiler, or does anyone know of a repository that would have the ppd's for these modules.

Thanks
  • Comment on PPM: Modules Dissappearing / Alternative Repositories?

Replies are listed 'Best First'.
Re: PPM: Modules Dissappearing / Alternative Repositories?
by planetscape (Chancellor) on Mar 01, 2008 at 23:55 UTC
      Wouldn't hurt to *explicitly* mention a MinGW link in that list of tutorials (though it's not hard to find one in the "parent" link that you provided) - such as Compiling C/C++ based Modules under ActiveState using MinGW. The fact that I wrote that is *not* the reason I'm trying to plug it. For a start, I'm not all that sure that it's particularly well written, anyway. But the good thing about MinGW is that, apart from the fact that it works seamlessly with recent versions of ActivePerl, it uses the same runtime library as ActivePerl (unlike the free MS compilers). In certain (albeit, rare) situations this runtime library disparity can prevent one from being able to use a module on ActivePerl that was built using a free MS compiler (egWin32::SharedFileOpen). In other instances, it merely means that 2 (instead of one) runtime libraries need to be loaded.

      I should also add that, as mentioned in the above-referenced tutorial, MinGW works fine with older versions of ActivePerl so long as ExtUtils::FakeConfig is installed.

      Cheers,
      Rob
      Thank you everyone who responded. My solution: Strawberry Perl - and I suggest it to anyone using Perl on windows.
        If you add the bribes repository and disable the activestate one for the duration of the install, ppm will install Date::Calc without any problem. (I just tried to install Contextual::Return and encountered the same problem. Fortunately Kobe's repository came through.)
Re: PPM: Modules Dissappearing / Alternative Repositories?
by stiller (Friar) on Mar 01, 2008 at 18:35 UTC
    The 404 error message is the repository server telling it doesn't have the file that is asked for. I have several times found the problem to be a missing trailing '/' in the url. Can you check what url(s) you have in the repository settings?
      I realize that 404 means the file i'm requesting isn't there. My concern is 'why' it isn't there. PPM does not have the exhaustive list of modules that CPAN does, but modules that aren't there, usually don't show up in search results. These modules are, but still 'don't exist'. I am able to download and install many other modules from the repository that these are located on.

      Repositories:
      (Default)
      http://ppm4.activestate.com/MSWin32-x86/5.8/822/package.xml
      *This is where these modules 'should be'*
      (Added)
      http://cpan.uwinnipeg.ca/PPMPackages/10xx/package.xml
        remove package.xml from both url's. That should help.
        (Added)
        http://cpan.uwinnipeg.ca/PPMPackages/10xx/package.xml
        Please remove that repository from your list. It is for perl 5.10, and you said yourself you're using AP 5.8.8.822. If you look at http://cpan.uwinnipeg.ca/PPMPackages/10xx/ with a browser you'll see what URL you're supposed to use for perl 5.8: http://theoryx5.uwinnipeg.ca/ppms/

        Like stiller said: the repository URL is the root directory, not some file in it. Not even package.xml.

        I can also recommend adding the repositories for Bribes and Trouchelle. Both are often more complete and more up to date than ActiveState's repositiory.

        In fact: I recommend search for a problematic module on Kobes' Search, at the bottom of the description page of each module it always lists what repositories you can find it on.

Re: PPM: Modules Dissappearing / Alternative Repositories?
by CountZero (Bishop) on Mar 01, 2008 at 21:18 UTC
    The latest (GUI) version of ppm sometimes has difficulties in finding modules. Replacing the :: by - in the search string worked for me.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://671410]
Approved by xdg
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-18 05:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found