This is a multi-part message in MIME format. --------------5D7533DBB3C5BF5A7BB43E97 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm sending this out just to get it into the archives so that people having problems will find it. The default "make" for Tk does not work under OS X. Some tweaking is required. As such, Genquire must be installed by hand on a Mac. look at the modules.conf file in the installer package for a list of the required CPAN modules you need to install. Attached is a description of how to install Tk on a Mac. M -- -------------------------------- "Speed is subsittute fo accurancy." ________________________________ Dr. Mark Wilkinson Bioinformatics Group National Research Council of Canada Plant Biotechnology Institute 110 Gymnasium Place Saskatoon, SK Canada --------------5D7533DBB3C5BF5A7BB43E97 Content-Type: message/rfc822 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Mozilla-Status2: 00000000 Message-ID: <3CAC9F5F.D4FDDDA0@gene.pbi.nrc.ca> Date: Thu, 04 Apr 2002 12:45:51 -0600 From: Mark Wilkinson <mwilkinson@gene.pbi.nrc.ca> Organization: PBI-NRC X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.19 i686) X-Accept-Language: en MIME-Version: 1.0 To: dblock@gnf.org Subject: Bug's MacIntosh Page Content-Type: multipart/mixed; boundary="------------B7B8F8F79F3C59597EF236C2" This is a multi-part message in MIME format. --------------B7B8F8F79F3C59597EF236C2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit http://www.Lehigh.EDU/~sol0/Macintosh/X/ptk/ -- -------------------------------- "Speed is subsittute fo accurancy." ________________________________ Dr. Mark Wilkinson Bioinformatics Group National Research Council of Canada Plant Biotechnology Institute 110 Gymnasium Place Saskatoon, SK Canada --------------B7B8F8F79F3C59597EF236C2 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Base: "http://www.Lehigh.EDU/~sol0/Macintosh/ X/ptk/" Content-Location: "http://www.Lehigh.EDU/~sol0/Macintosh/ X/ptk/" <html> <head> <title>Bug's MacIntosh Page</title> </head> <body> <h1 align=center>Perl/Tk and Mac OS X</h1> The 10.2.1 release of Mac OS X seems to have introduced a compiler optimization bug that causes Perl/Tk to crash with bus errors and segmentation faults. The Perl that comes with Mac OS X, 5.6.0, is compiled with -O3, and that's what Perl/Tk uses, but we want to compile with no optimization. Many thanks to Richard Michaud for the heads-up and helping me track this down. So, here's the recipe for building a working Perl/Tk on Mac OS X: <ul> <li> Fetch and install XFree86 4.2.0 (includes XDarwin 1.1) from <a href=http://www.xdarwin.org>http://www.xdarwin.org</a>. <li> Apple's Perl 5.6.0 is already there, w/o threads, and hasn't changed since Sep 2001. <li> Install the Developer package so <i>cc</i> et.al. are available (228 MB). <li> Install the modified dynamic loader per <a href="dyld-tk">http://www.lehigh.edu/Macintosh/X/ptk/dyld-tk</a>. <li> 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): <pre> 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. </pre> If you install via CPAN and do not have access to the distribution, you can also change Perl's master configuration file /System/Library/Perl/darwin/Config.pm. Change the <i>optimize</i>option from <i>optimize='-O3'</i> to <i>optimize=''</i>. <li>Compile and install using the standard idiom: perl Makefile.PL; make test; sudo make install </ul> <p> That's it. Have fun, and remember to <font size=+2 color=blue face=courier>use Tk;</font> </BODY> </HTML> --------------B7B8F8F79F3C59597EF236C2-- --------------5D7533DBB3C5BF5A7BB43E97--