- 论坛徽章:
- 145
|
本帖最后由 jason680 于 2011-03-25 17:49 编辑
工作中的环境很苛刻,生产系统上只有那些基本的packages,不是你想用包就能用.不是你想装就给你装,不是你想升 ...
miniqq 发表于 2011-03-25 15:31 ![]()
try to use perlbrew to install Perl on user folder and switch them.
http://search.cpan.org/dist/App-perlbrew/lib/App/perlbrew.pm
http://www.php-oa.com/2011/02/25/perl-appperlbrew.html
I had install 5.12 on my HOME folder and test it
$ perlbrew list
* perl-5.12.1
/usr/bin/perl (5.10.0)
### switch perl to 5.12 with installed by yourself
$ perlbrew switch perl-5.12.1
Switched to perl-5.12.1
$ perl -v
This is perl 5, version 12, subversion 1 (v5.12.1) built for i686-linux
Copyright 1987-2010, Larry Wall
...
### switch perl to 5.10 with system default
$ perlbrew switch /usr/bin/perl
Switched to /usr/bin/perl as custom
$ perl -v
This is perl, v5.10.0 built for i486-linux-gnu-thread-multi
Copyright 1987-2007, Larry Wall
... |
|