![]() |
|
Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Installing Module from source....by wazoox (Prior) |
on Apr 27, 2005 at 09:45 UTC ( #451879=note: print w/replies, xml ) | Need Help?? |
Don't panic, you should be able to get it :) Here is the quick and dirty "how to install CPAN modules" :
If you'd rather use a downloaded file and configure everything by hand:
When done, get sure the installed module is in the search path for perl ( @INC variable). For instance you currently have your GDBM_File.pm in /usr/src/contrib/perl5/ext/GDBM_File/ folder, which is NOT in the @INC :
If for some reason you'd like to keep the module in some unusual place (for instance because you modified it), then you should add the directory where your module is to the @INC in each script using it. Add this at the beginning of your script (before the "use somemodule" statement):
see a more detailed explanation at http://www.cpan.org/modules/INSTALL.html if necessary. Update: Apparently you're running FreeBSD, don't you? For some reason the module appears under /usr/src, maybe that means it still need to be compiled before use. Go the the directory, see if there's a "Makefile.PL" file lying there. If it's there, you'll probably need to compile/install the module before use (see above). If there isn't any Makefile, then the module is probably usable "as is", just add the directory to @INC in your script.
In Section
Seekers of Perl Wisdom
|
|