Installation of WN::QueryData on Ubuntu machine via CPAN

379 views
Skip to first unread message

Markus D.

unread,
Jan 27, 2010, 10:40:42 AM1/27/10
to wn-perl
Hello everybody,

I am having some trouble installing WN::QueryData on my machine.
I installed the WordNet package via the Ubuntu package management,
and, after reading a post from Jason Rennie, I set both $WNSEARCHDIR
and $WNHOME to /usr/share/wordnet

I then tried to install the QueryData module via CPAN:
cpan[1]> install JRENNIE/WordNet-QueryData-1.49.tar.

Unfortunately, I still get the following error message, stating that
WNHOME is not properly set:
-------
CPAN.pm: Going to build J/JR/JRENNIE/WordNet-QueryData-1.49.tar.gz

*** Please set the WNHOME environment variable to the location of your
*** WordNet installation. QueryData.pm will not work otherwise.
*** Alternatively, you can make the installation in the default
*** location, C:\Program Files\WordNet\3.0 on Windows, or /usr/local/
WordNet-3.0 on unix.
Warning: No success on command[/usr/bin/perl Makefile.PL
INSTALLDIRS=site]
JRENNIE/WordNet-QueryData-1.49.tar.gz
/usr/bin/perl Makefile.PL INSTALLDIRS=site -- NOT OK
------

What am I missing here?

My OS is Ubuntu 9.10, WN should be version 3.0, Perl is Version 5.10


Thanks in advance,

Markus

Jason Rennie

unread,
Jan 27, 2010, 10:47:23 AM1/27/10
to wn-...@googlegroups.com
You need to unset WNHOME.  WNHOME should only be set to a dir with a 'dict' subdir, whereas WNSEARCHDIR should be set to the dir containing the data files.

Cheers,

Jason


--
You received this message because you are subscribed to the Google Groups "wn-perl" group.
To post to this group, send email to wn-...@googlegroups.com.
To unsubscribe from this group, send email to wn-perl+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wn-perl?hl=en.




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

Markus Dräger

unread,
Jan 27, 2010, 11:04:06 AM1/27/10
to wn-...@googlegroups.com
Jason,

thanks a lot for your fast reply!

Before starting CPAN, I did an export WNSEARCHDIR=/usr/share/wordnet .
The Make-process now completed successfully.

However, a new problem turned up directly afterwards, when make-test was
executed:

CPAN.pm: Going to build J/JR/JRENNIE/WordNet-QueryData-1.49.tar.gz

Checking if your kit is complete...
Looks good
Writing Makefile for WordNet::QueryData
cp QueryData.pm blib/lib/WordNet/QueryData.pm
Manifying blib/man3/WordNet::QueryData.3pm
JRENNIE/WordNet-QueryData-1.49.tar.gz
/usr/bin/make -- OK
Running make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-Iblib/lib" "-Iblib/arch" test.pl
ok 1
Use of uninitialized value in concatenation (.) or string at
blib/lib/WordNet/QueryData.pm line 357.
Use of uninitialized value in concatenation (.) or string at
blib/lib/WordNet/QueryData.pm line 357.
Use of uninitialized value in concatenation (.) or string at
blib/lib/WordNet/QueryData.pm line 357.
Use of uninitialized value in concatenation (.) or string at
blib/lib/WordNet/QueryData.pm line 357.
Use of uninitialized value in concatenation (.) or string at
blib/lib/WordNet/QueryData.pm line 389.
Couldn't open data file: index.noun at blib/lib/WordNet/QueryData.pm
line 653.


I had a look in the WN directory, and the index.noun file is in fact
there! I am running CPAN with superuser rights, so could it still be a
problem with file permissions?

Markus

> +unsub...@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/wn-perl?hl=en.
>
>
>
>
> --
> Jason Rennie
> Research Scientist, ITA Software
> 617-714-2645
> http://www.itasoftware.com/
>
>
>
> --
> You received this message because you are subscribed to the Google
> Groups "wn-perl" group.
> To post to this group, send email to wn-...@googlegroups.com.
> To unsubscribe from this group, send email to wn-perl

> +unsub...@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages