You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Node-gyp rebuild fails with make giving an exit code 2 on Elementary OS Luna.
I kinda feel like I am missing something obvious. Any help would be appreciated.
Below is the terminal output, the npm-debug.log file, and system information. Let me know if you need anything else.
Terminal
onfire@Elisha:~/Development/AudioServer$ npm install pcm-utils
npm WARN package.json [email protected] No repository field.
npm http GET https://registry.npmjs.org/pcm-utils
npm http 304 https://registry.npmjs.org/pcm-utils
> [email protected] install /home/onfire/Development/AudioServer/node_modules/pcm-utils
> node-gyp rebuild
make: Entering directory `/home/onfire/Development/AudioServer/node_modules/pcm-utils/build'
CXX(target) Release/obj.target/binding/binding.o
In file included from ../binding.cc:2:0:
../mixer.h: In constructor ‘pcmutils::Mixer::MixBaton::MixBaton(pcmutils::Mixer*)’:
../mixer.h:67:65: error: ‘malloc’ was not declared in this scope
../mixer.h: In destructor ‘virtual pcmutils::Mixer::MixBaton::~MixBaton()’:
../mixer.h:73:23: error: ‘free’ was not declared in this scope
In file included from ../binding.cc:3:0:
../unzipper.h: In constructor ‘pcmutils::Unzipper::UnzipBaton::UnzipBaton(pcmutils::Unzipper*, v8::Handle<v8::Function>, v8::Handle<v8::Object>)’:
../unzipper.h:65:65: error: ‘malloc’ was not declared in this scope
../unzipper.h: In destructor ‘virtual pcmutils::Unzipper::UnzipBaton::~UnzipBaton()’:
../unzipper.h:79:23: error: ‘free’ was not declared in this scope
In file included from ../binding.cc:4:0:
../zipper.h: In destructor ‘virtual pcmutils::Zipper::~Zipper()’:
../zipper.h:33:36: error: ‘free’ was not declared in this scope
../zipper.h: In constructor ‘pcmutils::Zipper::ZipBaton::ZipBaton(pcmutils::Zipper*)’:
../zipper.h:69:65: error: ‘malloc’ was not declared in this scope
../zipper.h: In destructor ‘virtual pcmutils::Zipper::ZipBaton::~ZipBaton()’:
../zipper.h:75:23: error: ‘free’ was not declared in this scope
In file included from ../binding.cc:5:0:
../formatter.h: In destructor ‘virtual pcmutils::Formatter::~Formatter()’:
../formatter.h:32:36: error: ‘free’ was not declared in this scope
make: *** [Release/obj.target/binding/binding.o] Error 1
make: Leaving directory `/home/onfire/Development/AudioServer/node_modules/pcm-utils/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.2.0-56-generic-pae
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/onfire/Development/AudioServer/node_modules/pcm-utils
gyp ERR! node -v v0.10.22
gyp ERR! node-gyp -v v0.11.0
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the pcm-utils package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls pcm-utils
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.2.0-56-generic-pae
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "pcm-utils"
npm ERR! cwd /home/onfire/Development/AudioServer
npm ERR! node -v v0.10.22
npm ERR! npm -v 1.3.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/onfire/Development/AudioServer/npm-debug.log
npm ERR! not ok code 0
npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', 'pcm-utils' ]
2 info using [email protected]
3 info using [email protected]
4 warn package.json [email protected] No repository field.
5 verbose cache add [ 'pcm-utils', null ]
6 verbose cache add name=undefined spec="pcm-utils" args=["pcm-utils",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: 'pcm-utils',
7 verbose parsed url path: 'pcm-utils',
7 verbose parsed url href: 'pcm-utils' }
8 silly lockFile 517cc4f7-pcm-utils pcm-utils
9 verbose lock pcm-utils /home/onfire/.npm/517cc4f7-pcm-utils.lock
10 silly lockFile 517cc4f7-pcm-utils pcm-utils
11 silly lockFile 517cc4f7-pcm-utils pcm-utils
12 verbose addNamed [ 'pcm-utils', '' ]
13 verbose addNamed [ null, '*' ]
14 silly lockFile 84bfa8cb-pcm-utils pcm-utils@
15 verbose lock pcm-utils@ /home/onfire/.npm/84bfa8cb-pcm-utils.lock
16 silly addNameRange { name: 'pcm-utils', range: '*', hasData: false }
17 verbose url raw pcm-utils
18 verbose url resolving [ 'https://registry.npmjs.org/', './pcm-utils' ]
19 verbose url resolved https://registry.npmjs.org/pcm-utils
20 info trying registry request attempt 1 at 12:25:13
21 verbose etag "9MWJSAPSZHL6GPKXUCEPMDBLY"
22 http GET https://registry.npmjs.org/pcm-utils
23 http 304 https://registry.npmjs.org/pcm-utils
24 silly registry.get cb [ 304,
24 silly registry.get { server: 'CouchDB/1.5.0 (Erlang OTP/R15B03)',
24 silly registry.get etag: '"9MWJSAPSZHL6GPKXUCEPMDBLY"',
24 silly registry.get date: 'Fri, 13 Dec 2013 18:25:14 GMT',
24 silly registry.get 'content-length': '0' } ]
25 verbose etag pcm-utils from cache
26 silly addNameRange number 2 { name: 'pcm-utils', range: '*', hasData: true }
27 silly addNameRange versions [ 'pcm-utils', [ '0.0.1', '0.0.2' ] ]
28 verbose addNamed [ 'pcm-utils', '0.0.2' ]
29 verbose addNamed [ '0.0.2', '0.0.2' ]
30 silly lockFile a3cc8484-pcm-utils-0-0-2 [email protected]
31 verbose lock [email protected] /home/onfire/.npm/a3cc8484-pcm-utils-0-0-2.lock
32 silly lockFile a3cc8484-pcm-utils-0-0-2 [email protected]
33 silly lockFile a3cc8484-pcm-utils-0-0-2 [email protected]
34 silly lockFile 84bfa8cb-pcm-utils pcm-utils@
35 silly lockFile 84bfa8cb-pcm-utils pcm-utils@
36 silly resolved [ { name: 'pcm-utils',
36 silly resolved description: 'PCM audio utilities for Node.js',
36 silly resolved keywords: [ 'audio', 'sound', 'pcm' ],
36 silly resolved version: '0.0.2',
36 silly resolved author:
36 silly resolved { name: 'Greg Thornton',
36 silly resolved email: '[email protected]',
36 silly resolved url: 'http://xdissent.com' },
36 silly resolved license: 'MIT',
36 silly resolved homepage: 'https://github.com/xdissent/node-pcm-utils',
36 silly resolved main: './lib/index.js',
36 silly resolved repository:
36 silly resolved { type: 'git',
36 silly resolved url: 'https://github.com/xdissent/node-pcm-utils.git' },
36 silly resolved bugs: { url: 'https://github.com/xdissent/node-pcm-utils/issues' },
36 silly resolved dependencies: {},
36 silly resolved devDependencies: { 'coffee-script': '>= 1.6.2' },
36 silly resolved scripts:
36 silly resolved { prepublish: 'coffee -cbo lib src',
36 silly resolved install: 'node-gyp rebuild' },
36 silly resolved gypfile: true,
36 silly resolved readme: 'node-pcm-utils\n==============\n\n[![NPM version](https://badge.fury.io/js/pcm-utils.png)](http://badge.fury.io/js/pcm-utils)\n\nPCM audio utilities for Node.js\n\n\nFeatures\n--------\n\n* **Interleaving/deinterleaving** - Unzip interleaved PCM data into separate channel streams and vice-versa.\n\n* **Mixing** - Mix 2 or more PCM channels into one.\n\n* **Format conversion** - Transform a stream from one PCM format to another (ie. float to int).\n\n* **Evented** - Doesn\'t block the main loop, thanks to [`uv_queue_work`](http://nikhilm.github.io/uvbook/threads.html#libuv-work-queue).\n\n* **Streams2 compatible** - Everything\'s just a pipeable [stream](http://nodejs.org/api/stream.html).\n\nNote: For sample rate conversion, check out [resampler](https://npmjs.org/package/resampler). For playback, try [speaker](https://npmjs.org/package/speaker) or [alsa](https://npmjs.org/package/alsa) (which also records).\n\n\nInstallation\n------------\n\nInstall with npm:\n\n```sh\n$ npm install pcm-utils\n```\n\nor via git:\n\n```sh\n$ npm install git+https://github.com/xdissent/node-pcm-utils.git\n```\n\n\nUsage\n-----\n\n```js\nvar pcmUtils = require(\'pcm-utils\'),\n\n // The following variables represent the defaults for all constructors.\n channels = 2, // 2 channels (left/right)\n format = pcmUtils.FMT_F32LE, // 32 bit little-endian float\n\n // Available formats: No big-endian support yet!\n //\n // pcmUtils.FMT_F32LE - 32 bit little-endian float\n // pcmUtils.FMT_F32BE - 32 bit big-endian float **Not currently supported**\n // pcmUtils.FMT_S16LE - signed 16 bit little-endian integer\n // pcmUtils.FMT_S16BE - signed 16 bit big-endian integer **Not currently supported**\n // pcmUtils.FMT_U16LE - unsigned 16 bit little-endian integer\n // pcmUtils.FMT_U16BE - unsigned 16 bit big-endian integer **Not currently supported**\n\n // Unzipper deinterleaves PCM data into multiple single-channel streams.\n unzipper = new pcmUtils.Unzipper(channels, format),\n\n // Zipper interleaves multiple single-channel PCM streams into one.\n zipper = new pcmUtils.Zipper(channels, format),\n \n // Mixer mixes multiple channels into a single channel stream.\n mixer = new pcmUtils.Mixer(channels, format),\n \n // Formatter transforms single-channel PCM data from one format to another,\n // 32 bit little-endian float to signed 16 bit little-endian integer in this case.\n formatter = new pcmUtils.Formatter(format, pcmUtils.FMT_S16LE);\n\n// Read interleaved PCM data from stdin\nprocess.stdin.pipe(unzipper);\n\n// Unzip (de-interleave) it then zip it right back up to stdout\nunzipper.left.pipe(zipper.left); // or `unzipper.outputs[0].pipe(zipper.inputs[0]);`\nunzipper.right.pipe(zipper.right); // or `unzipper.outputs[1].pipe(zipper.inputs[1]);`\nzipper.pipe(process.stdout);\n\n// Mix left and right channels and pipe mono to stderr\nunzipper.left.pipe(mixer.left); // or `unzipper.outputs[0].pipe(mixer.inputs[0]);`\nunzipper.right.pipe(mixer.right); // or `unzipper.outputs[1].pipe(mixer.inputs[1]);`\nmixer.pipe(process.stderr);\n\n// Convert the mono mixer output into signed 16 bit little-endian and write to file.\nvar fs = require(\'fs\'),\n outFileStream = fs.createWriteStream(\'/tmp/s16le.pcm\');\nformatter.pipe(outFileStream);\nmixer.pipe(formatter);\n```\n',
36 silly resolved readmeFilename: 'README.md',
36 silly resolved _id: '[email protected]',
36 silly resolved _from: 'pcm-utils@' } ]
37 info install [email protected] into /home/onfire/Development/AudioServer
38 info installOne [email protected]
39 info /home/onfire/Development/AudioServer/node_modules/pcm-utils unbuild
40 verbose tar unpack /home/onfire/.npm/pcm-utils/0.0.2/package.tgz
41 silly lockFile 713211e1-dioServer-node-modules-pcm-utils tar:///home/onfire/Development/AudioServer/node_modules/pcm-utils
42 verbose lock tar:///home/onfire/Development/AudioServer/node_modules/pcm-utils /home/onfire/.npm/713211e1-dioServer-node-modules-pcm-utils.lock
43 silly lockFile 27de52df--npm-pcm-utils-0-0-2-package-tgz tar:///home/onfire/.npm/pcm-utils/0.0.2/package.tgz
44 verbose lock tar:///home/onfire/.npm/pcm-utils/0.0.2/package.tgz /home/onfire/.npm/27de52df--npm-pcm-utils-0-0-2-package-tgz.lock
45 silly gunzTarPerm modes [ '755', '644' ]
46 silly gunzTarPerm extractEntry package.json
47 silly gunzTarPerm extractEntry .npmignore
48 silly gunzTarPerm extractEntry README.md
49 silly gunzTarPerm extractEntry LICENSE
50 silly gunzTarPerm extractEntry binding.gyp
51 silly gunzTarPerm extractEntry formatter.cc
52 silly gunzTarPerm extractEntry formatter.h
53 silly gunzTarPerm extractEntry zipper.h
54 silly gunzTarPerm extractEntry mixer.cc
55 silly gunzTarPerm extractEntry mixer.h
56 silly gunzTarPerm extractEntry binding.cc
57 silly gunzTarPerm extractEntry unzipper.cc
58 silly gunzTarPerm extractEntry unzipper.h
59 silly gunzTarPerm extractEntry zipper.cc
60 silly gunzTarPerm extractEntry macros.h
61 silly lockFile 713211e1-dioServer-node-modules-pcm-utils tar:///home/onfire/Development/AudioServer/node_modules/pcm-utils
62 silly lockFile 713211e1-dioServer-node-modules-pcm-utils tar:///home/onfire/Development/AudioServer/node_modules/pcm-utils
63 silly lockFile 27de52df--npm-pcm-utils-0-0-2-package-tgz tar:///home/onfire/.npm/pcm-utils/0.0.2/package.tgz
64 silly lockFile 27de52df--npm-pcm-utils-0-0-2-package-tgz tar:///home/onfire/.npm/pcm-utils/0.0.2/package.tgz
65 info preinstall [email protected]
66 verbose readDependencies using package.json deps
67 verbose readDependencies using package.json deps
68 silly resolved []
69 verbose about to build /home/onfire/Development/AudioServer/node_modules/pcm-utils
70 info build /home/onfire/Development/AudioServer/node_modules/pcm-utils
71 verbose linkStuff [ false,
71 verbose linkStuff false,
71 verbose linkStuff false,
71 verbose linkStuff '/home/onfire/Development/AudioServer/node_modules' ]
72 info linkStuff [email protected]
73 verbose linkBins [email protected]
74 verbose linkMans [email protected]
75 verbose rebuildBundles [email protected]
76 info install [email protected]
77 verbose unsafe-perm in lifecycle true
78 info [email protected] Failed to exec install script
79 info /home/onfire/Development/AudioServer/node_modules/pcm-utils unbuild
80 info preuninstall [email protected]
81 info uninstall [email protected]
82 verbose true,/home/onfire/Development/AudioServer/node_modules,/home/onfire/Development/AudioServer/node_modules unbuild [email protected]
83 info postuninstall [email protected]
84 error [email protected] install: `node-gyp rebuild`
84 error Exit status 1
85 error Failed at the [email protected] install script.
85 error This is most likely a problem with the pcm-utils package,
85 error not with npm itself.
85 error Tell the author that this fails on your system:
85 error node-gyp rebuild
85 error You can get their info via:
85 error npm owner ls pcm-utils
85 error There is likely additional logging output above.
86 error System Linux 3.2.0-56-generic-pae
87 error command "/usr/bin/node" "/usr/bin/npm" "install" "pcm-utils"
88 error cwd /home/onfire/Development/AudioServer
89 error node -v v0.10.22
90 error npm -v 1.3.14
91 error code ELIFECYCLE
92 verbose exit [ 1, true ]
System Details:
elementary OS (Based on Ubuntu 12.04 LTS)
Release 0.2 (luna) 32-bit
Kernel Linux 3.2.0-56-generic-pae
The text was updated successfully, but these errors were encountered:
Node-gyp rebuild fails with make giving an exit code 2 on Elementary OS Luna.
I kinda feel like I am missing something obvious. Any help would be appreciated.
Below is the terminal output, the npm-debug.log file, and system information. Let me know if you need anything else.
Terminal
npm-debug.log
System Details:
elementary OS (Based on Ubuntu 12.04 LTS)
Release 0.2 (luna) 32-bit
Kernel Linux 3.2.0-56-generic-pae
The text was updated successfully, but these errors were encountered: