Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


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

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


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:


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?


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

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
A quick Google found this page 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).


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:14 AM.

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