cmusphinx / node-pocketsphinx

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

npm install fails with node 7.2 and 8.0 #37

Open 821760408-sp opened 7 years ago

821760408-sp commented 7 years ago

Hi,

I have the latest sphinxbase and pocketsphinx installed from github, also PKG_CONFIG_PATH is set to /usr/local/lib/pkgconfig.

I have cmake of version 3.7.1 and SWIG of Version 3.0.10.

When I tried to do npm install pocketsphinx it gave the following error:

log.txt

Seemed to be a problem with "cmake-js compile" ?

nshmyrev commented 7 years ago

What is your node version?

821760408-sp commented 7 years ago

node version is 7.2.0 npm is 3.10.9

nshmyrev commented 7 years ago

Swig does not support node 7 yet, see for details https://github.com/swig/swig/issues/825

You could try node 5 or, probably, wait till the swig issue is resolved.

nshmyrev commented 7 years ago

Latest PR is at https://github.com/swig/swig/pull/968

highvoltage379 commented 6 years ago

I managed to install node-pocketsphinx with node version 9.0.0 (should work with 7.x and 8.x as well). This pull request https://github.com/swig/swig/pull/968 corrects the bug. Apparently, they don't want to merge with master yet, but it works.

(I had some trouble in finding the actual repo that contains the pull request, here's the link: https://github.com/swig/swig/tree/f08d7a63a92a3ba89d97bdfcc206e1e1c4804c0f)