Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing WordNet on Mac

Tags:

wordnet

I'm trying to install Wordnet 3.0 on my Mac which is OSX 10.8.

I've configured it, but when I try make,

I get a bunch of errors...

.....
/usr/include/tkDecls.h:1692: error: expected specifier-qualifier-list before ‘XColor’
make[2]: *** [wishwn-tkAppInit.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

and then if I proceed with make install

Making install in doc
Making install in html
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/WordNet-3.0/doc/html" || /Users/ravenyj/Desktop/WordNet-3.0/install-sh -d "/usr/local/WordNet-3.0/doc/html"
mkdir: /usr/local/WordNet-3.0: Permission denied
make[3]: *** [install-htmlDATA] Error 1
make[2]: *** [install-am] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

I have not made any modification to Makefile, and don't know if I should.

Could anyone please help me out on this?

like image 827
CosmicRabbitMediaInc Avatar asked Nov 29 '22 16:11

CosmicRabbitMediaInc


2 Answers

Using brew is orders of magnitude simpler. Just:

brew install wordnet
like image 113
marbel Avatar answered Dec 31 '22 05:12

marbel


The following worked for me to get it to compile:

./configure CFLAGS="-I/usr/X11R6/include -L/usr/X11R6/lib -lX11 -fpermissive" CC=/usr/bin/gcc

then

make
sudo make install

after that it's showing up fine for me in

/usr/local/WordNet-3.0/

I then added WordNet to my $PATH by editing my .bash_profile file, adding the line:

export PATH=/usr/local/WordNet-3.0/bin:$PATH

opening a new Terminal window, I could then type:

$ wn

and see that it's now working fine

like image 24
adam.wulf Avatar answered Dec 31 '22 03:12

adam.wulf