Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: To install a module...

by Dog and Pony (Priest)
on Sep 30, 2002 at 21:25 UTC ( [id://201854]=note: print w/replies, xml ) Need Help??


in reply to To install a module...

On Windows I use PPM, CPAN.pm, manual tarball, and just copy the blasted files, in that order. Steps two and three do depend on having obtained nmake or something like that on that particular machine though. Sadly pmake doesn't work (for me at least).

PPM tip of the day (1): PPM in 633 seems to have a somewhat strange bug where it won't install some modules claiming it can't find a suitable implementation. Try describing the module then installing it again. It will (if there actually is a Win implementation) then install. Strange.

PPM tip of the day (2): If you install modules any other way than via PPM, and sometimes even when you do, the otherwise excellent HTML docs will not update to reflect this.

perl -MActivePerl::DocToo­ls -e ActivePerl::DocTools::UpdateHTML();
will walk all your modules regenerating the docs from the POD. Most useful.

On *NIX I use CPAN.pm, tarball in that order. Haven't so far had to go any further than that.

As mentioned in another post I made further up, to be as totally cross-platform as Perl wants to and should be, someone should get rid of that stupid make part though.

That is the problem that should be addressed first and foremost, not that CPAN.pm is slightly buggy. It is a *huge* hassle for beginners to even obtain a make and then get it to work, and PPM rarely has all modules you need. Even if PPM did, and even though PPM is available for several platforms, why can't there be a Perl-only installer that is core everywhere?

Make is fine for me, now. Mostly. I recall how much trouble that was and I'm sure lots of others are going through the same right now.

Lots of people are talking about CPANPLUS. I never got it to work, but that was a long time ago, so I'm sure it works now. I'm not sure what it is that makes it so good though. I must look that up. Does it still use make/nmake/etc? If so, I wonder what is the benefit, because that is the only part that fails (when something fails) with CPAN.pm for me. Like I said, I will have to look the facts up.


You have moved into a dark place.
It is pitch black. You are likely to be eaten by a grue.

Replies are listed 'Best First'.
Re: Re: To install a module...
by laughingboy (Monk) on Sep 30, 2002 at 23:43 UTC
    PPM tip of the day (1): PPM in 633 seems to have a somewhat strange bug where it won't install some modules claiming it can't find a suitable implementation. Try describing the module then installing it again. It will (if there actually is a Win implementation) then install. Strange.

    Could you explain what you mean by "descibing the module" here?

    laughingboy

      Ah, sorry. Of course. There is a command 'describe' in PPM.

      Lets say you make a search for Foo:

      PPM> search Foo
      Which returns the result
      1. Foo 2. Foo::Bar
      When you then try 'install 1' to get Foo installed, you get the error message "No suitable implementation found" or some such. Then do 'describe 1', followed by another 'install 1'. Describe does list what platforms are available, and if 'MSWin32-x86-multi-thread' is not in the list, you are out of luck. Many times though, it seems PPM doesn't really check for this, but the describe forces it to do so, making the installation succeed.

      And yes, you can do 'describe Foo' directly instead.

      Hope that helps.


      You have moved into a dark place.
      It is pitch black. You are likely to be eaten by a grue.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2024-03-19 09:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found