Joined: 14 May 2004 Posts: 557 Location: Ohio, USA
Posted: Tue Jun 06, 2006 3:52 am Post subject: Installing
Ok so..For some reason when I try to install anything in Perl Package Manager, it always comes up saying no such thing or whatever. And when I search for it it says no results found. But sometimes if I type in Install <msghere>; I *rarley* get it to actually install without it saying cant find what I'm trying to install. But if I search for one of the words that would be like (example, nothing to do with what i'm asking): Search Entities (for HTML::Entities;), I would get a list of stuff that has Entities in it, and I can find what I'm looking for there. But yet I can just type in Install HTML::Entities; So could someone tell me why that is?
PPM doesn't work for all modules that exist. It's an ActiveState thing and works for some modules, but more often than not you'll have to install the modules you want manually.
There's a CPAN shell (type cpan in command prompt) which supposedly works like PPM but can install any module on the Comprehensive Perl Archive Network. I personally haven't gotten it to work too well though.
For pure Perl modules, you can install them manually by simply extracting the .PM files from the distributions into your Perl lib (keeping their relative paths intact).
As for paths to PM files: in a module's name, turn the ::'s into /'s and tack on a .pm, so HTML::Entities = HTML/Entities.pm, which should exist in the Perl lib (C:/Perl/site/lib/ or C:/Perl/lib/). _________________ Current Site (2008) http://www.cuvou.com/
Joined: 03 May 2006 Posts: 2292 Location: Colorado
Posted: Tue Jun 06, 2006 1:21 pm Post subject:
The other thing you should look at is the PPM repositories. The ppm command line interface contacts each repository on your list, asking them about the module you want to install. If you don't have good repositories configured then you wont be able to get lots of modules. A google of 'ppm repositories" used to return good info on this.
BTW cpan works realy realy well.....on linux! I've gotten it to work once on windows but normaly you need a compiler and everything configured *just right*. There are tutorials on that whole process too, if you do get that to work then you are home free, any module is yours for the taking (err...any module on CPAN that is) _________________ Eric256
Proud previous owner and current admin of Bot-depot.com