Yes, I got Tk to work with perl 5.8.1 on macosx 10.3 panther; but first, I had to download the complete source package for X11R6, because the make stage for Tk needs the header files (*.h) from the X11 source distro (which is not part the standard macosx manifest).
I think you'll find what you need here: http://www.xfree86.org/downloads.html -- don't let the "86" fool you: the part that matters is straight unix, without architecture issues.
It's been a while (nearly a year) since I did it, and my memory for details is fuzzy, but once you have the /usr/X11R6/include path on your mac, the Perl/Tk installation should proceed just fine. You don't need to build all of X11R6 from sources, you just need the *.h files to build Tk. | [reply] |
What's the error message that you get? That's the best way to tell what's going on. :)
Did you check the README.darwin file in the Perl/Tk distribution?
Ensure that you have the X11 stuff installed. You will need your X server running for the tests to do their magic. Ensure that you set the DISPLAY environment variable.
If you are still having problems, plug the error message into Google and you're likely to find someone else who had the same problem. :)
--
brian d foy <bdfoy@cpan.org>
| [reply] |
Hi
Wanted to update this with what worked for me.
First, got orobor working, simple but required a reinstall for me after a 10.3.x update. Apple X11 might work too, but my knowledge is so lacking I won't speculate.
Then I downloaded the X11 SDK. It is also on the Xtools cd, but you have to make sure you install it.
Then console
sudo cpan
look Tk
perl Makefile.Pl -t
make install
Run test Tk script.
If you get an error about:
Using -L/usr/X11R6/lib to find /usr/X11R6/lib/libX11.dylib
Cannot find X include files via /usr/X11R6/include
Cannot find X include files anywhere at ./myConfig line 332.
Compilation failed in require at Makefile.PL line 32.
BEGIN failed--compilation aborted at Makefile.PL line 34.
Then you need to reread and install the X11 SDK, not just X11.
This is working for me in OSX 10.3.9. It also required developer tools and possibly some other things I didn't think to list here because I installed them a year ago, but this is what I can vouch for so far. Thanks for the help, Tim
| [reply] [d/l] |