appeared to run fine except for install which complained about permissions. Not sure what to do Ijohn@ubuntu:~/perl-5.10.1$./Configure -des -Dprefix=/opt/perl john@ubuntu:~/perl-5.10.1$make john@ubuntu:~/perl-5.10.1$make test john@ubuntu:~/perl-5.10.1$make install
and then the make install ran fine. I created a linkjohn@ubuntu:~$cd /opt john@ubuntu:~$sudo mkdir perl john@ubuntu:~$sudo chmod 777 perl
john@ubuntu:~$cd /usr/local/bin john@ubuntu:~$sudo ln -isv /opt/perl/bin/perl perl
This gave me:john@ubuntu:~$ls -l /usr/local/bin/perl lrwxrwxrwx 1 root root 18 2010-02-28 10:50 /usr/local/bin/perl -> /opt +/perl/bin/perl
So far so good, butjohn@ubuntu:~$/usr/local/bin/perl -e 'print "$]\n";' 5.010001 john@ubuntu:~$/usr/bin/perl -e 'print "$]\n";' 5.008008
which wasn't what I was expecting. And worsejohn@ubuntu:~$perl -e 'print "$]\n";' 5.008008
The path is (extract)john@ubuntu:~$sudo perl -e 'print "$]\n";' 5.010001
Can anyone see how I managed to screw it up? And is it possible to straighten it out? Do you need any more info?john@ubuntu:~$echo $PATH /usr/local/bin: ... /usr/bin: ...
fwiw, I'm looking to convert some cgi apps to mod_perl. I'm renting a cheap VPS as a "sandbox" but before I let myself loose on that I've set up a spare box with the same OS. At the back of my mind is how to tell Apache/mod_perl to use the perl under /opt/perl. But I fear I have a long way to go before I need worry about that (e.g. learning unix and fighting vim). :-)
As always, thanks in advance.
Updated: corrected the paths in the first code block
In reply to Permissions for a separately installed perl by wfsp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |