in reply to Re: Perl Tk on a Mac
in thread Perl Tk on a Mac

Well, the main problem is I don't have a Mac, and a client is coming today to have the software installed :-)

But there were reports from users the old installer stopped working. All their attempts seem to lead to #66.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^3: Perl Tk on a Mac
by Arunbear (Prior) on Mar 20, 2025 at 11:43 UTC
    Perhaps install Perl via Homebrew, then install Perl Tk with that?

      I have Perl installed with perlbrew and configuration of the Tk package is failing with:

      checking whether the C compiler (cc -fno-common -DPERL_DARWIN -mmacosx-version-min=14.7 -DNO_THREAD_SAFE_QUERYLOCALE -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -fno-common -DPERL_DARWIN -mmacosx-version-min=14.7 -DNO_THREAD_SAFE_QUERYLOCALE -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -mmacosx-version-min=14.7 -fstack-protector-strong -L/usr/local/lib) works... no configure: error: installation or configuration problem: C compiler cannot create executables. ERROR from evaluation of /Users/ntonkin/.cpanm/work/1742471200.46755/Tk-804.036/JPEG/Makefile.PL: ERROR from evaluation of /Users/nick/.cpanm/work/1742471200.46755/Tk-804.036/JPEG/jpeg/Makefile.PL: Error opening Makefile: No such file or directory at ./Makefile.PL line 41.

      I installed gcc from Homebrew but it did not change the error message.


      The way forward always starts with a minimal test.

        this looks promising: cpanm Tk build errors especially the last comments

        It could well be that, as srini@pm suggests in his solution, a difference in the C standard of a probably included Tk header file in the C testfile it tries to compile.

        but perhaps you could also find what the offending C test program is for which the compiler (with the specific flags) fails.