'Cannot find X include files anywhere'

Discussion in 'Mac Programming' started by blackbrother, Aug 12, 2012.

  1. blackbrother macrumors newbie

    Aug 12, 2012
    I cannot install Tk module for Perl due to following reason:
    'Using -L/usr/X11R6/lib to find /usr/X11R6/lib/libX11.6.2.dylib
    Cannot find X include files via /usr/X11R6/include
    Cannot find X include files anywhere'

    I am running OS X 10.4 and I have installed xcode from the installation DVD which same with the macbook.
    I have made all files and folders visible, therefore I can see that there is /usr/X11R6/lib/libX11.6.2.dylib.

    What am I doing wrong?
    Please help.
  2. cqexbesd macrumors regular

    Jun 4, 2009
    I don't know where the header files were installed under 10.4 but try /usr/X11/include/ or /usr/include/. If you search for X.h (which will be in a directory called X11) you can find where the header files are on your installation.
  3. blackbrother thread starter macrumors newbie

    Aug 12, 2012
    thank you.
    I found X.h in /Developer/SDKs/MacOS10.4u.sdk/usr/X11R6/include/X11.

    and now? how can i tell the Tk installation to look for the include files in this folder?
    why can these files not be found? apparently the Tk installation looks everywhere, as it says 'Cannot find X include files anywhere'.

    What files exactly is Tk looking for?
  4. Oligarch macrumors newbie

    Nov 10, 2008
    You need to install X11 as part of the OS, not the developer tools. If I remember well, it was an expert installation option on the 10.4 Tiger DVD, and can be installed separately without requiring a complete system install. The usual precautions apply, though (i.e., backing up beforehand).

    On my 10.4 installation with X11 installed this way, I can see /usr/X11R6/lib and /usr/X11R6/include. The directories mentioned by the unpronounceable cqexbesd are symbolic links to the corresponding directories in /usr/X11R6.

    With these directories in place, Perl's TK module should install smoothly.

Share This Page