Search code examples
windowsperlperl-module

Installing Wordnet module perl in Windows 10


i used the command

cpanm WordNet::Similarity

the first time it generate error for installing the dependencies wiht the package

WordNet::QueryData and the problem seem to be described byt this error message

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

i donwloaded the last version for windows the version 2.1 i instaled it in C:\Program Files (x86)\WordNet\2.1

the first problem is that they haven't the same name so impossible that the instalation find this location

and the proposed solution is to set

WNHOME environment variable (specifying the WordNet installation directory).

how to set the WNHOME? because i set the PATH in the environnment variable to the location and i have the same problem


Solution

  • it is very simple, it is not the the PATH, but you must create new variable one WNHOME (for example C:\Program Files\WordNet\2.1)it is for the folder of wordnet (WN)) and another variable WNSEARCHDIR for the dictionnary ex: C:\Program Files\WordNet\2.1\dict