Operating System - Linux
1830241 Members
2851 Online
109999 Solutions
New Discussion

Re: Errors compiling PerlTk

 
Gary Cooper_1
Esteemed Contributor

Errors compiling PerlTk

Hi Guys,

When I try to compile perltk, I get the following errors:

# /usr/local/bin/perl Makefile.PL X11INC=/usr/include
/usr/local/bin/perl is installed in /usr/local/lib/perl5/5.8.7/PA-RISC2.0 okay
PPM for perl5.008007
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/X11R6 to find /usr/lib/X11R6/libX11.3
Cannot find X include files via /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.
#

Ok, so I can see that it's looking for some X include files, but I don't know what these files are called and where they can be found. I know that I can use the X11=, X11INC= and X11LIB= command line switches, but I don't know what values to give them.

Any help would be greatly appreciated.

Thanks,

Gary
3 REPLIES 3
Steven Schweda
Honored Contributor

Re: Errors compiling PerlTk

I know nothing, but the header files here
seem to be in "/usr/include/X11R6/X11", so
I'd try "X11INC=/usr/include/X11R6/X11", or
variations on that.

Wasn't it clever enough to try that itself
when you didn't specify any "X11INC=xxx"?
Gary Cooper_1
Esteemed Contributor

Re: Errors compiling PerlTk

Hi Steven,

Under /usr/include, I didn't have a /usr/include/X11R6 directory. I only had a /usr/include/X11 directory and all that had in it is a directory called bitmaps.

Doing a bit of digging and it would appear that the /usr/include/X11R6 directory is part of the HP-UX Developers Toolkit which I've now installed. The "Cannot find X include files" error and now been substituted by another error which I'm investigating at the moment.

I'll get back when I've got more to report.

Regards,

Gary
Gary Cooper_1
Esteemed Contributor

Re: Errors compiling PerlTk

Boy, this is like pulling teeth!!!

I'm inching forward, but am finding lots of errors - include files missing, include files in the wrong place, calls to routines with different numbers of parameters... etc., etc.

I can't understand these people who rave on about Open Source!

Cheers,

Gary