AFP548 Changing the world one server at a time.

Perl and Tk

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #357527
    Bill Eccles
    Participant

    Gentleones,

    I need to get Tk running on my 10.3 Server machine (in order to get MisterHouse–misterhouse.com–running). It apparently is not installed, as perl -e “use Tk” returns

    Can't locate Tk.pm in @INC (@INC contains: /System/Library/Perl/5.8.1/darwin-thread-multi-2level /System/Library/Perl/5.8.1 /Library/Perl/5.8.1/darwin-thread-multi-2level /Library/Perl/5.8.1 /Library/Perl /Network/Library/Perl/5.8.1/darwin-thread-multi-2level /Network/Library/Perl/5.8.1 /Network/Library/Perl .) at -e line 1.
    BEGIN failed--compilation aborted at -e line 1.

    So… I embarked upon installing Tk. Here’s what happens:

    cpan> install Tk
    CPAN: Storable loaded ok
    Going to read /Users/admin/.cpan/Metadata
      Database was generated on Fri, 27 Feb 2004 05:49:42 GMT
    Running install for module Tk
    Running make for N/NI/NI-S/Tk-804.025_beta14.tar.gz
    CPAN: Digest::MD5 loaded ok
    CPAN: Compress::Zlib loaded ok
    Checksum for /Users/admin/.cpan/sources/authors/id/N/NI/NI-S/Tk-804.025_beta14.tar.gz ok
    Scanning cache /Users/admin/.cpan/build for sizes
    Deleting from cache: /Users/admin/.cpan/build/Tk-804.025_beta14 (25.9>10.0 MB)
    
    8< snip! (a long list of files happens here)
    
      CPAN.pm: Going to build N/NI/NI-S/Tk-804.025_beta14.tar.gz
    
    /usr/bin/perl is installed in /System/Library/Perl/5.8.1/darwin-thread-multi-2level okay
    PPM for perl5.008001
    Test Compiling config/signedchar.c
    Test Compiling config/Ksprintf.c
    Test Compiling config/tod.c
    Test Compiling -DTIMEOFDAY_TZ config/tod.c
    TZ gettimeofday()
    Cannot find -lX11 anywhere at ./myConfig line 310.
    Compilation failed in require at Makefile.PL line 32.
    BEGIN failed--compilation aborted at Makefile.PL line 34.
    Running make test
      Make had some problems, maybe interrupted? Won't test
    Running make install
      Make had some problems, maybe interrupted? Won't install
    
    cpan>

    Perl novice that I am, I’m only guessing that I need a library of X11 stuff somewhere. OK, but I thought Apple already provided it with OSX10.3… or maybe not.

    In other words, what do I do now?

    Many thanks,
    Bill

    #357563
    Bill Eccles
    Participant

    OK, it turns out that:

    1) Even if you install the developer tools, you don’t get the X11 headers.

    2) Even if you install the X11 user package (or something named like that, anyway), you don’t get the X11 headers.

    but

    3) If you install the X11 developer’s package, found on the XTools disc (or via Apple’s download-of-many-parts), you get the magical X11 headers.

    And Tk is happy.

    So! I answered my own question! Ain’t I just the bee’s knees?

    Bill

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.