I'm attempting a compile of grass 5.0.2 on RedHat 9. When I run configure, the process decides it's okay to compile with TCL/TK, but then it fails to find tk.h.
tk.h is in /usr/include, permissioned to be readable by all users on my system. tcl.h is also in this directory, and configure has no trouble at all with this file.
I tried commmenting out the check for this file in configure itself -- just to get me past this (essentially I changed the if-then-else to a "always do the then part", to avoid skipping any important logic).
This got me past the include file failure, but then configure fails to determine the Tk version (see below).
Can someone help me get past this? Many thanks in advance!
Allan Metts -- Atlanta
checking whether to use Tcl/Tk... yes
checking for location of Tcl/Tk includes...
checking for tcl.h... yes
checking for tk.h... yes <-- !!! I hacked configure here !!!
checking Tcl version... 8.3
checking Tk version... configure: error: *** Could not determine Tk version.
ametts2@mindspring.com wrote:
I'm attempting a compile of grass 5.0.2 on RedHat 9. When I run
configure, the process decides it's okay to compile with TCL/TK, but
then it fails to find tk.h.
tk.h is in /usr/include, permissioned to be readable by all users on
my system. tcl.h is also in this directory, and configure has no
trouble at all with this file.
The check runs the C preprocessor on a test program which does
"#include <tk.h>"; if the preprocessor generates any messages (whether
warnings or errors), the check fails.
To determine why the check failed, look in the config.log file,
starting with the line:
configure:8133: checking for tk.h
As Tk requires X, any problems with the X headers will usually cause
the tk.h check to fail.
I tried commmenting out the check for this file in configure itself --
just to get me past this (essentially I changed the if-then-else to a
"always do the then part", to avoid skipping any important logic).
This got me past the include file failure, but then configure fails to
determine the Tk version (see below).
If the tk.h check failed, the version check will fail for same
reasons. Again, see config.log.
--
Glynn Clements <glynn.clements@virgin.net>