Install tcl/tk on CentOS 7 problem

Issues related to applications and software problems
Post Reply
marlonmin
Posts: 16
Joined: 2013/01/11 09:22:49

Install tcl/tk on CentOS 7 problem

Post by marlonmin » 2014/11/04 06:46:38

Hello,

I installed tcl and tk, and this is where they are:

# whereis tcl
tcl: /usr/lib64/tcl8.5 /usr/local/lib/tcl8.6 /usr/include/tcl.h /usr/share/tcl8.5

[root@localhost Documents]# whereis tk
tk: /usr/lib64/tk8.5 /usr/include/tk.h /usr/share/tk8.5 /usr/share/man/mann/tk.n.gz

Then I want to install a library WordNet, using ./configure, I received this error message:

In file included from tkAppInit.c:16:0:
/usr/include/tk.h:21:3: error: #error Tk 8.5 must be compiled with tcl.h from Tcl 8.5
# error Tk 8.5 must be compiled with tcl.h from Tcl 8.5

Does this mean tcl/tk isn't installed properly? I used yum install both tcl and tk.

Any idea of what's this message about? Thanks.

aks
Posts: 3008
Joined: 2014/09/20 11:22:14

Re: Install tcl/tk on CentOS 7 problem

Post by aks » 2014/11/04 16:53:44

How did you install TCL and TK?
The error indicates that you're mixing Tk 8.5 with an old TCL version. Do you have more than one TCL installation (especially the development (i.e.: header) files)?

marlonmin
Posts: 16
Joined: 2013/01/11 09:22:49

Re: Install tcl/tk on CentOS 7 problem

Post by marlonmin » 2014/11/05 04:47:50

First, I installed tcl/tk through:

yum install tcl
yum intstall tcl-devel

to install:
tcl-8.5.13-4.el7.x86_64
tcl-devel-8.5.13-4.el7.x86_64

Then:
yum install tk
yum install tk-devel
to install:
tk-8.5.13-4.el7.x86_64
tk-devel-8.5.13-4.el7.x86_64

I also downloaded tcl/tk 8.6 from here: http://sourceforge.net/projects/tcl/files/Tcl/8.6.3/ and compiled the source and installed correctly.
With "whereis tcl", I got:
/usr/lib64/tcl8.5 /usr/local/lib/tcl8.6 /usr/include/tcl.h /usr/share/tcl8.5

I think the tcl/tk 8.5 is the correct version installed. /usr/local/lib/tcl8.6 is the only directory to hold 8.6 version. But why doesn't it in /usr/lib64?

With both installed, I got the above error messages. Should I remove tcl8.6?

I use "yum remove tcl", it only removed 8.5 version, not 8.6.

What might be helpful? Thanks.

aks
Posts: 3008
Joined: 2014/09/20 11:22:14

Re: Install tcl/tk on CentOS 7 problem

Post by aks » 2014/11/05 17:21:20

Yeah you're compilation compiled against the (existing - installed by yum) TCL and/or TK.

Best to remove the YUM versions and then download and compile by hand (which means you don't get support for that anymore).

Post Reply

Return to “CentOS 7 - Software Support”