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

Error installing Perl(all versions) on Intel Monteray

Open fantinuoli opened this issue 2 years ago • 2 comments

I am not able to install any version of Perl (tried 5.26 upwards) on a new macOS Monterey (Intel).

Test Summary Report
-------------------
porting/libperl.t                                                (Wstat: 65280 Tests: 35 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
../ext/POSIX/t/time.t                                            (Wstat: 512 Tests: 14 Failed: 0)
  Non-zero exit status: 2
  Parse errors: Bad plan.  You planned 19 tests but ran 14.
Files=2676, Tests=1208485, 840 wallclock secs (63.76 usr 13.58 sys + 463.82 cusr 80.92 csys = 622.08 CPU)
Result: FAIL
make: *** [test_harness] Error 2
##### Brew Failed #####

Any suggestions welcomed.

fantinuoli avatar Apr 08 '22 12:04 fantinuoli

@fantinuoli Hi, thanks for the report. Are you able provide the output of each test failures ?

I don't have a mac with Monterey to troubleshoot this right away , but if there are more clue, people who experienced same problems might be able to provide solutions.

gugod avatar Apr 11 '22 01:04 gugod

I've also had an install failure on macOS Monterey (Intel)

$ perlbrew version
~/perl5/perlbrew/bin/perlbrew  - App::perlbrew/0.95

$ perlbrew install perl-5.32.1

$ cat ~/perl5/perlbrew/build.perl-5.32.1.log

--snip--

porting/globvar.t .................................................. ok
porting/libperl.t: Unexpected /usr/bin/nm error: ../libperl.a:perlapi.o: no symbols
porting/libperl.t: Unexpected /usr/bin/nm errors
porting/libperl.t ..................................................
Dubious, test returned 255 (wstat 65280, 0xff00)
All 35 subtests passed
        (less 1 skipped subtest: 34 okay)
porting/maintainers.t .............................................. ok

--snip-

Test Summary Report
-------------------
porting/libperl.t                                                (Wstat: 65280 Tests: 35 Failed: 0)
  Non-zero exit status: 255
  Parse errors: No plan found in TAP output
Files=2676, Tests=1208597, 907 wallclock secs (64.68 usr 13.86 sys + 474.75 cusr 93.53 csys = 646.82 CPU)
Result: FAIL
make: *** [test_harness] Error 1

perlapi.o is a 208-byte Mach-O 64-bit object x86_64 file.

Running nm perlapi.o gives the no symbols message on STDERR.

I ran the following to install things anyway, and the new perl seems to work so far.

$ cd ~/perl5/perlbrew/build/perl-5.32.1/perl-5.32.1
$ make install
$ perlbrew switch perl-5.32.1

$ perl -v
This is perl 5, version 32, subversion 1 (v5.32.1) built for darwin-2level

d5ve avatar May 17 '22 03:05 d5ve