Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Perlbrew installation at /opt/perl5 problem. #700

Open
lifeboatpres opened this issue Nov 19, 2020 · 4 comments
Open

Perlbrew installation at /opt/perl5 problem. #700

lifeboatpres opened this issue Nov 19, 2020 · 4 comments

Comments

@lifeboatpres
Copy link

I was installing perlbrew at /opt/perl5 so multiple people could use the same version of Perl.

I did this installation after I had already installed perlbrew in my home directory (with the idea that I would delete that perlbrew after /opt/perl5 worked.)

This caused /opt/perl5/bin/perlbrew to start with #!/home/lifeboat/perl5/perlbrew/perls/perl-5.22.0/bin/perl which was a problem once the perlbrew in /home/lifeboat was deleted. It would have been better if the perlbrew installation script had used #!/usr/bin/perl instead.

@gugod
Copy link
Owner

gugod commented Dec 14, 2020

@lifeboatpres thanks for the report... could you elaborate a bit more aboutt how it was installed in the first place ?

I'm asking because the installationg process does a bit of work in order to tell where "system perl" is: https://github.com/gugod/App-perlbrew/blob/develop/lib/App/perlbrew.pm#L1643 ... and if it is finding the 'perl' under your perlbrew installation that process is buggy. If it is possible for you to recall the process that would be very helpful to reprodce this bug.

@lifeboatpres
Copy link
Author

"thanks for the report... could you elaborate a bit more aboutt how it was installed in the first place ?"

"I did this installation after I had already installed perlbrew in my home directory (with the idea that I would delete that perlbrew after /opt/perl5 worked.)"

So I had first installed perlbrew in my home directory, then decided to install it in /opt for everyone, then removed perlbrew from my home directory, then noticed that perlbrew was connected to the old perlbrew in my home directory, instead of the regular perl that was already installed on the machine. Not a huge bug as now I just install perlbrew in /opt on all machines but it seemed a flaw for perlbrew to not use /usr/bin/perl for the location of Perl.

@gugod
Copy link
Owner

gugod commented Dec 16, 2020

Thanks!
I think I could work with that description and try to guess the commands that were use to install perlbrew under /opt/ ... something told me that the one you installed under /opt/ is done by cpan command but not curl, for example. But this is just a guest and could be wrong.

@lifeboatpres
Copy link
Author

lifeboatpres commented Apr 11, 2021

To install in /home/lifeboat, I typed the following as lifeboat: curl -kL http://install.perlbrew.pl | bash

To install in /opt, I typed the following as root: export PERLBREW_ROOT=/opt/perl5
curl -L http://install.perlbrew.pl | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants