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

Hi Good Monks

I am stumbling on the install of the Tk module.

I downloaded it from CPAN, unzipped and tar. The Makefile gave me the following results:

/usr/bin/perl is installed in /usr/lib/perl/5.8 okay PPM for perl5.008008 Test Compiling config/perlrx.c Test Compiling config/pmop.c Test Compiling config/pregcomp2.c 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 369. Compilation failed in require at Makefile.PL line 37. BEGIN failed--compilation aborted at Makefile.PL line 39.

I am not sure where to go from here ???

Running Perl 5.8.8 under Linux Ubuntu 7.10...

Thanks for the help !

Life is tough, it's tougher when you are dumb...

jfl

Replies are listed 'Best First'.
Re: Problem installing Tk
by almut (Canon) on Mar 11, 2008 at 18:32 UTC
    Cannot find X include files anywhere...

    You probably need to install the libx11-dev package (*-dev = development), which provides the required include files like Xlib.h, etc.