naive has asked for the wisdom of the Perl Monks concerning the following question:

Hi once again!Recently I tried to explore perl by trying to use the modules in activestate.com.However i could not seem to install the modules onto my computer.All i could do was to unzip the module which i had saved in the lib directory.After which i tried to run the module but always receive a error stating that the system cant locate the Module @INC,is it due to the fact that i never install the module or is it because of some other problems.

I have read somewhere that i could use ppm (for my case it is ppm3 which was found in the bin directory) to install the module.The command i typed was install (name) but i got an error stating that the system cannot find the path specified.What is wrong with my command? Is it the name that i type in? Or is it because the module(lib) and the ppm(bin) are in different directory.

Any advise will be greatly appreciated.Thks a lot!!!

Replies are listed 'Best First'.
Re: Installling of Modules
by Chmrr (Vicar) on Jan 31, 2002 at 00:36 UTC

    I suggest you preuse the ActivePerl FAQ on the subject. I will also point out that all of the documentation is also on your hard drive, in your c:\Perl\html\ directory (adjust for the loation of your perl install, of course). Said local documentation also includes the full FAQ and documentation for PPM. In brief, however, you will type ppm3 at a command prompt (I seem to remember it is in the Start menu as well), and type install Some::Module at the PPM prompt that you get. Far more detailed instructions and examples are in the FAQ.

    perl -pe '"I lo*`+$^X$\"$]!$/"=~m%(.*)%s;$_=$1;y^`+*^e v^#$&V"+@( NO CARRIER'

      It's worth pointing out at this point that once you get PPM running, you can type help for a list of options or you can type help install for help on install.

      Cheers!

      Brent

        Thks for all your reply.

        But whenever I type install (package.ppd) I will get an error stating that it could not locate the ppd file for the package.Anyone knows what is the reason? I have also tried entering install URL/package.ppd but the same problem persist.

        Thks once again.

Re: Installling of Modules
by George_Sherston (Vicar) on Jan 31, 2002 at 10:19 UTC
    The stuff other monks gave you is probably what you need. But when you have your modules installed, make sure your script knows where to find them. The places your script knows to look for them are listed in @INC. So to start with, write a script that does no more than
    for (@INC) { print $_,"\n"; }
    That gives you a list of the directories where Perl will look for modules. If those are where your modules are, fine. If the modules are somewhere else, then you need to tell Perl, by putting
    use lib '/path/to/your/modules';
    at the top of scripts that use those modules.

    § George Sherston
Re: Installling of Modules
by fenners (Beadle) on Jan 31, 2002 at 12:38 UTC
    This isn't a path problem is it? i.e. do you need to type install path/packagename.ext