cmusphinx / node-pocketsphinx

Pocketsphinx bindings for Node.JS
Other
242 stars 47 forks source link

npm install failed - CMake executable is not found #24

Closed taylorlc70 closed 8 years ago

taylorlc70 commented 8 years ago

Hi there! Thanks for developing this great project, but right now I cannot successfully install via npm. I already did a npm install -g cmake-js and npm install -g pocketsphinx failed. Terminal output:

$ npm install -g pocketsphinx

> pocketsphinx@5.0.7 install /usr/local/lib/node_modules/pocketsphinx
> cmake-js compile

info TOOL Using Unix Makefiles generator.
info TOOL Using c++11 compiler standard.
info DIST Downloading distribution files.
http DIST   - http://nodejs.org/dist/v5.4.1/SHASUMS256.txt
http DIST   - http://nodejs.org/dist/v5.4.1/node-v5.4.1-headers.tar.gz
info REP Build has been failed, trying to do a full rebuild.
ERR! OMG CMake executable is not found. Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "pocketsphinx"
npm ERR! node v5.4.1
npm ERR! npm  v3.3.12
npm ERR! code ELIFECYCLE

npm ERR! pocketsphinx@5.0.7 install: `cmake-js compile`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the pocketsphinx@5.0.7 install script 'cmake-js compile'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pocketsphinx package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cmake-js compile
npm ERR! You can get their info via:
npm ERR!     npm owner ls pocketsphinx
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/admin/npm-debug.log

Using MacOS X Yosemite Node v5.4.1 npm v3.3.12

nshmyrev commented 8 years ago

I suggest you to read the whole sentence, not just the first part of it. Read my lips:

Please use your system's package manager to install it, or you can get installers from there: http://cmake.org.

ilyasmez commented 2 years ago

You can install the package manually:

brew install cmake