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.shAfter 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!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.