Hello
I installing perl5.8.1 in my box "Debian woody, 2.4.21".
since debian has it's perl-dist-package 5.6.1, I followed the instruction on to install 5.8.1 as well.
http://perlmonks.thepen.com/285799.htmlusername@domain:~$wget
http://cpan.org/src/stable.tar.gzusername@domain:~$tar -zxvf stable.tar.gz
username@:~$cd perl-5.8.1
username@domain:~/perl-5.8
.1$rm -f config.sh Policy.sh
username@domain:~/perl-5.8
.1$sh Configure -de
username@domain:~/perl-5.8
.1$make
username@domain:~/perl-5.8
.1$make test
username@domain:~/perl-5.8
.1$make install
4.confirm new Perl 5.8.0 is user Perl
$perl -e 'print "$]\n";' #should tell you "5.008".
it shows 5.006
rm -f /usr/bin/perl
ln -sf /usr/local/bin/perl /usr/bin/perl
$perl -e 'print "$]\n";'
$bash: -e: command not found
my question, why the last command not showing 5.008
did I install the file in the correct place or should have been installed in a different place?
username@domain:/usr/local
$ and not username@domain:~$
current look
$/bin/su
# rm -f /usr/bin/perl
# ln -sf /usr/local/bin/perl /usr/bin/perl
# perl -e 'print "$]\n";'
bash: perl: command not found
# perl -e 'print "$]\n";'
bash: perl: command not found
#
domain:/usr/bin# ls -l | grep perl
-rwxr-xr-x 1 root root 22903 Aug 10 11:18 find2perl
lrwxrwxrwx 1 root root 19 Nov 10 07:48 perl -> /usr/local/bin/perl
-rwxr-xr-x 2 root root 774947 Aug 10 11:19 perl-5.6
-rwxr-xr-x 2 root root 774947 Aug 10 11:19 perl5.6.1
-rwxr-xr-x 1 root root 35465 Aug 10 11:18 perlbug
-rwxr-xr-x 1 root root 16920 Aug 10 11:18 perlcc
-rwxr-xr-x 1 root root 22696 Aug 10 11:18 perldoc
-rwxr-xr-x 1 root root 121 Aug 10 11:19 perldoc.stub
domain:/usr/bin# ls -l /usr/local/bin/ | grep perl
lrwxrwxrwx 1 root staff 9 Nov 10 07:57 perl -> perl5.8.0
domain:/usr/bin#C-d
username@domain:~$ls -l | grep perl
drwxr-xr-x 32 username username 8192 Nov 7 20:12 perl-5.8.1
username@demain:~$
thanks
Start Free Trial