Loading ...
Sorry, an error occurred while loading the content.

Re: [wn-similarity] installation problems

Expand Messages
  • Ben
    Nicola -- Sorry for the slow response. I m CC:ing this to wn-perl, as it s a WordNet::QueryData problem, not WordNet::Similarity-specific. The invalid paths
    Message 1 of 2 , Jul 13, 2004
    • 0 Attachment
      Nicola --
      Sorry for the slow response. I'm CC:ing this to wn-perl, as it's a WordNet::QueryData problem, not WordNet::Similarity-specific.

      The invalid paths aren't composed of two copies of WNSEARCH(DIR), they're: WNHOME + WNSEARCHDIR. Essentially, the problem is this:
      WNSEARCHDIR should contain the complete path to the 'dict' subdirectory of the WordNet installation. If WNSEARCHDIR is not set, it defaults to WNHOME + dict (where '+' depends on the operating system). If WNHOME is not set, it defaults to something sensible (again, OS-specific). On *nix, this is: /usr/local/WordNet-$version.
      If WNSEARCHDIR _is_ set, the WordNet libraries simply ignore WNHOME. WNHOME is sometimes convenient to have (e.g. PATH=$PATH:$WNHOME/bin) and sometimes WNSEARCHDIR is preferable. (Here at the lab, we run an internal 'grind' every so often, and sometimes we'd like to look at old versions. Users could also use a 2.0 browser to look at 1.6/1.7/1.7.1 data, or even their own 'grind' data, just by switching WNSEARCHDIR.)

      So, what's happening in Nicola's case:
      WNHOME=/usr/local/WordNet-2.0
      WNSEARCHDIR=/usr/local/WordNet-2.0/dict
      The concatenation of WNHOME and WNSEARCHDIR yields the invalid paths shown below in the error messages.

      Hope this helps.
      -- Ben Haskell
      -- WordNet Technical Support Specialist


      Nicola Stokes wrote:
      Hi,
      I was wondering if anyone had any idea why I'm getting the following error.
      I'm trying to install WordNet::Similarity on a linux platform - Suse 9.0.

      This error comes up when i run perl Makefile.PL:

      Loading WordNet::QueryData... Not able to open /usr/local/WordNet-2.0//usr/
      local/WordNet-2.0/dict/noun.exc or /usr/local/WordNet-2.0//usr/local/
      WordNet-2.0/dict\noun.exc: No such file or directory at /usr/lib/perl5/
      site_perl/5.8.1/WordNet/QueryData.pm line 267.

      (I successfully installed WordNet 2.0 and WordNet::QueryData.)
      It seems that the WNSEARCH variable is being concatenated twice in
      QueryData.pm and having looked at the code I can't figure out why this is

      Here's the full output:

      [ snipped ]

    • Jason Rennie
      ... The last version that had that bug was 1.25. Version 1.26 was released almost two years ago (8/6/02). Jason
      Message 2 of 2 , Jul 14, 2004
      • 0 Attachment
        On Tue, Jul 13, 2004 at 06:14:29PM -0400, Ben wrote:
        > Sorry for the slow response. I'm CC:ing this to wn-perl, as it's a
        > WordNet::QueryData problem, not WordNet::Similarity-specific.

        The last version that had that bug was 1.25. Version 1.26 was
        released almost two years ago (8/6/02).

        Jason
      Your message has been successfully submitted and would be delivered to recipients shortly.