configure: error: installation or configuration problem: C compiler cannot create executables.

2019 Macbook M1 Sonoma 14.5.

Installed Perlbrew and Perl-5.38.2. Tried to install Perl Tk using cpanm. inline-code checking for gcc... cc checking whether the C compiler (cc -fno-common -DPERL_DARWIN -mmacosx-version-min=14.5 -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -fno-common -DPERL_DARWIN -mmacosx-version-min=14.5 -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -mmacosx-version-min=14.5 -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/terryhimes/.cpanm/work/1718338769.22397/Tk-804.036/JPEG/Makefile.PL: ERROR from evaluation of /Users/terryhimes/.cpanm/work/1718338769.22397/Tk-804.036/JPEG/jpeg/Makefile.PL: Error opening Makefile: No such file or directory at ./Makefile.PL line 41. inline-code

Hi There, First, I am running "macOS Sonoma 14.6.1 (23G93)".

I am getting a similar looking issue trying to install TK (see below) on my mac. Was the original issue resolved? If so, what was the solution?

Thanks for any help, Hugh

Running Command:

perl install_cpan_modules.pl

Partial log:

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

configure: error: installation or configuration problem: C compiler cannot create executables.
 
 
Q