in reply to cpan when not as root

Try setting PERL5LIB instead of using -I; the later won't propagate to child perl invocations but the former will.

Replies are listed 'Best First'.
Re^2: cpan when not as root
by rvosa (Curate) on May 17, 2006 at 22:10 UTC
    This by itself does not seem to solve the problem. For clarity: I'm on a redhat beowulf cluster, and I'd like to use bash as my shell, so I set PERL5LIB=~/perl in my .bashrc. Then, I start cpan (perl -MCPAN -e shell) and set the configuration (o conf init) for perl Makefile.PL to PREFIX=~/perl LIB=~/perl, but what about make, make test, make install? Do I set -I~/perl?

    For example, I need to install Test::Harness. The cpan shell goes through all the motions, and Test::Harness ends up in ~/perl, but the next time I issue "install Test::Harness" it goes through the whole procedure again rather than simply saying it's up to date?!

    Thanks!
      I start cpan (perl -MCPAN -e shell) and set the configuration (o conf init) for perl Makefile.PL to PREFIX=~/perl LIB=~/perl, but what about make, make test, make install?

      The "make" and "make install" will do the right thing based on having the "PREFIX=..." set for the "perl Makefile.PL" step. That prefix setting propogates through the following steps.

      (If you've tried that and it doesn't work that way for you, then I'm confused -- it works that way for me on freebsd.)