Installation problem for linux

60 views
Skip to first unread message

ivy

unread,
Mar 31, 2009, 5:24:32 AM3/31/09
to wn-perl
Hi,
I'm trying to install WordNet:QueryData on RedHat Linux but it fails
to make test. It goes like this:


[root@localhost WordNet-QueryData-1.45]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
v2.0: 1..54
v2.1: 1..54
ok 1
Loading index files. This may take a while...
Not able to open :/usr/local/WordNet-2.0/dict/noun.exc or :/usr/local/
WordNet-2.0\dict\noun.exc: 没有那个文件或目录 at blib/lib/WordNet/QueryData.pm
line 318.
make: *** [test_dynamic] Error 2

by the way, I have installed WordNet2.1, and the version of
WordNet:QueryData is 1.45. I am appreciate someone could address this
problem.

Jason Rennie

unread,
Mar 31, 2009, 6:58:24 AM3/31/09
to wn-...@googlegroups.com
You need to set WNHOME or WNSEARCHDIR:

http://search.cpan.org/~jrennie/WordNet-QueryData-1.48/QueryData.pm#LOCATING_THE_WORDNET_DATABASE

If you're using a bash-like shell, you should do something like:

export WNHOME=/path/to/WordNet-2.1

Jason

2009/3/31 ivy <jinha...@163.com>



--
Jason Rennie
Research Scientist, ITA Software
http://www.itasoftware.com/

ivy

unread,
Mar 31, 2009, 7:50:55 AM3/31/09
to wn-perl
Actually,I have set WNHOME and WNSEARCHDIR environment variables:


[root@localhost WordNet-QueryData-1.45]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/
X11R6/bin:/usr
/local/WordNet-2.1/bin:/root/bin
[root@localhost WordNet-QueryData-1.45]# echo $WNHOME
:/usr/local/WordNet-2.1
[root@localhost WordNet-QueryData-1.45]# echo $WNSEARCHDIR
:/usr/local/WordNet-2.1/dict
[root@localhost WordNet-QueryData-1.45]# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
v2.0: 1..54
v2.1: 1..54
ok 1
Loading index files. This may take a while...
Not able to open :/usr/local/WordNet-2.1/dict/noun.exc or :/usr/local/
WordNet-2.
1/dict\noun.exc: 没有那个文件或目录 at blib/lib/WordNet/QueryData.pm line 318.
make: *** [test_dynamic] Error 2


Jason Rennie

unread,
Mar 31, 2009, 9:48:20 AM3/31/09
to wn-...@googlegroups.com
Get rid of the leading colon.

Jason

2009/3/31 ivy <jinha...@163.com>

Greg Matheson

unread,
Mar 31, 2009, 8:39:24 AM3/31/09
to wn-...@googlegroups.com
On Tue, 31 Mar 2009, ivy wrote:


> Actually,I have set WNHOME and WNSEARCHDIR environment variables:


> [root@localhost WordNet-QueryData-1.45]# echo $PATH
> /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/
> X11R6/bin:/usr
> /local/WordNet-2.1/bin:/root/bin
> [root@localhost WordNet-QueryData-1.45]# echo $WNHOME
> :/usr/local/WordNet-2.1
> [root@localhost WordNet-QueryData-1.45]# echo $WNSEARCHDIR
> :/usr/local/WordNet-2.1/dict
> [root@localhost WordNet-QueryData-1.45]# make test
> PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
> v2.0: 1..54

There 's no colon at the start of thos paths.

ivy

unread,
Apr 3, 2009, 1:20:00 AM4/3/09
to wn-perl
Thanks to Jason and Greg, I have figured out it.You really taught me a
lot!
Reply all
Reply to author
Forward
0 new messages