RE: Loading extra modules.
: > perl Makefile.PL : : make : : > make test : > make install {su'ed to root} When you do "make test" and you haven't done "make", "make" will be done automatically. -- tdk
Re: Loading extra modules.
: Apparently, even if I give PREFIX= as a command line param, you get the : following errors: : Skipping /home/tir/COMP/perl/modules/lib/site_perl/5.005/Date/Manip.pod (unchanged) This means that Perl didn't bother to install Manip.pod because there was one already there that was exactly the same as the one to be installed. (Presumably, you did the install twice?) : /home/tir/COMP/perl/modules//lib/5.00503/i386-linux/perllocal.pod: No such file or :directory : make: [doc_site_install] Error 1 (ignored) Not a big deal. perllocal.pod is where perl records module installations. It's for your information, really (you can read it with "perldoc perllocal"); perl doesn't use it for anything. This can be ignored. If you want to skip this message in the future, do "make pure_install" instead of "make install". So only one of these messages was an error, and it wasn't really important. The rest of the messages were just informational. -- tdk
Re: Loading extra modules.
> > Be careful -- you can't just move modules into a directory and expect them > to work, since some depend on loading native code shared libraries. Brett was right. I tried installing it, but wasn't successful. I then got the Sys Admin folks to install it, and it went just fine!! Apparently, even if I give PREFIX= as a command line param, you get the following errors: Manifying blib/man3/Date::Manip.3 Skipping /home/tir/COMP/perl/modules/lib/site_perl/5.005/Date/Manip.pm (unchanged) Skipping /home/tir/COMP/perl/modules/lib/site_perl/5.005/Date/Manip.pod (unchanged) Installing /home/tir/COMP/perl/modules/lib/site_perl/5.005/Date/lib/perl5/site_perl/5.005/Date/Manip.pm Installing /home/tir/COMP/perl/modules/lib/site_perl/5.005/Date/lib/perl5/site_perl/5.005/Date/Manip.pod Installing /home/tir/COMP/perl/modules/lib/site_perl/5.005/perl5/site_perl/5.005/i386-linux/auto/Date/Manip/.packlist Skipping /home/tir/COMP/perl/modules/lib/perl5/man/man3/Date::Manip.3 (unchanged) Installing /home/tir/COMP/perl/modules/lib/perl5/man/man3/lib/perl5/man/man3/Date::Manip.3 Writing /home/tir/COMP/perl/modules//lib/site_perl/5.005/i386-linux/auto/Date/Manip/.packlist /bin/sh: /home/tir/COMP/perl/modules//lib/5.00503/i386-linux/perllocal.pod: No such file or directory make: [doc_site_install] Error 1 (ignored) Appending installation info to /home/tir/COMP/perl/modules//lib/5.00503/i386-linux/perllocal.pod I don't know what to make of this!! Thanks anyway, -tir
RE: Loading extra modules.
> perl Makefile.PL make > make test > make install {su'ed to root}
Re: Loading extra modules.
On Wed, 9 May 2001, Tirthankar C.P wrote: > Folks, how do I load extra modules? I got Date::Manip today, and I know I > should be putting it in the search-path of perl (@INC ?), but how do I do > it? Can I get a small code snippet? > > I do not have su privileges on the machine I work, and would like the > search-path to have my modules dir, $HOME/perlmodules in it. Be careful -- you can't just move modules into a directory and expect them to work, since some depend on loading native code shared libraries. If you have a module you want to use, you can do something like: use lib '/path/to/modules'; #MyModule.pm is in this directory use MyModule; -- Brett http://www.chapelperilous.net/btfwk/ Before destruction a man's heart is haughty, but humility goes before honour. -- Psalms 18:12
Re: Loading extra modules.
: Folks, how do I load extra modules? I got Date::Manip today, and I know I : should be putting it in the search-path of perl (@INC ?), but how do I do : it? Can I get a small code snippet? : : I do not have su privileges on the machine I work, and would like the : search-path to have my modules dir, $HOME/perlmodules in it. Try this (as you): perl Makefile.PL PREFIX=$HOME/perlmodules make make test make install Then in your script: use lib '$HOME/perlmodules'; # replace $HOME with the location of your directory -- tdk
RE: Loading extra modules.
If you got it in a tar'ed package, it will come with a Makefile.PL script. The general procedure is: perl Makefile.PL make test make install {su'ed to root} If you didn't get the tar'ed package, and just have .pm, then I would recommend getting the tar'ed package instead. This would vary somewhat if you're on a Windows NT box. -Original Message- From: Tirthankar C.P [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 09, 2001 11:44 AM To: [EMAIL PROTECTED] Subject: Loading extra modules. Folks, how do I load extra modules? I got Date::Manip today, and I know I should be putting it in the search-path of perl (@INC ?), but how do I do it? Can I get a small code snippet? I do not have su privileges on the machine I work, and would like the search-path to have my modules dir, $HOME/perlmodules in it. TIA, -tir
Loading extra modules.
Folks, how do I load extra modules? I got Date::Manip today, and I know I should be putting it in the search-path of perl (@INC ?), but how do I do it? Can I get a small code snippet? I do not have su privileges on the machine I work, and would like the search-path to have my modules dir, $HOME/perlmodules in it. TIA, -tir