Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Newbie Adding Module to Perl

by Bilbo (Pilgrim)
on Apr 10, 2003 at 14:41 UTC ( [id://249631]=note: print w/replies, xml ) Need Help??


in reply to Newbie Adding Module to Perl

I just tried downloading Sys::Alarm. The .tgz file contains one file: Sys/AlarmCall.pm. There is no Readme file and no Makefile.pl. To install it you should presumably just copy it into a directory that is searched for perl modules. You can get a list of them by running

 perl -e 'print join("\n", @INC);'

or put it in a new directory and put

use lib "/my/directory/name/";

at the top of your program.

Update: Ooops. I just tried following the CPAN link Sys::Alarm that I gave above and got a file which did include a Makefile.PL etc. I somehow found an old version (1.1) before which didn't. It sounds from what you say in your question and your comment about that you did too. It would explain why it was claiming not to find Makefile.PL, and you did say that you just got Sys/AlarmCall.pm out of the tgz file. Try following this link and getting version 1.2.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-18 02:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found