Planeshifter / node-word2vec

Node.js interface to the Google word2vec tool.
Apache License 2.0
348 stars 55 forks source link

Make error postinstall #16

Open kolykhalov opened 6 years ago

kolykhalov commented 6 years ago

Hello dev guys! :)

Would appreciate your help with install failure. I got GnuWin32 installed and path is specified in system and user path settings. Still I got this error.

Output (from npm): ``` `C:\Users\kolyk\WebstormProjects\whislabackend>npm install word2vec > word2vec@1.1.1 postinstall C:\Users\kolyk\WebstormProjects\whislabackend\node_modules\word2vec > make --directory=src make: Entering directory `C:/Users/kolyk/WebstormProjects/whislabackend/node_modules/word2vec/src' gcc word2vec.c -o word2vec -lm -pthread -O3 -march=native -Wall -funroll-loops -Wno-unused-result -fno-stack-protector process_begin: CreateProcess(NULL, gcc word2vec.c -o word2vec -lm -pthread -O3 -march=native -Wall -funroll-loops -Wno-unused-result -fno-stack-protector, ...) failed. make (e=2): The system cannot find the file specified. make: *** [word2vec] Error 2 make: Leaving directory `C:/Users/kolyk/WebstormProjects/whislabackend/node_modules/word2vec/src' npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! word2vec@1.1.1 postinstall: `make --directory=src` npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the word2vec@1.1.1 postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\kolyk\AppData\Roaming\npm-cache\_logs\2017-08-20T14_11_30_352Z-debug.log C:\Users\kolyk\WebstormProjects\whislabackend> ```

Any ideas?

Thanks

Planeshifter commented 6 years ago

I never got it to run on Windows, which word2vec does not support as an operating system, unfortunately.

thuy-le-ep commented 6 years ago

You can use bash linux on win 10 to change environment @kolykhalov