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

Hi,

I am trying to install Tk-804.027 under openSUSE 10.3 with

perl -MCPAN -e shell

as written in the INSTALL file.

I get as far as shown in the following list

============ ... ... CPAN.pm: Going to build N/NI/NI-S/Tk-804.027.tar.gz /usr/bin/perl is installed in /usr/lib/perl5/5.8.8/i586-linux-thread-m +ulti okay PPM for perl5.008008 Test Compiling config/signedchar.c Test Compile/Run config/unsigned.c Test Compiling config/Ksprintf.c Test Compiling -DSPRINTF_RETURN_CHAR config/Ksprintf.c Test Compiling config/tod.c Test Compiling -DTIMEOFDAY_TZ config/tod.c Test Compiling -DTIMEOFDAY_NO_TZ config/tod.c Test Compiling -DTIMEOFDAY_DOTS config/tod.c Problem gettimeofday() Using -L/usr/lib to find /usr/lib/libX11.so.6.2.0 Cannot find X include files via /usr/include Cannot find X include files anywhere at ./myConfig line 332. Compilation failed in require at Makefile.PL line 36. BEGIN failed--compilation aborted at Makefile.PL line 38. =========

What is the reason for the error?
Thank you for any hint.

K. Jantzen

Replies are listed 'Best First'.
Re: Installing Tk-804.027 under openSUSE 10.3
by Corion (Patriarch) on Dec 30, 2007 at 12:10 UTC

    The Makefile.PL cannot find the include files for X:

    Cannot find X include files via /usr/include

    That means you need to install the include files for X. Most of the time, these live as xlib-dev or some other package of a comparable name - you will need to instruct yast (or RPM?) to install these before you can proceed.

Re: Installing Tk-804.027 under openSUSE 10.3
by eserte (Deacon) on Dec 30, 2007 at 13:27 UTC
    Also, you should try Tk-804.028.
      I tried Tk-...028 but got a compilation error
      strdup.c:3: error: expected identifier or '(' before '__extension__'; strdup.c:5: error: expected identifier or '(' before '{' token make[1]: *** [strdup.o] Error 1
      Tk- ...027 seems to work.

      Thank you.

      K. Jantzen

        Not good. Can you try to re-run Makefile.PL with verbosity turned on: perl Makefile.PL VERBOSE=1 and send me the complete log? Best to submit the log to the Tk queue in rt.