in reply to Installing a Second perl

What is the output from /lab/bin/perl -V ?

When building your custom perl, you should have used something like:

./Configure -Dprefix=/lab

This would configure everything to be stored under the /lab directory, including the man directory.

Note: The CPAN install problem seems to be that it is trying to write to the '/usr/local/man/man3' directory, which is the big question here! It shouldn't be!

And this must be build your own perl month — I have started building my own perl binaries as well for production, development and testing.

Updated: thanks rowdog for catching the -d

Replies are listed 'Best First'.
Re^2: Installing a Second perl
by syphilis (Archbishop) on Feb 20, 2010 at 23:58 UTC
    The CPAN install problem seems to be that it is trying to write to the '/usr/local/man/man3' directory, which is the big question here! It shouldn't be!

    Is there something wrong with that ? I have a perl that I built myself in /usr/local, and apart from having to install modules as root, there haven't been any problems.

    Cheers,
    Rob

      Well, that is fine for a /usr/local/ perl, but not for one that is configured for /lab like the OP is trying to do.

      It should be installing man pages into /lab/man which is what OP has permissions to use.

        Well, that is fine for a /usr/local/ perl, but not for one that is configured for /lab like the OP is trying to do

        Quite correct - I had missed that the op was intending to install perl into /lab. (Assumed he had intentionally installed perl into the default /usr/local.)

        Cheers,
        Rob
Re^2: Installing a Second perl
by rowdog (Curate) on Feb 21, 2010 at 08:02 UTC

    The D should be capitalized, but yeah, this is a good start.

    ./Configure -Dprefix=/lab