perlbrew

How can Install multiple Perl versions without them tripping over each other's XS modules?

只愿长相守 提交于 2019-12-04 06:03:18
I would like to install several different versions of perl in my home directory. I tried using App::perlbrew , but XS modules from one version were causing segfaults in the other version. Is there any way to install multiple versions of perl and have them automatically keep their XS modules separate? You can install each perl completely separate from any other perl installation. It's binaries and modules will be completely separate from each other. Essentially, when you install each perl you give it its own prefix: $ ./Configure -des -Dprefix=/usr/local/perls/perl-5.12.1 Everything is

Using perlbrew to build a perl with debugging symbols

喜你入骨 提交于 2019-12-04 02:43:56
I'm trying to track down a segmentation fault that I've been able to isolate to just a few lines of code on different versions of Perl. I use perlbrew to manage my various versions for development and testing, but it doesn't build perl with debugging symbols, so using gdb to analyse the core dump file is pretty useless. So what's the best way to have perlbrew build with debugging symbols enabled. And if possible I'd like to be able to have it be a separate perl that I could switch to instead of overriding the standard one for the same version. ikegami perlbrew install -v 5.14.2 --as=5.14.2d

How can I control the Perl version used when submitting grid jobs?

蓝咒 提交于 2019-12-03 16:10:18
I'm working with SGE (Sun Grid Engine) to submit jobs to a grid. I also use perlbrew to manage my installed Perl versions. I wrote some short sh scripts that I use to run a perl script which requires a specific Perl version (5.12.2), which look something like this: #!/bin/bash #$-S /bin/bash source /home/dave/.bash_profile /home/dave/perl5/perlbrew/bin/perlbrew switch perl-5.12.2 /home/dave/scripts/proc_12.pl --in=/home/dave/in/in.store --dir=/home/dave/in/dir2 --params=/home/dave/in/params.p Now, when I submit a single job everything works fine, but when I submit many, I start getting

perlbrew and local::lib at the same time?

杀马特。学长 韩版系。学妹 提交于 2019-12-03 05:45:57
问题 So far I have been using the system perl (on Ubuntu 10.10) and I was using local::lib to install CPAN modules in my private directory ~/perl5 As I am trying to use perlbrew it seems that they don't know about each other. I installed perl-5.12.3 using perlbrew but when I switch to it using perlbrew use perl-5.12.3 I still see the PERL5LIB and PERL_MM_OPT set by local::lib. That's not good: $ cpan XML::Simple /home/gabor/perl5/perlbrew/perls/perl-5.12.3/bin/perl: symbol lookup error: /home

Install modules with perlbrew and cpm - perlbrew switch does not change @INC during docker build

孤街醉人 提交于 2019-12-01 23:32:52
I'd like to use fast cpm module installer instead of cpanm in my projects. Also I install target perl version using perlbrew . According documentation of cpm -g option will install modules into current @INC How to force perlbrew change @INC in Dockerfile ? Below is part of my Dockerfile RUN perl -le 'print for @INC' && \ perlbrew switch perl-5.31.0 && \ perl -le 'print for @INC' && \ cpm install -gv CGI && \ perlbrew list-modules When I build Dockerfile output of perl -le 'print for @INC' is same both times: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1

How to create a init-script for an Perl catalyst application running on nginx with fastcgi and perlbrew

北慕城南 提交于 2019-12-01 09:27:14
I'm looking for a initscript to make usage of perlbrew on a webserver running a nginx as proxy for an perl catalyst application. I'm currently trying to start the app via source $PERLBREW execute "perlbrew use perl-5.14.4@devel" execute "mkdir -p $PID_PATH && $START_ICOS_APP > /dev/null 2>&1 &" echo "$DESC started" but it appers it cannot find the local perl installation. $PERLBREW is set to my perlbrew folder. This is a good step by step guide how to do this, but it is French (but still understandable). http://www.catapulse.org/articles/view/124 I copied here: Setup the user which is going to

Switching to the system Perl using perlbrew

寵の児 提交于 2019-11-28 20:48:02
First, some background. perlbrew is a tool to assist with the installation of Perl into a non-standard directory (usually under your home directory). It also helps you control which Perl installation is used when executing perl in an interactive shell. Switching between installations is done using perlbrew use and perlbrew switch . perlbrew use only affects the current shell, while perlbrew switch is more permanent. $ perl -V:version | $ perl -V:version version='5.20.0'; | version='5.20.0'; | $ perlbrew use 5.18.2t | $ perlbrew switch 5.18.2t | $ perl -V:version | $ perl -V:version version='5

How do I install CPAN modules while using perlbrew?

狂风中的少年 提交于 2019-11-28 16:26:30
问题 I have started using perlbrew and installed perl-5.12.2. I understand I need to re-install my CPAN modules, so I switched to my new Perl version ( perlbrew switch perl-5.12.2 and hash -r ), verified the switch was successful ( perl -v ) then tried installing some module ( File::Copy::Recursive using cpan . However, cpan says `File::Copy::Recursive is up to date (0.38). When I start a Perl script using this module, it shouts Can't locate File/Copy/Recursive.pm in @INC ... (showing many perl-5

Why does Perlbrew launch bash on Mac OS X Lion?

Deadly 提交于 2019-11-28 05:31:49
问题 When I run... perlbrew switch perl-5.16.0 ...I get... A sub-shell is launched with perl-5.16.0 as the activated perl. Run 'exit' to finish it. ...then a bash prompt appears. Is this expected behavior? If not, how can I fix it? 回答1: That happens when you have an improperly installed perlbrew . As part of the installation, you are instructed to add a command to your shell startup script, but that appears to be missing. Add the following to your shell startup script: source .../perlbrew/etc

Switching to the system Perl using perlbrew

落爺英雄遲暮 提交于 2019-11-27 20:46:39
问题 First, some background. perlbrew is a tool to assist with the installation of Perl into a non-standard directory (usually under your home directory). It also helps you control which Perl installation is used when executing perl in an interactive shell. Switching between installations is done using perlbrew use and perlbrew switch . perlbrew use only affects the current shell, while perlbrew switch is more permanent. $ perl -V:version | $ perl -V:version version='5.20.0'; | version='5.20.0'; |