gugod / App-perlbrew

Manage perl installations in your $HOME
https://perlbrew.pl
Other
719 stars 216 forks source link

Unable to switch to new perl installation #761

Open mvsjes2 opened 2 years ago

mvsjes2 commented 2 years ago

I installed perl-5.37.3 on Ubuntu 20.04.4 and everything looked like it worked fine. The last couple of messages I got from the log file were:

/home/robin/perl5/perlbrew/perls/perl-5.37.3/man/man1/zipdetails.1
##### Brew Finished #####

I see the directory created properly:

ll ~/perl5/perlbrew/perls
total 32
drwxrwxr-x 8 robin robin 4096 Aug 31 14:48 ./
drwxrwxr-x 7 robin robin 4096 Sep  1 10:42 ../
drwxr-xr-x 5 robin robin 4096 Aug 23  2021 perl-5.28.3/
drwxr-xr-x 5 robin robin 4096 Dec 15  2021 perl-5.30.3/
drwxr-xr-x 5 robin robin 4096 Dec  8  2021 perl-5.32.1/
drwxr-xr-x 5 robin robin 4096 Dec 14  2021 perl-5.34.0/
drwxr-xr-x 5 robin robin 4096 Aug 12 12:29 perl-5.37.2/
drwxr-xr-x 5 robin robin 4096 Aug 31 14:48 perl-5.37.3/

However, perlbrew list doesn't show it:

perlbrew list
  perl-5.34.0                               
  perl-5.32.1                               
  perl-5.30.3                               
  perl-5.28.3

If I try to use it I get: $ perlbrew use perl-5.37.3 ERROR: The installation "perl-5.37.3" is unknown.

Anything I can check?

happy-barney commented 2 years ago

check existence of perl-5.37.3/bin/perl

mvsjes2 commented 2 years ago

There is no perl there:

total 4300
drwxr-xr-x 2 robin robin    4096 Sep  1 11:10 ./
drwxr-xr-x 5 robin robin    4096 Aug 31 14:48 ../
-rwxr-xr-x 1 robin robin   15467 Sep  1 11:10 corelist5.37.3*
-rwxr-xr-x 1 robin robin    8452 Sep  1 11:10 cpan5.37.3*
-rwxr-xr-x 1 robin robin   41972 Sep  1 11:10 enc2xs5.37.3*
-rwxr-xr-x 1 robin robin    3161 Sep  1 11:10 encguess5.37.3*
-rwxr-xr-x 1 robin robin   29319 Sep  1 11:10 h2ph5.37.3*
-rwxr-xr-x 1 robin robin   61026 Sep  1 11:10 h2xs5.37.3*
-rwxr-xr-x 1 robin robin    4382 Sep  1 11:10 instmodsh5.37.3*
-rwxr-xr-x 1 robin robin    5084 Sep  1 11:10 json_pp5.37.3*
-rwxr-xr-x 1 robin robin   15870 Sep  1 11:10 libnetcfg5.37.3*
-rwxr-xr-x 1 robin robin 3850104 Sep  1 11:10 perl5.37.3*
-rwxr-xr-x 2 robin robin   45271 Sep  1 11:10 perlbug5.37.3*
-rwxr-xr-x 1 robin robin     354 Sep  1 11:10 perldoc5.37.3*
-rwxr-xr-x 1 robin robin   10948 Sep  1 11:10 perlivp5.37.3*
-rwxr-xr-x 2 robin robin   45271 Sep  1 11:10 perlthanks5.37.3*
-rwxr-xr-x 1 robin robin    8452 Sep  1 11:10 piconv5.37.3*
-rwxr-xr-x 1 robin robin    4628 Sep  1 11:10 pl2pm5.37.3*
-rwxr-xr-x 1 robin robin    4229 Sep  1 11:10 pod2html5.37.3*
-rwxr-xr-x 1 robin robin   15126 Sep  1 11:10 pod2man5.37.3*
-rwxr-xr-x 1 robin robin   10895 Sep  1 11:10 pod2text5.37.3*
-rwxr-xr-x 1 robin robin    4153 Sep  1 11:10 pod2usage5.37.3*
-rwxr-xr-x 1 robin robin    3704 Sep  1 11:10 podchecker5.37.3*
-rwxr-xr-x 1 robin robin   13751 Sep  1 11:10 prove5.37.3*
-rwxr-xr-x 1 robin robin    3658 Sep  1 11:10 ptar5.37.3*
-rwxr-xr-x 1 robin robin    2737 Sep  1 11:10 ptardiff5.37.3*
-rwxr-xr-x 1 robin robin    4487 Sep  1 11:10 ptargrep5.37.3*
-rwxr-xr-x 1 robin robin   10074 Sep  1 11:10 shasum5.37.3*
-rwxr-xr-x 1 robin robin   19541 Sep  1 11:10 splain5.37.3*
-rwxr-xr-x 1 robin robin    8153 Sep  1 11:10 streamzip5.37.3*
-rwxr-xr-x 1 robin robin    5259 Sep  1 11:10 xsubpp5.37.3*
-rwxr-xr-x 1 robin robin   70285 Sep  1 11:10 zipdetails5.37.3*
mvsjes2 commented 2 years ago

If I manually symlink it to perl-5.37.3 then it works fine. I shouldn't have to do that though, right?

gugod commented 2 years ago

This is perhaps an regression. perlbrew is supposed to detrct thar 5.37 is a dev release and do whatever adjustment for you. The symlink you've done manually (perl -> perl5.37.3) should have happened automatically.