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 does not work after installing new perl and removing old one #750

Open
KES777 opened this issue Jul 14, 2022 · 0 comments
Open

Comments

@KES777
Copy link

KES777 commented Jul 14, 2022

My perlbrew version was:

# ./perlbrew --version
./perlbrew  - App::perlbrew/0.42

After installing new version of perlbrew, its shebang looks like:

#!/opt/perlbrew/perls/perl-5.22.3/bin/perl

use strict;
use Config;
BEGIN {
...

But before it was:

#!/usr/bin/env perl
# This chunk of stuff was generated by App::FatPacker. To find the original
# file's code, look for the end of this BEGIN block or the string 'FATPACK'
BEGIN {
my %fatpacked;
...

After I have installed new perl and deleted 5.22.3, perlbrew stopped to work, because /opt/perlbrew/perls/perl-5.22.3/bin/perl is not available anymore.

Please do not hardcode perl version at shebang for perlbrew. Do same as for cpanm:
#!/usr/bin/env perl

@KES777 KES777 changed the title Perlbrew does not work after isntalling new perl Perlbrew does not work after installing new perl and removing old one Jul 14, 2022
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

1 participant