http://qs1969.pair.com?node_id=1063998

Sandy has asked for the wisdom of the Perl Monks concerning the following question:

I upgraded my Mac OS to 10.9 from 10.8.

Tk is no longer working (I guess - but am not sure - that they replaced perl with a newer version?)

I have X11 installed already, but when I run cpan install Tk I get the following error

Using -L/usr/X11R6/lib to find /usr/X11R6/lib/libX11.6.dylib Cannot find X include files via /usr/X11R6/include Cannot find X include files anywhere. Could not read metadata file. Falling back to other methods to determi +ne prerequisites make: *** No targets specified and no makefile found. Stop.
I do have the file /usr/X11R6/lib/libX11.6.dylib but obviously it can't find it.

So, how do I let cpan know where to find it?

If all else fails, I could go to backup files, but I think this is something that I should know.

By the way, I did search google for an answer, but couldn't find anything recent, and understandable by me.

Thanks,

Sandy

UPDATE: Even though X11 was installed, it needed to be re-installed. Why?... I don't know, but I did, and now I was able to reinstall Tk. Go figure!

Replies are listed 'Best First'.
Re: Re-installing Tk.pm on Mac 10.9
by kcott (Archbishop) on Nov 23, 2013 at 04:45 UTC

    G'day Sandy,

    "I guess - but am not sure - that they replaced perl with a newer version"

    This sounds like you're using and modifying the system Perl. I wrote about this just yesterday: "Re: Perl/Tk and PAR::Packer on OS X". The first half of that post relates to the system Perl issue.

    From your update, it would appear that X11, not Perl, may have been the cause of the problem. Nonetheless, I would still recommend installing your own version of Perl.

    I'm using Mac OS X 10.7.5, so I can't provide any specific information on your old (10.8) or new (10.9) versions.

    -- Ken