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
--
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.
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
> 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