LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 10-02-2004, 12:29 PM   #1
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Rep: Reputation: 15
how to list/install perl modules


Hi,

I'm running Fedora core 2 and am thinking of running qmail...the qmail installation says to make sure that the following perl mods are installed:

Digest::SHA1
Digest::HMAC
Net:NS
Time::HiRes
HTML::Tagset
HTML::Parser

How do I get a list of the ones installed and if they arnt how would I installed them? are there any docs u can recommend?

I tried the following command:

perl Digest::SHA1

and received:

Can't open perl script "Digest::SHA1": No such file or directory

Does this mean its not installed?

Thanks,

Lenny
 
Old 10-02-2004, 12:57 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,078

Rep: Reputation: 297Reputation: 297Reputation: 297
A quick Google found this page http://www.tek-tips.com/viewthread.cfm?qid=898931 with info about listing installed Perl modules.

You can also do perl -M<module> -e 'print "blah\n"'

to test if a module is installed (you'll get an error if it isn't, and blah if it is). You need to use the -M option to specify a module on the command line.

The easiest way to install a module is through the CPAN shell. Type perl -MCPAN -e shell and you'll get a nice shell that will walk you through automatically installing things from CPAN. Note you should set your LANG environment variable to C before doing this, or you'll get all sorts of weird errors during module compilation (RH/Fedora seems to use a default character set that Perl has trouble dealing with).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to list all installed Perl modules SharpyWarpy Linux - General 8 12-12-2011 04:48 AM
Install additional perl modules? [GOD]Anck Slackware 3 03-21-2005 08:26 AM
error when trying to install perl modules jimi_j Linux - Software 3 07-19-2004 11:17 PM
Can't install Perl Modules/Bugzilla Delsphynx Linux - Software 0 07-17-2004 09:12 PM
debian modules list after new kernel install xsmarty Linux - Newbie 3 11-14-2003 03:06 AM


All times are GMT -5. The time now is 02:24 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration