Skip to content
This repository has been archived by the owner on Dec 9, 2018. It is now read-only.

Another install issue (OSX) #7

Closed
jessefulton opened this issue Nov 7, 2011 · 2 comments
Closed

Another install issue (OSX) #7

jessefulton opened this issue Nov 7, 2011 · 2 comments

Comments

@jessefulton
Copy link

I'm also having installation issues when running "npm install contextify"

Here is my output:

> [email protected] preinstall /Users/applemacbookpro/Sites/node/project/node_modules/contextify
> node-waf clean || true; node-waf configure build

Nothing to clean (project not configured)
Setting srcdir to                        : /Users/applemacbookpro/Sites/node/project/node_modules/contextify 
Setting blddir to                        : /Users/applemacbookpro/Sites/node/project/node_modules/contextify/build 
Checking for program g++ or c++          : /usr/bin/g++ 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for node path                   : not found 
Checking for node prefix                 : ok /usr 
'configure' finished successfully (0.065s)
Waf: Entering directory `/Users/applemacbookpro/Sites/node/project/node_modules/contextify/build'
[1/2] cxx: src/contextify.cc -> build/Release/src/contextify_1.o
../src/contextify.cc:1:18: error: node.h: No such file or directory
../src/contextify.cc:3: error: ‘v8’ is not a namespace-name
../src/contextify.cc:3: error: expected namespace-name before ‘;’ token
../src/contextify.cc:4: error: ‘node’ is not a namespace-name
../src/contextify.cc:4: error: expected namespace-name before ‘;’ token
../src/contextify.cc:8: error: expected initializer before ‘<’ token
../src/contextify.cc:9: error: expected initializer before ‘<’ token
../src/contextify.cc:10: error: expected initializer before ‘<’ token
../src/contextify.cc:11: error: expected initializer before ‘<’ token
../src/contextify.cc:14: error: expected initializer before ‘<’ token
../src/contextify.cc:16: error: expected initializer before ‘<’ token
../src/contextify.cc:19: error: expected initializer before ‘<’ token
../src/contextify.cc:21: error: expected initializer before ‘<’ token
../src/contextify.cc:23: error: expected initializer before ‘<’ token
../src/contextify.cc:28: error: ISO C++ forbids declaration of ‘Persistent’ with no type
../src/contextify.cc:28: error: expected ‘;’ before ‘<’ token
../src/contextify.cc:29: error: ISO C++ forbids declaration of ‘Persistent’ with no type
../src/contextify.cc:29: error: expected ‘;’ before ‘<’ token
../src/contextify.cc:30: error: ISO C++ forbids declaration of ‘Persistent’ with no type
../src/contextify.cc:30: error: expected ‘;’ before ‘<’ token
../src/contextify.cc:32: error: ‘Persistent’ has not been declared
../src/contextify.cc:32: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/contextify.cc:36: error: ‘Local’ has not been declared
../src/contextify.cc:36: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/contextify.cc:40: error: ‘Local’ has not been declared
../src/contextify.cc:40: error: expected ‘,’ or ‘...’ before ‘<’ token
../src/contextify.cc: In member function ‘void ContextifyInfo::SetContext(int)’:
../src/contextify.cc:33: error: ‘struct ContextifyInfo’ has no member named ‘context’
../src/contextify.cc:33: error: ‘context’ was not declared in this scope
../src/contextify.cc: In member function ‘void ContextifyInfo::SetSandbox(int)’:
../src/contextify.cc:37: error: ‘struct ContextifyInfo’ has no member named ‘sandbox’
../src/contextify.cc:37: error: ‘Persistent’ was not declared in this scope
../src/contextify.cc:37: error: ‘Object’ was not declared in this scope
../src/contextify.cc:37: error: ‘::New’ has not been declared
../src/contextify.cc:37: error: ‘sandbox’ was not declared in this scope
../src/contextify.cc: In member function ‘void ContextifyInfo::SetGlobal(int)’:
../src/contextify.cc:41: error: ‘struct ContextifyInfo’ has no member named ‘global’
../src/contextify.cc:41: error: ‘Persistent’ was not declared in this scope
../src/contextify.cc:41: error: ‘Object’ was not declared in this scope
../src/contextify.cc:41: error: ‘::New’ has not been declared
../src/contextify.cc:41: error: ‘global’ was not declared in this scope
../src/contextify.cc: At global scope:
../src/contextify.cc:49: error: expected initializer before ‘<’ token
Waf: Leaving directory `/Users/applemacbookpro/Sites/node/project/node_modules/contextify/build'
Build failed:  -> task failed (err #1): 
    {task: cxx contextify.cc -> contextify_1.o}
npm ERR! error installing [email protected] Error: [email protected] preinstall: `node-waf clean || true; node-waf configure build`
npm ERR! error installing [email protected] `sh "-c" "node-waf clean || true; node-waf configure build"` failed with 1
npm ERR! error installing [email protected]     at ChildProcess.<anonymous> (/usr/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing [email protected]     at ChildProcess.emit (events.js:67:17)
npm ERR! error installing [email protected]     at ChildProcess.onexit (child_process.js:192:12)
npm ERR! [email protected] 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 [email protected] 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 10.8.0
npm ERR! command "node" "/usr/bin/npm" "install" "contextify"
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/applemacbookpro/Sites/node/project/npm-debug.log
npm not ok

node v 0.4.8
npm v 1.0.6
node-waf v 1.5.16

Any idea what it is?

@brianmcd
Copy link
Owner

brianmcd commented Nov 7, 2011

It looks like it can't find the v8 or node header files....so something is probably broken with your installation. Have you tried re-installing node? Do you have v8.h and node.h on your system? npm 1.0.6 is old at this point, so you could also try checking out the code and building it to see if it's something with npm (run node-waf configure build in the contextify directory).

@jessefulton
Copy link
Author

Thanks. Reinstalled npm & node (MacPorts) to versions:

npm v 1.0.104
node v 0.6.0

Install works now. Maybe list the npm version requirements for the contextify package?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants