in reply to cpanm Tk build errors

I have installed Perlbrew on a new 2023 Macbook Pro, then Tk with no problems, works great. I followed the same instructions in both cases. Any ideas?

I wonder:
1) Is it the same version of Tk in both cases ?
2) Did the build of Tk that worked also have have to build libjpeg ? ... or did it locate and use a suitable previously installed version of libjpeg ?
3) Is it appropriate that all of those perl compiler flags be specified for the building of libjpeg ? As cavac has subtly hinted, maybe one or more of those flags has rendered "cc" unusable for that task.
If those flags are actually specified in $Config{cc}, then I think that's wrong. What is the output of perl -V:cc ?

But I don't think that I really have much in the way of ideas ;-)

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: cpanm Tk build errors
by thimes (Acolyte) on May 22, 2024 at 07:03 UTC
    terryhimes@Users-MacBook-Pro perltk % perl -V:cc cc='cc'; Also compiled and ran hello.c and it worked perfectly. I will investigate your other suggestions comparing the successful build next.