cmusphinx / node-pocketsphinx

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

npm install pocketsphinx fails #16

Closed Anuradhad closed 8 years ago

Anuradhad commented 8 years ago

Hello,

pocketsphinx installation gives Error that indicating recipe for target 'Release/obj.target/SphinxBase/wrap_sb.o' failed. Here, I have copied my npm debug log.

Thanks in Advance.

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/nodejs', '/usr/bin/npm', 'install', 'pocketsphinx' ]
2 info using npm@1.4.21
3 info using node@v0.10.25
4 verbose config Skipping project config: /home/anuradha/.npmrc. (matches userconfig)
5 verbose cache add [ 'pocketsphinx', null ]
6 verbose cache add name=undefined spec="pocketsphinx" args=["pocketsphinx",null]
7 verbose parsed url { protocol: null,
7 verbose parsed url   slashes: null,
7 verbose parsed url   auth: null,
7 verbose parsed url   host: null,
7 verbose parsed url   port: null,
7 verbose parsed url   hostname: null,
7 verbose parsed url   hash: null,
7 verbose parsed url   search: null,
7 verbose parsed url   query: null,
7 verbose parsed url   pathname: 'pocketsphinx',
7 verbose parsed url   path: 'pocketsphinx',
7 verbose parsed url   href: 'pocketsphinx' }
8 silly lockFile a075f906-pocketsphinx pocketsphinx
9 verbose lock pocketsphinx /home/anuradha/.npm/a075f906-pocketsphinx.lock
10 silly lockFile a075f906-pocketsphinx pocketsphinx
11 silly lockFile a075f906-pocketsphinx pocketsphinx
12 verbose addNamed [ 'pocketsphinx', '' ]
13 verbose addNamed [ null, '*' ]
14 silly lockFile 2dd57e8a-pocketsphinx pocketsphinx@
15 verbose lock pocketsphinx@ /home/anuradha/.npm/2dd57e8a-pocketsphinx.lock
16 silly addNameRange { name: 'pocketsphinx', range: '*', hasData: false }
17 verbose request where is /pocketsphinx
18 verbose request registry https://registry.npmjs.org/
19 verbose request id 45e2458ac581ef5e
20 verbose url raw /pocketsphinx
21 verbose url resolving [ 'https://registry.npmjs.org/', './pocketsphinx' ]
22 verbose url resolved https://registry.npmjs.org/pocketsphinx
23 verbose request where is https://registry.npmjs.org/pocketsphinx
24 info trying registry request attempt 1 at 23:14:37
25 verbose etag "AID2VZTI23XDS8QF9D76MIC9X"
26 http GET https://registry.npmjs.org/pocketsphinx
27 http 304 https://registry.npmjs.org/pocketsphinx
28 silly registry.get cb [ 304,
28 silly registry.get   { date: 'Thu, 07 Jan 2016 17:44:37 GMT',
28 silly registry.get     via: '1.1 varnish',
28 silly registry.get     'cache-control': 'max-age=300',
28 silly registry.get     etag: '"AID2VZTI23XDS8QF9D76MIC9X"',
28 silly registry.get     age: '158',
28 silly registry.get     connection: 'keep-alive',
28 silly registry.get     'x-served-by': 'cache-sin6926-SIN',
28 silly registry.get     'x-cache': 'HIT',
28 silly registry.get     'x-cache-hits': '1',
28 silly registry.get     'x-timer': 'S1452188677.969680,VS0,VE8',
28 silly registry.get     vary: 'Accept' } ]
29 verbose etag https://registry.npmjs.org/pocketsphinx from cache
30 silly addNameRange number 2 { name: 'pocketsphinx', range: '*', hasData: true }
31 silly addNameRange versions [ 'pocketsphinx', [ '1.0.0', '5.0.1', '5.0.2', '5.0.3' ] ]
32 verbose addNamed [ 'pocketsphinx', '5.0.3' ]
33 verbose addNamed [ '5.0.3', '5.0.3' ]
34 silly lockFile 1d3f2c9d-pocketsphinx-5-0-3 pocketsphinx@5.0.3
35 verbose lock pocketsphinx@5.0.3 /home/anuradha/.npm/1d3f2c9d-pocketsphinx-5-0-3.lock
36 silly lockFile 1d3f2c9d-pocketsphinx-5-0-3 pocketsphinx@5.0.3
37 silly lockFile 1d3f2c9d-pocketsphinx-5-0-3 pocketsphinx@5.0.3
38 silly lockFile 2dd57e8a-pocketsphinx pocketsphinx@
39 silly lockFile 2dd57e8a-pocketsphinx pocketsphinx@
40 silly resolved [ { name: 'pocketsphinx',
40 silly resolved     version: '5.0.3',
40 silly resolved     description: 'Node binding for continuous voice recoginition through pocketsphinx.',
40 silly resolved     repository:
40 silly resolved      { type: 'git',
40 silly resolved        url: 'git://github.com/cmusphinx/node-pocketsphinx.git' },
40 silly resolved     main: 'index.js',
40 silly resolved     scripts:
40 silly resolved      { test: 'echo "Error: no test specified" && exit 1',
40 silly resolved        install: 'node-gyp -v rebuild' },
40 silly resolved     keywords:
40 silly resolved      [ 'pocketsphinx',
40 silly resolved        'cmusphinx',
40 silly resolved        'speech',
40 silly resolved        'speech recognition',
40 silly resolved        'voice' ],
40 silly resolved     author: { name: 'Alpha Cephei Inc.' },
40 silly resolved     license: 'BSD-2-Clause',
40 silly resolved     gypfile: true,
40 silly resolved     gitHead: '55ae3bc1e5423dfc3992b8400ed515c4c55df68f',
40 silly resolved     bugs: { url: 'https://github.com/cmusphinx/node-pocketsphinx/issues' },
40 silly resolved     homepage: 'https://github.com/cmusphinx/node-pocketsphinx#readme',
40 silly resolved     _id: 'pocketsphinx@5.0.3',
40 silly resolved     _shasum: 'ad033183ffb1637b019826e9b3bb296cb39fcc5d',
40 silly resolved     _from: 'pocketsphinx@',
40 silly resolved     _npmVersion: '3.3.12',
40 silly resolved     _nodeVersion: '5.2.0',
40 silly resolved     _npmUser: { name: 'nshmyrev', email: 'nshmyrev@gmail.com' },
40 silly resolved     dist:
40 silly resolved      { shasum: 'ad033183ffb1637b019826e9b3bb296cb39fcc5d',
40 silly resolved        tarball: 'http://registry.npmjs.org/pocketsphinx/-/pocketsphinx-5.0.3.tgz' },
40 silly resolved     maintainers: [ [Object], [Object] ],
40 silly resolved     directories: {},
40 silly resolved     _resolved: 'https://registry.npmjs.org/pocketsphinx/-/pocketsphinx-5.0.3.tgz',
40 silly resolved     readme: 'ERROR: No README data found!' } ]
41 info install pocketsphinx@5.0.3 into /home/anuradha
42 info installOne pocketsphinx@5.0.3
43 verbose node_modules/pocketsphinx unbuild
44 verbose tar unpack /home/anuradha/.npm/pocketsphinx/5.0.3/package.tgz
45 silly lockFile 31f86d19-uradha-node-modules-pocketsphinx tar:///home/anuradha/node_modules/pocketsphinx
46 verbose lock tar:///home/anuradha/node_modules/pocketsphinx /home/anuradha/.npm/31f86d19-uradha-node-modules-pocketsphinx.lock
47 silly lockFile f97b3131-m-pocketsphinx-5-0-3-package-tgz tar:///home/anuradha/.npm/pocketsphinx/5.0.3/package.tgz
48 verbose lock tar:///home/anuradha/.npm/pocketsphinx/5.0.3/package.tgz /home/anuradha/.npm/f97b3131-m-pocketsphinx-5-0-3-package-tgz.lock
49 silly gunzTarPerm modes [ '775', '664' ]
50 silly gunzTarPerm extractEntry package.json
51 silly gunzTarPerm extractEntry .npmignore
52 silly gunzTarPerm extractEntry README.md
53 silly gunzTarPerm extractEntry LICENSE
54 silly gunzTarPerm extractEntry index.js
55 silly gunzTarPerm extractEntry binding.gyp
56 silly gunzTarPerm extractEntry demo/test.js
57 silly gunzTarPerm extractEntry wrap_ps.cpp
58 silly gunzTarPerm extractEntry wrap_sb.cpp
59 silly lockFile 31f86d19-uradha-node-modules-pocketsphinx tar:///home/anuradha/node_modules/pocketsphinx
60 silly lockFile 31f86d19-uradha-node-modules-pocketsphinx tar:///home/anuradha/node_modules/pocketsphinx
61 silly lockFile f97b3131-m-pocketsphinx-5-0-3-package-tgz tar:///home/anuradha/.npm/pocketsphinx/5.0.3/package.tgz
62 silly lockFile f97b3131-m-pocketsphinx-5-0-3-package-tgz tar:///home/anuradha/.npm/pocketsphinx/5.0.3/package.tgz
63 info preinstall pocketsphinx@5.0.3
64 verbose readDependencies using package.json deps
65 verbose readDependencies using package.json deps
66 silly resolved []
67 verbose about to build /home/anuradha/node_modules/pocketsphinx
68 info build /home/anuradha/node_modules/pocketsphinx
69 verbose linkStuff [ false, false, false, '/home/anuradha/node_modules' ]
70 info linkStuff pocketsphinx@5.0.3
71 verbose linkBins pocketsphinx@5.0.3
72 verbose linkMans pocketsphinx@5.0.3
73 verbose rebuildBundles pocketsphinx@5.0.3
74 info install pocketsphinx@5.0.3
75 verbose unsafe-perm in lifecycle true
76 info pocketsphinx@5.0.3 Failed to exec install script
77 verbose node_modules/pocketsphinx unbuild
78 warn This failure might be due to the use of legacy binary "node"
79 warn For further explanations, please read
/usr/share/doc/nodejs/README.Debian
80 info preuninstall pocketsphinx@5.0.3
81 info uninstall pocketsphinx@5.0.3
82 verbose true,/home/anuradha/node_modules,/home/anuradha/node_modules unbuild pocketsphinx@5.0.3
83 info postuninstall pocketsphinx@5.0.3
84 error pocketsphinx@5.0.3 install: `node-gyp -v rebuild`
84 error Exit status 1
85 error Failed at the pocketsphinx@5.0.3 install script.
85 error This is most likely a problem with the pocketsphinx package,
85 error not with npm itself.
85 error Tell the author that this fails on your system:
85 error     node-gyp -v rebuild
85 error You can get their info via:
85 error     npm owner ls pocketsphinx
85 error There is likely additional logging output above.
86 error System Linux 3.19.0-31-generic
87 error command "/usr/bin/nodejs" "/usr/bin/npm" "install" "pocketsphinx"
88 error cwd /home/anuradha/WORK/RESEARCH/new
89 error node -v v0.10.25
90 error npm -v 1.4.21
91 error code ELIFECYCLE
92 verbose exit [ 1, true ]
nshmyrev commented 8 years ago

You need to provide build log

Anuradhad commented 8 years ago

node-gyp.docx

nshmyrev commented 8 years ago

You need to update node, we support node starting from 4.2, you have older version 0.10.

Anuradhad commented 8 years ago

Thanks a lot for quick reply. :-) I upgraded node to version v5.4.0. That installed pocketsphinx without any error. Now when I'm running sample demo, I get TypeError: PocketSphinx is not a function I am grateful if you can give me a hint to fix this.

nshmyrev commented 8 years ago

What code do you run exactly?