in reply to how to install perl 5.10.1 on ubuntu9.10?
To install your own Perl, follow these steps:
sudo su - cd /opt mkdir perl-5.10.1 mkdir src cd src wget http://cpan.org/src/perl-5.10.1.tar.gz tar xzf perl-5.10.1.tar.gz cd perl-5.10.1 rm -f config.sh Policy.sh ./Configure -Dprefix=/opt/perl-5.10.1 make make test make install cd /opt ln -s perl-5.10.1 perl exit
And you're done. Do not add /opt/perl/bin to your (or root's) $PATH.
To install modules for your own Perl, use /opt/perl/bin/cpanp. Never use /usr/bin/cpanp or /usr/bin/cpan. (To install Perl modules for the system Perl, continue to use aptitude.)
Always use the fully-qualified shebang line at the beginning of scripts that you explicitly want to use /opt/perl/bin/perl:
#!/opt/perl/bin/perl ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to install perl 5.10.1 on ubuntu9.10?
by przemo (Scribe) on Nov 19, 2009 at 09:38 UTC | |
by Anonymous Monk on Nov 19, 2009 at 16:47 UTC | |
by Anonymous Monk on Nov 19, 2009 at 10:15 UTC |