Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing WordNet on Linux (Ubuntu trusty)

I am trying to install WordNet-3.0 on Ubuntu trusty.

When I ran configure script, I got:

checking for Tcl configuration... configure: WARNING: Can't find Tcl 
configuration definitions  

It's a warning, but still, configuration stopped without creating makefiles.

So I downloaded and installed tcl8.6.1, then ran the configure script again, but I got:

checking for Tcl configuration... found /usr/local/lib/tclConfig.sh
checking for Tk configuration... configure: WARNING: Can't find Tk 
configuration definitions  

So I downloaded and installed tk8.6.1, then ran the configure script again, but the warning message persisted.

I found tkConfig.sh in ~/Downloads/tk8.6.1/unix/, so I copied it to /usr/local/lib, ran the script again, but I got:

checking for Tcl configuration... found /usr/local/lib/tclConfig.sh
checking for Tk configuration... found /usr/local/lib/tkConfig.sh
checking for existence of /usr/local/lib/tclConfig.sh... loading
checking for existence of /usr/local/lib/tkConfig.sh... loading
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating dict/Makefile
config.status: creating doc/Makefile
config.status: creating doc/html/Makefile
config.status: creating doc/man/Makefile
config.status: creating doc/pdf/Makefile
config.status: creating doc/ps/Makefile
config.status: creating include/Makefile
config.status: error: cannot find input file: `include/tk/Makefile.in'  

What shall I do? The configure script is a daunting 5755 lines long, I dare not tinker with it...

like image 875
Alexandre Holden Daly Avatar asked Jan 11 '23 07:01

Alexandre Holden Daly


2 Answers

Was there a reason you tried to install tcl/tk from source? My suggestion would be to delete the manually installed tk and tcl packages (hunt under /usr/local/bin, /usr/local/lib and /usr/local/include), then use the Ubuntu package manager to install "tk": http://packages.ubuntu.com/trusty/tk

"tk" has a dependency on "tcl", so it will install that automatically for you, as well as any other dependencies you need.

Then if that still fails, one idea is to install "tk-dev" (which has a dependency on tcl-dev). The "-dev" versions of packages contain all the headers, makefiles, etc, etc.

like image 180
Darren Cook Avatar answered Jan 13 '23 20:01

Darren Cook


I just had the same problem. To solve it:

sudo apt-get install tk-dev
like image 42
Nitrosax Avatar answered Jan 13 '23 21:01

Nitrosax