Thanks Jeremiah.

I downloaded local-lib-1.004009, from CPAN.
(I had already installed the latest CPAN module myself into a local
directory that I gave higher precedence than the default Perl search paths.
This is CPAN-1.9402. Also, my local install directory is:
/u/shankar/my_test/perltools/MyLibs/lib/perl5/).

Upon executing: perl Makefile.PL in the local-lib-1.004009 directory, I got
the following error:

Undefined subroutine &CPAN::HandleConfig::output called at
/u/shankar/my_test/perltools/MyLibs/lib/perl5/CPAN/HandleConfig.pm line 564.

As a result, no Makefile was produced, so I c'd not 'build' and locally
install local::lib.

Any reason why I might be getting such an error?

Shankar




On Thu, Dec 31, 2009 at 10:40 AM, Jeremiah Foster <
jerem...@jeremiahfoster.com> wrote:

>
> On Dec 30, 2009, at 16:05, Shankar wrote:
>
> > On Dec 30, 9:39 am, shlo...@iglu.org.il (Shlomi Fish) wrote:
> >> On Wednesday 30 Dec 2009 08:12:24 Shankar wrote:
> >
> > Thanks a lot for the replies.
> > I'll check to see if I may update perl.
> >
> > If I'm unable, is it okay to do the following:
> > 1. Run the first two steps of the installation process (perl
> > Makefile.PL and make) for each module I manually uncompress the
> > tarball and install. This populates the blib/lib directory for each
> > module.
> > 2. Simply manually put all the various contents of each of the above
> > populated blib/lib directories (one for each module I install) into a
> > common "lib" directory that I'll create on my home directory.
> > 3. Give the above commnon "lib" directory higher precedence than the
> > default perl paths.
> >
> > Will the above effectively accomplish what is needed to use these
> > modules from my home directory?
>
> Yes it should - but this is not a sustainable practice, you won't be able
> to install dozens of modules this way.
>
> I strongly recommend looking into local::lib which will help you automate
> this process. It is designed for the installation of modules when you don't
> have admin rights. http://cpan.uwinnipeg.ca/dist/local-lib
>
> Jeremiah

Reply via email to