User Control Panel
Advertisements

HELP US, HELP YOU!

Installing

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Perl
View unanswered posts
Author Message
Rod
God Like
God Like


Joined: 14 May 2004
Posts: 557
Location: Ohio, USA
Reputation: 37Reputation: 37Reputation: 37Reputation: 37

PostPosted: Tue Jun 06, 2006 3:52 am    Post subject: Installing Reply with quote

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?

Hopfully this made some sense. Shocked
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Tue Jun 06, 2006 5:15 am    Post subject: Reply with quote

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/
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Tue Jun 06, 2006 1:21 pm    Post subject: Reply with quote

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! Wink 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
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Tue Jun 06, 2006 5:04 pm    Post subject: Reply with quote

For Linux, running as root:

perl -MCPAN -e shell

_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Perl All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group