Planeshifter / node-word2vec

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

npm install error #4

Closed drewbietron closed 9 years ago

drewbietron commented 9 years ago

Tried installing and got this error

distance.c:18:10: fatal error: 'malloc.h' file not found
#include <malloc.h>
         ^
1 error generated.
make: *** [distance] Error 1
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "word2vec"
npm ERR! node v0.12.2
npm ERR! npm  v2.7.4
npm ERR! code ELIFECYCLE

npm ERR! word2vec@0.9.0 postinstall: `make --directory=src`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the word2vec@0.9.0 postinstall script 'make --directory=src'.
npm ERR! This is most likely a problem with the word2vec package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     make --directory=src
npm ERR! You can get their info via:
npm ERR!     npm owner ls word2vec
npm ERR! There is likely additional logging output above.
Planeshifter commented 9 years ago

Could you try installing again using the newest version of the package on npm, v0.9.1, which I just released? Including the build step for the Google word2vec C code in the package caused these issues on Mac operating systems, a situation for which I apologize. I hope to resolve this soon, but as I am using Ubuntu I cannot check whether the problem persists or disappeared by now.

drewbietron commented 9 years ago

That fixed it, thanks! Excited to start playing with this.