brianmcd/contextify — Issue #8: installation issues
Author: shownde
Created: 2011-11-14 21:29:54+00:00
State: open

Trying to get contextify as a dependency for Zombie, which is a dependency for Jellyfish... any rate:

OS X 10.7.2

$ node -v
v0.6.1
npm -v
1.0.105

udo npm install contextify -g

> contextify@0.0.6 preinstall /usr/local/lib/node_modules/contextify
> node-waf clean || true; node-waf configure build

Nothing to clean (project not configured)
Setting srcdir to : /usr/local/lib/node_modules/contextify
Setting blddir to : /usr/local/lib/node_modules/contextify/build
Checking for program g++ or c++ : /Developer/usr/bin/g++
Checking for program cpp : /Developer/usr/bin/cpp
Checking for program ar : /Developer/usr/bin/ar
Checking for program ranlib : /Developer/usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.042s)
Waf: Entering directory `/usr/local/lib/node_modules/contextify/build'
[1/2] cxx: src/contextify.cc -> build/Release/src/contextify_1.o
In file included from /usr/local/include/node/node.h:61,
from ../src/contextify.cc:1:
/usr/local/include/node/uv.h:55:36: error: sys/types.h: No such file or directory
In file included from /usr/local/include/node/uv.h:57,
from /usr/local/include/node/node.h:61,
from ../src/contextify.cc:1:
/usr/local/include/node/ares.h:55:23: error: sys/time.h: No such file or directory
/usr/local/include/node/ares.h:57:25: error: sys/socket.h: No such file or directory
/usr/local/include/node/ares.h:114:26: error: netinet/in.h: No such file or directory
In file included from /usr/local/include/node/uv-private/uv-unix.h:27,
from /usr/local/include/node/uv.h:64,
from /usr/local/include/node/node.h:61,
from ../src/contextify.cc:1:
/usr/local/include/node/uv-private/ev.h:152:21: error: signal.h: No such file or directory
/usr/local/include/node/uv-private/ev.h:161:23: error: sys/stat.h: No such file or directory
In file included from /usr/local/include/node/uv.h:64,
from /usr/local/include/node/node.h:61,
from ../src/contextify.cc:1:
/usr/local/include/node/uv-private/uv-unix.h:33:25: error: netinet/tcp.h: No such file or directory
/usr/local/include/node/uv-private/uv-unix.h:34:23: error: arpa/inet.h: No such file or directory
/usr/local/include/node/uv-private/uv-unix.h:35:19: error: netdb.h: No such file or directory
/usr/local/include/node/uv-private/uv-unix.h:36:21: error: termios.h: No such file or directory
In file included from /usr/local/include/node/v8.h:41,
from /usr/local/include/node/node.h:62,
from ../src/contextify.cc:1:
/usr/local/include/node/v8stdint.h:33:19: error: stdio.h: No such file or directory
In file included from /usr/local/include/node/node.h:66,
from ../src/contextify.cc:1:
/usr/local/include/node/node_object_wrap.h:26:20: error: assert.h: No such file or directory
../src/contextify.cc:2:18: error: string: No such file or directory
In file included from /usr/local/include/node/uv.h:57,
from /usr/local/include/node/node.h:61,
from ../src/contextify.cc:1:
/usr/local/include/node/ares.h:434: error: ‘fd_set’ has not been declared
/usr/local/include/node/ares.h:435: error: ‘fd_set’ has not been declared
/usr/local/include/node/ares.h:446: error: ‘fd_set’ has not been declared
/usr/local/include/node/ares.h:447: error: ‘fd_set’ has not been declared
/usr/local/include/node/ares.h:487: error: field ‘ipaddr’ has incomplete type
/usr/local/include/node/ares.h:513: error: ‘size_t’ does not name a type
/usr/local/include/node/ares.h:572: error: field ‘addr4’ has incomplete type
In file included from /usr/local/include/node/uv-private/uv-unix.h:27,
from /usr/local/include/node/uv.h:64,
from /usr/local/include/node/node.h:61,
from ../src/contextify.cc:1:
/usr/local/include/node/uv-private/ev.h:373: error: field ‘prev’ has incomplete type
/usr/local/include/node/uv-private/ev.h:374: error: field ‘attr’ has incomplete type
/usr/local/include/node/uv-private/ev.h:450: error: ISO C++ forbids declaration of ‘sig_atomic_t’ with no type
/usr/local/include/node/uv-private/ev.h:450: error: expected ‘;’ before ‘volatile’
In file included from /usr/local/include/node/uv-private/uv-unix.h:28,
from /usr/local/include/node/uv.h:64,
from /usr/local/include/node/node.h:61,
from ../src/contextify.cc:1:
/usr/local/include/node/uv-private/eio.h:84: error: ‘uid_t’ does not name a type
/usr/local/include/node/uv-private/eio.h:85: error: ‘gid_t’ does not name a type
/usr/local/include/node/uv-private/eio.h:87: error: ‘ino_t’ does not name a type
/usr/local/include/node/uv-private/eio.h:88: error: ‘mode_t’ does not name a type
/usr/local/include/node/uv-private/eio.h:137: error: ‘eio_ino_t’ does not name a type
/usr/local/include/node/uv-private/eio.h:217: error: ‘off_t’ does not name a type
/usr/local/include/node/uv-private/eio.h:302: error: ‘off_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:303: error: ‘off_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:305: error: ‘off_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:306: error: ‘off_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:307: error: ‘off_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:311: error: ‘off_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:312: error: ‘eio_mode_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:313: error: ‘eio_uid_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:313: error: ‘eio_gid_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:315: error: ‘off_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:316: error: ‘eio_mode_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:318: error: ‘off_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:319: error: ‘eio_uid_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:319: error: ‘eio_gid_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:320: error: ‘eio_mode_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:321: error: ‘eio_mode_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:330: error: ‘eio_mode_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:330: error: ‘dev_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:367: error: ‘off_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:368: error: ‘off_t’ has not been declared
/usr/local/include/node/uv-private/eio.h:369: error: ‘off_t’ has not been declared
In file included from /usr/local/include/node/node.h:61,
from ../src/contextify.cc:1:
/usr/local/include/node/uv.h:577: error: field ‘addr’ has incomplete type
/usr/local/include/node/uv.h:577: error: ‘socklen_t’ does not name a type
/usr/local/include/node/uv.h:708: error: field ‘orig_termios’ has incomplete type
/usr/local/include/node/uv.h:1070: error: field ‘statbuf’ has incomplete type
/usr/local/include/node/uv.h:1082: error: ‘off_t’ has not been declared
/usr/local/include/node/uv.h:1088: error: ‘off_t’ has not been declared
/usr/local/include/node/uv.h:1115: error: ‘off_t’ has not been declared
/usr/local/include/node/uv.h:1118: error: ‘off_t’ has not been declared
In file included from /usr/local/include/node/node.h:62,
from ../src/contextify.cc:1:
/usr/local/include/node/v8.h:741: error: ‘FILE’ has not been declared
In file included from /usr/local/include/node/node.h:66,
from ../src/contextify.cc:1:
/usr/local/include/node/node_object_wrap.h: In destructor ‘virtual node::ObjectWrap::~ObjectWrap()’:
/usr/local/include/node/node_object_wrap.h:39: error: ‘assert’ was not declared in this scope
/usr/local/include/node/node_object_wrap.h: In static member function ‘static T* node::ObjectWrap::Unwrap(v8::Handle)’:
/usr/local/include/node/node_object_wrap.h:50: error: there are no arguments to ‘assert’ that depend on a template parameter, so a declaration of ‘assert’ must be available
/usr/local/include/node/node_object_wrap.h:50: error: (if you use ‘-fpermissive’, G++ will accept your code, but allowing the use of an undeclared name is deprecated)
/usr/local/include/node/node_object_wrap.h:51: error: there are no arguments to ‘assert’ that depend on a template parameter, so a declaration of ‘assert’ must be available
/usr/local/include/node/node_object_wrap.h: In member function ‘void node::ObjectWrap::Wrap(v8::Handle)’:
/usr/local/include/node/node_object_wrap.h:60: error: ‘assert’ was not declared in this scope
/usr/local/include/node/node_object_wrap.h: In member function ‘virtual void node::ObjectWrap::Ref()’:
/usr/local/include/node/node_object_wrap.h:78: error: ‘assert’ was not declared in this scope
/usr/local/include/node/node_object_wrap.h: In member function ‘virtual void node::ObjectWrap::Unref()’:
/usr/local/include/node/node_object_wrap.h:93: error: ‘assert’ was not declared in this scope
/usr/local/include/node/node_object_wrap.h: In static member function ‘static void node::ObjectWrap::WeakCallback(v8::Persistent, void*)’:
/usr/local/include/node/node_object_wrap.h:106: error: ‘assert’ was not declared in this scope
In file included from ../src/contextify.cc:1:
/usr/local/include/node/node.h: In function ‘v8::Persistent* node::cb_unwrap(void*)’:
/usr/local/include/node/node.h:181: error: ‘assert’ was not declared in this scope
Waf: Leaving directory `/usr/local/lib/node_modules/contextify/build'
Build failed: -> task failed (err #1):
{task: cxx contextify.cc -> contextify_1.o}
npm ERR! error installing contextify@0.0.6 Error: contextify@0.0.6 preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! error installing contextify@0.0.6 `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR! error installing contextify@0.0.6 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing contextify@0.0.6 at ChildProcess.emit (events.js:70:17)
npm ERR! error installing contextify@0.0.6 at maybeExit (child_process.js:359:16)
npm ERR! error installing contextify@0.0.6 at Process.onexit (child_process.js:395:5)
npm ERR! contextify@0.0.6 preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR!
npm ERR! Failed at the contextify@0.0.6 preinstall script.
npm ERR! This is most likely a problem with the contextify package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf clean || true; node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls contextify
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "contextify" "-g"
npm ERR! cwd /usr/local/lib/node_modules
npm ERR! node -v v0.6.1
npm ERR! npm -v 1.0.105
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/local/lib/node_modules/npm-debug.log
npm not ok

info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm', 'install', 'contextify', '-g' ]
info using npm@1.0.105
info using node@v0.6.1
verbose config file /Users/shownde/.npmrc
verbose config file /usr/local/etc/npmrc
verbose config file /usr/local/lib/node_modules/npm/npmrc
silly exec /usr/local/bin/node "/usr/local/lib/node_modules/npm/bin/npm-get-uid-gid.js" "nobody" 20
silly spawning [ '/usr/local/bin/node',
silly spawning [ '/usr/local/lib/node_modules/npm/bin/npm-get-uid-gid.js',
silly spawning 'nobody',
silly spawning 20 ],
silly spawning null ]
silly output from getuid/gid {"uid":-2,"gid":20}
silly output from getuid/gid
verbose into /usr/local/lib [ 'contextify' ]
verbose cache add contextify
verbose cache add [ 'contextify', null ]
silly cache add: name, spec, args [ undefined, 'contextify', [ 'contextify', null ] ]
verbose parsed url { pathname: 'contextify',
verbose parsed url path: 'contextify',
verbose parsed url href: 'contextify' }
info addNamed [ 'contextify', '' ]
verbose addNamed [ null, '' ]
verbose GET contextify
verbose raw, before any munging contextify
verbose url resolving [ 'https://registry.npmjs.org/', './contextify' ]
verbose url resolved https://registry.npmjs.org/contextify
verbose etag "AYEUVFUC0HKLIMMDO0B3HNWFS"
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb etag: '"AYEUVFUC0HKLIMMDO0B3HNWFS"',
silly get cb date: 'Mon, 14 Nov 2011 21:23:46 GMT',
silly get cb 'content-length': '0' } ]
verbose etag contextify from cache
verbose GET contextify/0.0.6
verbose raw, before any munging contextify/0.0.6
verbose url resolving [ 'https://registry.npmjs.org/', './contextify/0.0.6' ]
verbose url resolved https://registry.npmjs.org/contextify/0.0.6
verbose etag "AYEUVFUC0HKLIMMDO0B3HNWFS"
silly get cb [ 304,
silly get cb { server: 'CouchDB/1.1.0 (Erlang OTP/R14B04)',
silly get cb etag: '"AYEUVFUC0HKLIMMDO0B3HNWFS"',
silly get cb date: 'Mon, 14 Nov 2011 21:23:47 GMT',
silly get cb 'content-length': '0' } ]
verbose etag contextify/0.0.6 from cache
verbose bin dist [ '0.6-ares1.7.5-DEV-evundefined-openssl0.9.8n-v83.6.6.7-darwin-x64-11.2.0',
verbose bin dist { shasum: '1d373103c9000b93812783b8e1d1e1889b4a73de',
verbose bin dist tarball: 'http://registry.npmjs.org/contextify/-/contextify-0.0.6.tgz' } ]
verbose has wscript [ undefined,
verbose has wscript { file: '/Users/shownde/.npm/contextify/0.0.6/package/package.json',
verbose has wscript contributors: false,
verbose has wscript serverjs: false,
verbose has wscript wscript: true } ]
silly testEngine { author: { name: 'Brian McDaniel', email: 'brianmcd05@gmail.com' },
silly testEngine name: 'contextify',
silly testEngine description: 'Turn an object into a persistent execution context.',
silly testEngine keywords: [ 'context', 'vm' ],
silly testEngine version: '0.0.6',
silly testEngine repository: { type: 'git', url: 'git://github.com/brianmcd/contextify.git' },
silly testEngine main: './lib/contextify.js',
silly testEngine directories: { lib: './lib' },
silly testEngine engines: { node: '>=0.4.0' },
silly testEngine licenses:
silly testEngine [ { type: 'MIT',
silly testEngine url: 'http://github.com/brianmcd/contextify/blob/master/LICENSE.txt' } ],
silly testEngine dependencies: {},
silly testEngine devDependencies: { nodeunit: '>=0.5.x' },
silly testEngine _id: 'contextify@0.0.6',
silly testEngine scripts: { preinstall: 'node-waf clean || true; node-waf configure build' },
silly testEngine _engineSupported: true,
silly testEngine _npmVersion: '1.0.105',
silly testEngine _nodeVersion: 'v0.6.1',
silly testEngine _defaultsLoaded: true }
verbose caching /Users/shownde/.npm/contextify/0.0.6/package/package.json
verbose loadDefaults contextify@0.0.6
silly resolved [ { author: { name: 'Brian McDaniel', email: 'brianmcd05@gmail.com' },
silly resolved name: 'contextify',
silly resolved description: 'Turn an object into a persistent execution context.',
silly resolved keywords: [ 'context', 'vm' ],
silly resolved version: '0.0.6',
silly resolved repository: { type: 'git', url: 'git://github.com/brianmcd/contextify.git' },
silly resolved main: './lib/contextify.js',
silly resolved directories: { lib: './lib' },
silly resolved engines: { node: '>=0.4.0' },
silly resolved licenses:
silly resolved [ { type: 'MIT',
silly resolved url: 'http://github.com/brianmcd/contextify/blob/master/LICENSE.txt' } ],
silly resolved dependencies: {},
silly resolved devDependencies: { nodeunit: '>=0.5.x' },
silly resolved _id: 'contextify@0.0.6',
silly resolved scripts: { preinstall: 'node-waf clean || true; node-waf configure build' },
silly resolved _engineSupported: true,
silly resolved _npmVersion: '1.0.105',
silly resolved _nodeVersion: 'v0.6.1',
silly resolved _defaultsLoaded: true } ]
info into /usr/local/lib contextify@0.0.6
info installOne contextify@0.0.6
info unbuild /usr/local/lib/node_modules/contextify
verbose from cache /Users/shownde/.npm/contextify/0.0.6/package/package.json
verbose mkdir (expected) error ENOENT, no such file or directory '/usr/local/lib/node_modules/___contextify.npm'
verbose mkdir done: /usr/local/lib/node_modules/___contextify.npm 755
verbose unpack_ uid, gid [ -2, 20 ]
verbose unpackTarget /usr/local/lib/node_modules/contextify
silly gunzTarPerm modes [ '755', '644' ]
silly spawning [ 'tar',
silly spawning [ '-zmvxpf',
silly spawning '/Users/shownde/.npm/contextify/0.0.6/package.tgz',
silly spawning '-o' ],
silly spawning '/usr/local/lib/node_modules/___contextify.npm' ]
silly tar err x package/.gitignore
silly tar err x package/LICENSE.txt
silly tar err x package/package.json
silly tar err x package/README.md
silly tar err x package/wscript
silly tar err x package/lib/contextify.js
silly tar err x package/src/contextify.cc
silly tar err x package/test/contextify.js
silly tar exit 0
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package/.gitignore
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package/LICENSE.txt
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package/package.json
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package/README.md
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package/wscript
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package/lib
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package/lib/contextify.js
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package/src
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package/src/contextify.cc
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package/test
silly asyncMap in gTP /usr/local/lib/node_modules/___contextify.npm/package/test/contextify.js
verbose gunzed /usr/local/lib/node_modules/___contextify.npm/package
verbose rm'ed /usr/local/lib/node_modules/contextify
verbose renamed [ '/usr/local/lib/node_modules/___contextify.npm/package',
verbose renamed '/usr/local/lib/node_modules/contextify' ]
verbose has wscript [ undefined,
verbose has wscript { file: '/usr/local/lib/node_modules/contextify/package.json',
verbose has wscript contributors: false,
verbose has wscript serverjs: false,
verbose has wscript wscript: true } ]
silly testEngine { author: { name: 'Brian McDaniel', email: 'brianmcd05@gmail.com' },
silly testEngine name: 'contextify',
silly testEngine description: 'Turn an object into a persistent execution context.',
silly testEngine keywords: [ 'context', 'vm' ],
silly testEngine version: '0.0.6',
silly testEngine repository: { type: 'git', url: 'git://github.com/brianmcd/contextify.git' },
silly testEngine main: './lib/contextify.js',
silly testEngine directories: { lib: './lib' },
silly testEngine engines: { node: '>=0.4.0' },
silly testEngine licenses:
silly testEngine [ { type: 'MIT',
silly testEngine url: 'http://github.com/brianmcd/contextify/blob/master/LICENSE.txt' } ],
silly testEngine dependencies: {},
silly testEngine devDependencies: { nodeunit: '>=0.5.x' },
silly testEngine _id: 'contextify@0.0.6',
silly testEngine scripts: { preinstall: 'node-waf clean || true; node-waf configure build' },
silly testEngine _engineSupported: true,
silly testEngine _npmVersion: '1.0.105',
silly testEngine _nodeVersion: 'v0.6.1',
silly testEngine _defaultsLoaded: true }
verbose caching /usr/local/lib/node_modules/contextify/package.json
verbose loadDefaults contextify@0.0.6
info preinstall contextify@0.0.6
verbose unsafe-perm in lifecycle false
verbose Setting uid from 0 nobody
verbose stack at uid setting Error
verbose stack at uid setting at exec (/usr/local/lib/node_modules/npm/lib/utils/exec.js:35:17)
verbose stack at uid setting at Array.0 (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:127:5)
verbose stack at uid setting at EventEmitter._tickCallback (node.js:192:40)
silly exec sh "-c" "node-waf clean || true; node-waf configure build"
silly spawning [ 'sh',
silly spawning [ '-c', 'node-waf clean || true; node-waf configure build' ],
silly spawning '/usr/local/lib/node_modules/contextify' ]
info contextify@0.0.6 Failed to exec preinstall script
ERR! error installing contextify@0.0.6 Error: contextify@0.0.6 preinstall: `node-waf clean || true; node-waf configure build`
ERR! error installing contextify@0.0.6 `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
ERR! error installing contextify@0.0.6 at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/exec.js:49:20)
ERR! error installing contextify@0.0.6 at ChildProcess.emit (events.js:70:17)
ERR! error installing contextify@0.0.6 at maybeExit (child_process.js:359:16)
ERR! error installing contextify@0.0.6 at Process.onexit (child_process.js:395:5)
info unbuild /usr/local/lib/node_modules/contextify
verbose from cache /usr/local/lib/node_modules/contextify/package.json
info preuninstall contextify@0.0.6
info uninstall contextify@0.0.6
verbose unbuild contextify@0.0.6 [ true,
verbose unbuild contextify@0.0.6 '/usr/local/lib/node_modules',
verbose unbuild contextify@0.0.6 '/usr/local/lib/node_modules' ]
info postuninstall contextify@0.0.6
verbose installOne cb contextify@0.0.6
ERR! contextify@0.0.6 preinstall: `node-waf clean || true; node-waf configure build`
ERR! `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
ERR!
ERR! Failed at the contextify@0.0.6 preinstall script.
ERR! This is most likely a problem with the contextify package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR! node-waf clean || true; node-waf configure build
ERR! You can get their info via:
ERR! npm owner ls contextify
ERR! There is likely additional logging output above.
ERR!
ERR! System Darwin 11.2.0
ERR! command "node" "/usr/local/bin/npm" "install" "contextify" "-g"
ERR! cwd /usr/local/lib/node_modules
ERR! node -v v0.6.1
ERR! npm -v 1.0.105
ERR! code ELIFECYCLE
verbose exit [ 1, true ]

Any tips?