in reply to Re^2: X11 emulation on mac OS
in thread X11 emulation on mac OS

Assume I've made the apparent mistake of following Lidie's advice, http://www.lehigh.edu/~sol0/Macintosh/X/ptk/ # see END NOTE 1 for context of what Lidie wrote if the link is broken): I've downloaded from http://search.cpan.org/~ni-s/Tk-804.027/ and installed TK on my new OSX 10.4 mac mini. During the make test I see multiple failures of the following type: 'couldn't connect to display ":0" at /Tk-804.027/blib/lib/Tk/MainWindow.pm line 55.' because I didn't use X11 . R Schwartz wrote there is a native version of Tk already on my 10.4, that doesn't require the X11 . (Although I've got X11 installed from my disks, I honestly don't even know how to start this X11 consolre either) If this is correct, where do I, and how do I use this X11 free TK? when I attempted my first simple perl file with "use TK;" prior to my incomplete attempt to properly download, make and test the CPAN TK-804... I had a failure with that script because the OS10.4 perl didn't have a TK module available. Summarizing: Where and how do I use the native version of the Tk on the 0SX 10.4 ? If you can, please provide specifics and details. thanks, JB END NOTE 1 Lidie wrote: Perl/Tk and Mac OS X 10.4 (Tiger) You can use the Perl 5.8.6 that comes with Tiger or build it yourself. Now fetch the Perl/Tk distribution, (Tk-804.027)(http://search.cpan.org/~ni-s/Tk-804.027/) . Unpack Perl/Tk and build it using the standard idiom: tar -zxvpf Tk-804.027.tar.gz cd Tk-804.027 perl Makefile.PL make make test # here is where I have the issue where this test fails. sudo make install

Replies are listed 'Best First'.
Re^4: X11 emulation on mac OS
by Anonymous Monk on May 12, 2007 at 17:46 UTC
    For example: The use Tk; creates the following error: Can't locate Tk.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at tk.pl line 3. BEGIN failed--compilation aborted at tk.pl line 3.
Re^4: X11 emulation on mac OS
by jfbmonk (Initiate) on May 13, 2007 at 15:34 UTC
    Addtionally if I attempt to use Tcl::Tk the following occurs:

    $ perl tcl.pl

    Can't locate Tcl/Tk.pm in @INC (@INC contains: /System/Library/Perl/5.8.6/darwin-thread-multi-2level /System/Library/Perl/5.8.6 /Library/Perl/5.8.6/darwin-thread-multi-2level /Library/Perl/5.8.6 /Library/Perl /Network/Library/Perl/5.8.6/darwin-thread-multi-2level /Network/Library/Perl/5.8.6 /Network/Library/Perl /System/Library/Perl/Extras/5.8.6/darwin-thread-multi-2level /System/Library/Perl/Extras/5.8.6 /Library/Perl/5.8.1 .) at tcl.pl line 1.

    BEGIN failed--compilation aborted at tcl.pl line 1.