App-perlbrew icon indicating copy to clipboard operation
App-perlbrew copied to clipboard

Problems installing perl-5.34.0 on macOS Catalina, Version 10.15.6 (19G73)

Open nattzy94 opened this issue 3 years ago • 3 comments

Hi,

I tried to install perl using perlbrew install perl-5.34.0. However, this fails:

This could take a while. You can run the following command on another shell to track the status:

  tail -f ~/perl5/perlbrew/build.perl-5.34.0.log

Installation process failed. To spot any issues, check

  /Users/nathaniel/perl5/perlbrew/build.perl-5.34.0.log

If some perl tests failed and you still want to install this distribution anyway,
do:

  (cd /Users/nathaniel/perl5/perlbrew/build/perl-5.34.0/perl-5.34.0; make install)

You might also want to try upgrading patchperl before trying again:

  perlbrew install-patchperl

Generally, if you need to install a perl distribution known to have minor test
failures, do one of these commands to avoid seeing this message:

  perlbrew --notest install perl-5.34.0
  perlbrew --force install perl-5.34.0

The last part of ~/perl5/perlbrew/build.perl-5.34.0.log shows:

../lib/User/pwent.t .................................................. ok
../lib/utf8.t ........................................................ ok
../lib/vars.t ........................................................ ok
../lib/vars_carp.t ................................................... ok
../lib/vmsish.t ...................................................... ok
../lib/warnings.t .................................................... ok

Test Summary Report
-------------------
../ext/GDBM_File/t/gdbm.t                                          (Wstat: 65280 Tests: 5 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
Files=2676, Tests=1185648, 914 wallclock secs (62.70 usr 11.07 sys + 486.70 cusr 73.81 csys = 634.28 CPU)
Result: FAIL
make: *** [test_harness] Error 1
##### Brew Failed #####

I have also tried running perlbrew install-patchperl before re-runinng the perl installation but the installation still fails:

perlbrew install-patchperl

/Users/nathaniel/perl5/perlbrew/bin/patchperl already exists, are you sure to override ? [y/N] [N] y

patchperl is installed to

    /Users/nathaniel/perl5/perlbrew/bin/patchperl

I am running this on macOS Catalina, Version 10.15.6 (19G73).

nattzy94 avatar Dec 10 '21 08:12 nattzy94

probably related: #715

gugod avatar Dec 20 '21 23:12 gugod

It's not #715. I see the same as @nattzy94 on two different Intel based systems using macOS 12.2 and 12.3, with both 5.34.0 and 5.32.1. I can perlbrew install --force... the installation, but I don't like that. Plus I'm facing some issues right now running one of my script, and I'd rather be sure it's not caused by this issue.

Compiling the same version on a M1 Mini with macOS 12.2 succeeds just fine.

michaelherger avatar Feb 28 '22 21:02 michaelherger

I encountered a similar error when trying to install perl-5.34.0 on openSUSE. It still failed to install even after upgrading patchperl:

Test Summary Report
-------------------
../ext/GDBM_File/t/gdbm.t                                          (Wstat: 65280 Tests: 5 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
Files=2677, Tests=1186796, 715 wallclock secs (57.01 usr  6.66 sys + 435.07 cusr 40.56 csys = 539.30 CPU)
Result: FAIL
make: *** [makefile:839: test_harness] Error 1
##### Brew Failed #####

But installing perl-5.34.3 succeeded after upgrading patchperl. Not sure whether it would succeed without patchperl.

My environment:

Operating System: openSUSE Tumbleweed 20240419
Kernel Version: 6.8.7-1-default (64-bit)
glibc: 2.39
system Perl: v5.38.2
GNU Make: 4.4.1

Alecton4 avatar May 02 '24 10:05 Alecton4