jeanluca has asked for the wisdom of the Perl Monks concerning the following question:

Dear Monks

I'm trying to install a second (local) perl, because for some unknown reason, the current perl on my Mac doesn't work very well (e.g. cannot run cpan) So I downloaded 5.10.0 and executed the following commands
$> sh Configure -de -Dprefix=/Users/jeanluca/software/perl ..... $> make ..... $> make install ..... ./perl installperl --destdir= /usr/local/bin is not writable by you make[1]: *** [install.perl] Error 2 make: *** [install] Error 2
I tried to solve this as follows
$> ./perl installperl --destdir=/Users/jeanluca/software/perl
but I get the feeling this is not the right solution:
$> export PERL5LIB=/Users/jeanluca/software/perl/usr/local/lib/perl5/5 +.10.0/ $> /Users/jeanluca/software/perl/usr/local/bin/cpan -bash: /Users/jeanluca/software/perl/usr/local/bin/cpan: /usr/local/bi +n/perl: bad interpreter: No such file or directory
How do I tell the installation procedure where to put the executables, because I want to have everything local!

Cheers
LuCa

UPDATE: The solution was easier then I thought: remove config.sh
After executing the configure command, this file is created. When executing it again, configure uses the config.sh for its default values. Apparently the first time I executed the configure command I did
$> sh Configure -de
And finally, as stated by jnbek, the default values overwrite the command-line arguments!

Replies are listed 'Best First'.
Re: local Perl install (OSX non-root)
by jnbek (Scribe) on Jul 13, 2009 at 15:59 UTC
    ./Configure -Dprefix=$HOME/perl
    
    That should be all you need, you're prepending -d on your and that says use defaults for all answers and I beleive will override anything after or before it.
Re: local Perl install (OSX non-root)
by Anonymous Monk on Jul 13, 2009 at 12:57 UTC
    destdir is Configure argument, maybe you should show the output of configure