Skip Menu |

This queue is for tickets about the App-perlbrew CPAN distribution.

Report information
The Basics
Id: 67993
Status: resolved
Priority: 0/
Queue: App-perlbrew

People
Owner: Nobody in particular
Requestors: jean [...] veronis.fr
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.19
Fixed in: (no value)



Subject: Shared perlbrew doesn't work as expected
I tried to install perlbrew for multiple users (Debian), as described in : http://gugod.org/2010/12/a-shared-perlbrew-root-for-multiple-users.html I believe that I followed the different steps correcly (although I may have misendurstood something). However, I am trapped between two things : 1. Either I give write permission to all all users on /opt/perlbrew, and it works, but the switch command issued by any user affects all others ; 2. Or I do not give such permission, and then nothing happens. More exacly perlbrew says "Switched to whatever" but simply doesn't do it. Example: $ perlbrew switch perl-5.12.3 Switched to perl-5.12.3 $ perl -v This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi ... cat .perlbrew/init # DO NOT EDIT THIS FILE export PERLBREW_PERL=custom ...
From: jean [...] veronis.fr
I played around a little more. This seems to be connected to the fact that perlbrew sets system-wide symlinks: $ perlbrew switch /usr/bin/perl Switched to /usr/bin/perl as custom $ ls -l /opt/perlbrew/perls/ total 8 lrwxrwxrwx 1 jean perlbrew 6 6 mai 17:07 current -> custom ... $ perlbrew switch perl-5.12.3 Switched to perl-5.12.3 $ ls -l /opt/perlbrew/perls/ total 8 lrwxrwxrwx 1 jean perlbrew 11 6 mai 17:07 current -> perl-5.12.3 ... I am confused, since Gugod's post said "Each user now has a personal init file at ~/.perlbrew/init, which is auto-generated to store the result of perlbrew switch. Not using symlink anymore so there is no permission problem in the way."
On Fri May 06 11:29:26 2011, jeanv wrote: Show quoted text
> I played around a little more. This seems to be connected to the fact > that perlbrew sets system-wide symlinks: > > $ perlbrew switch /usr/bin/perl > Switched to /usr/bin/perl as custom > $ ls -l /opt/perlbrew/perls/ > total 8 > lrwxrwxrwx 1 jean perlbrew 6 6 mai 17:07 current -> custom > ... > $ perlbrew switch perl-5.12.3 > Switched to perl-5.12.3 > $ ls -l /opt/perlbrew/perls/ > total 8 > lrwxrwxrwx 1 jean perlbrew 11 6 mai 17:07 current -> perl-5.12.3 > ... > I am confused, since Gugod's post said "Each user now has a personal > init file at ~/.perlbrew/init, which is auto-generated to store the > result of perlbrew switch. Not using symlink anymore so there is no > permission problem in the way."
The `current` symlink was removed since, iirc, 0.13 release, and then reverted recently in 0.16 due to a some weird behavior. Eventually it should be removed again.
From: jean [...] veronis.fr
Thanks for the explanation ! It is probably worth an edit on the original blog post (I was unable to comment there, since a login seems to be needed).
On Sun May 08 04:56:22 2011, jeanv wrote: Show quoted text
> Thanks for the explanation ! > It is probably worth an edit on the original blog post (I was unable to > comment there, since a login seems to be needed).
Sorry if that bugs you. I've been working on the implementation to remove the need of 'current' symlink. It should be release in about a week (unless my $client bugs me too much :) I will then make an announcement that describe this major change.
The recently released 0.21 should be stable enough resole this issue. I shall start to aggregate relevant documents to the web site.