PDA

View Full Version : Has anyone successfully installed Wordnet?



Albretch
03-09-2017, 11:08 PM
http://wordnet.princeton.edu/wordnet/download/current-version/#nix

make doesn't work due to problems with Tcl configuration while running configure



$ time ( ./configure --prefix="${_PRFX}" --exec-prefix="${_PRFX_ARCH}" ) > "configure_${_LOG_SFX}" 2>&1


$ tail -n 10 "configure_${_LOG_SFX}"
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking for Tcl configuration... configure: WARNING: Can't find Tcl configuration definitions


real 0m21.087s
user 0m0.790s
sys 0m0.390s


$ time sudo find / -type f -name "tclConfigure.sh"
find: ‘/run/user/1000/gvfs’: Permission denied


real 2m39.346s
user 0m3.803s
sys 0m9.400s


$ time sudo find / -type f -name "tkConfig.sh"
find: ‘/run/user/1000/gvfs’: Permission denied


real 0m21.570s
user 0m3.513s
sys 0m8.487s


$ sudo apt-get install tcl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package tcl-dev


$ sudo apt-get install tk-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package tk-dev

Albretch
03-09-2017, 11:48 PM
Also, I see two Makefile files in there but with extensions



$ ls -l Mak*
-rw-r--r-- 1 knoppix knoppix 114 Dec 18 2006 Makefile.am
-rw-r--r-- 1 knoppix knoppix 18253 Jan 20 2007 Makefile.in

klaus2008
03-13-2017, 11:10 PM
Hello Albretch.

I would suggest that you try the following. Since you did not tell your Knoppix version tcl and tk versions may differ.

sudo apt-get update
sudo apt-get -t testing install tcl8.6-dev tk8.6-dev
./configure --with-tk=/usr/lib/i386-linux-gnu/tk8.6 --with-tcl=/usr/lib/i386-linux-gnu/tcl8.6
Read http://askubuntu.com/questions/372480/tcl-error-while-installing-wordnet (last answer)

chmod u+w src/stubs.c
Edit src/stubs.c as described on the page mentioned.
Run "make" and "sudo make install".