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