Installing Perl/Tk Problem

Posted by matt_thumper on 2010-05-09 05:05

Hi,
I am trying to install Tk-804.028 according to the README.linux that comes with it but I get:

> perl Makefile.PL
/opt/ActivePerl-5.10/bin/perl-static is installed in /opt/ActivePerl-5.10/lib okay
PPM for perl5.010001
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.

Any idea how to resolve this?

TIA
Matt

matt_thumper | Sun, 2010-05-09 10:59

Also when I try to install it as a package I get very similar reults:

Tk-804.028/pTk/mTk/tclGeneric/tclPanic.c
Tk-804.028/pTk/mTk/tclGeneric/tclIndexObj.c
Tk-804.028/pTk/mTk/tclGeneric/regerror.c
Tk-804.028/pTk/mTk/tclGeneric/tclFCmd.c
Tk-804.028/pTk/mTk/tclGeneric/tclThreadAlloc.c
Tk-804.028/pTk/mTk/tclGeneric/tclCompCmds.c
Tk-804.028/pTk/mTk/tclGeneric/tclAlloc.c

CPAN.pm: Going to build S/SR/SREZIC/Tk-804.028.tar.gz

/opt/ActivePerl-5.10/bin/perl-static is installed in /opt/ActivePerl-5.10/lib okay
PPM for perl5.010001
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.
Warning: No success on command[/opt/ActivePerl-5.10/bin/perl-static Makefile.PL INSTALLDIRS=site]
SREZIC/Tk-804.028.tar.gz
/opt/ActivePerl-5.10/bin/perl-static Makefile.PL INSTALLDIRS=site -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
SREZIC/Tk-804.028.tar.gz : writemakefile NO '/opt/ActivePerl-5.10/bin/perl-static Makefile.PL INSTALLDIRS=site' returned status 512

And:
I'm on Red Hat 5.1.19.6

Thanks Again,
Matt

grahams
ActiveState Staff
Thu, 2010-05-13 16:04

Unless you have some special needs, Tk is available via PPM.