in reply to Re: Problem Installing Perl-Tk on macOS Monterey (12.6) with Apple M1 chip
in thread Problem Installing Perl-Tk on macOS Monterey (12.6) with Apple M1 chip

Here is the relavent pstree output for the hanging processes:

... \-+= 03627 cmv /Library/Developer/CommandLineTools/usr/bin/make + test \-+- 05377 cmv /bin/sh -c cd PNG && make test_dynamic LIBPERL +_A="libperl.a" LINKTYPE="dynamic" OPTIMIZE="-O3" PREFIX="/opt/homebre +w/opt/perl" PASTHRU_DEFINE=' ' PASTHRU_INC='-I/usr/X11R6/include -I/o +pt/X11/include/freetype2 ' \-+- 05378 cmv /Library/Developer/CommandLineTools/usr/bin/ +make test_dynamic LIBPERL_A=libperl.a LINKTYPE=dynamic OPTIMIZE=-O3 P +REFIX=/opt/homebrew/opt/perl PASTHRU_DEFINE= PASTHRU_INC=-I/usr/X11R +6/include -I/opt/X11/include/freetype2 \-+- 05444 cmv /opt/homebrew/Cellar/perl/5.36.0/bin/perl +-I../t -MTkTest -e checked_test_harness('../xt', 0, '../blib/lib', '. +./blib/arch') t/basic.t t/crash.t \--- 05446 cmv /opt/homebrew/Cellar/perl/5.36.0/bin/per +l -w t/basic.t

Running the following command from the CPAN build directory (/Users/cmv/.cpan/build/Tk-804.036-0) causes the hang:

/bin/sh -c cd PNG && make test_dynamic LIBPERL_A="libperl.a" LINKTYPE= +"dynamic" OPTIMIZE="-O3" PREFIX="/opt/homebrew/opt/perl" PASTHRU_DEFI +NE=' ' PASTHRU_INC='-I/usr/X11R6/include -I/opt/X11/include/freetype2 + '
The file that it seems to be hanging on is:
/Users/cmv/.cpan/build/Tk-804.036-0/PNG/t/basic.t

Replies are listed 'Best First'.
Re^3: Problem Installing Perl-Tk on macOS Monterey (12.6) with Apple M1 chip
by thimes (Acolyte) on Jan 02, 2023 at 19:22 UTC
    I'm having the same problem. What was the resolution of this error?
      I have Tk installed and tried to run basic.t. It failed because XQuartz was not running. Started up XQuartz and it failed to find pngtest.png in my homedir. Once that file was in place PNG/t/basic.t passed all tests. Make sure XQuartz is running.