in reply to Re: cpan when not as root
in thread cpan when not as root

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!

Replies are listed 'Best First'.
Re^3: cpan when not as root
by graff (Chancellor) on May 18, 2006 at 06:50 UTC
    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.)