On Wed, Apr 03, 2002 at 09:57:48AM -0500, aaron wrote: > Hi All, > Does anyone have any updated information on perl/Tk for OS X? Most of my > stuff at work uses perl/Tk and I was over-joyed to install Tk on my Mac. To > my chagrin it crashes exactly like described below. Is there an OS X > -compatible version available now? Does anyone know what causes this > problem? I'm assuming it's a C thing... > Whoops. I guess I should have followed up on this...
Anyway, via macintouch comes this link: http://www.lehigh.edu/~sol0/Macintosh/X/ptk/ the short of it is that -03 optimization breaks perl/tk. Here's the relevant excerpt from the above on the solution: * Install the modified dynamic loader per http://www.lehigh.edu/Macintosh/X/ptk/dyld-tk. * Now compile Tk800.023. The caveat: you cannot use -O3, which is the default, determined from how Perl itself was compiled. Here's the trick as described by Michael Doster (who made the dyld mods described above): Under the pTk source directory edit the file Tk/MMutil.pm. In the subroutine cflags make the following change at the end: $_ .= "\nOPTIMIZE=\n"; $_; } # end subroutine cflags. BTW, personally tested and used (I can't live w/o -d:ptkdb :) rick