contextify icon indicating copy to clipboard operation
contextify copied to clipboard

Failed install on OS X Yosemite

Open hzalaz opened this issue 11 years ago • 33 comments

Hi,

When trying to install contextify, It fails:

> [email protected] install /Users/hernan/Projects/Auth0/Lock.ReactNative/LockReact/Pods/React/node_modules/jest-cli/node_modules/jsdom/node_modules/contextify

> node-gyp rebuild



  CXX(target) Release/obj.target/contextify/src/contextify.o

  SOLINK_MODULE(target) Release/contextify.node
ld: library not found for -lgcc_s.10.5

clang: error: linker command failed with exit code 1 (use -v to see invocation)

make: *** [Release/contextify.node] Error 1

gyp ERR! build error 

gyp ERR! stack Error: `make` failed with exit code: 2

gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)

gyp ERR! stack     at ChildProcess.emit (events.js:98:17)

gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)

gyp ERR! System Darwin 14.1.0

gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

gyp ERR! cwd /Users/hernan/Projects/Auth0/Lock.ReactNative/LockReact/Pods/React/node_modules/jest-cli/node_modules/jsdom/node_modules/contextify

gyp ERR! node -v v0.10.33

gyp ERR! node-gyp -v v1.0.3

gyp ERR! not ok 

npm ERR! Darwin 14.1.0

npm ERR! argv "node" "/usr/local/bin/npm" "install"

npm ERR! node v0.10.33

npm ERR! npm  v2.7.5

npm ERR! code ELIFECYCLE



npm ERR! [email protected] install: `node-gyp rebuild`

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.

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-gyp rebuild

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! Please include the following file with any support request:

npm ERR!     /Users/hernan/Projects/Auth0/Lock.ReactNative/LockReact/Pods/React/npm-debug.log

Any ideas what's wrong?.

hzalaz avatar Apr 03 '15 15:04 hzalaz

Same issue in OSX 10.9.5, Xcode 6.2, Nodejs 0.12

developerworks avatar Apr 10 '15 17:04 developerworks


> [email protected] install /Users/hezhiqiang/ios/react-native/node_modules/contextify
> node-gyp rebuild

child_process: customFds option is deprecated, use stdio instead.
  CXX(target) Release/obj.target/contextify/src/contextify.o
  SOLINK_MODULE(target) Release/contextify.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/contextify.node] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 13.4.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/hezhiqiang/ios/react-native/node_modules/contextify
gyp ERR! node -v v0.12.1
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok 
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "contextify"
npm ERR! node v0.12.1
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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-gyp rebuild
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! Please include the following file with any support request:
npm ERR!     /Users/hezhiqiang/ios/react-native/npm-debug.log

developerworks avatar Apr 10 '15 17:04 developerworks

+1

chadobado avatar Apr 14 '15 21:04 chadobado

Wish I could help, but it works for me with node 0.12.2 (and 0.12.1), Yosemite 10.10.3, and XCode 6.3. I'm not setup to test other environments. Maybe someone else can help out.

brianmcd avatar Apr 14 '15 23:04 brianmcd

Looks like it may be a permissions issue, installing w/ sudo appears to resolve the issue

chadobado avatar Apr 15 '15 00:04 chadobado

Using sudo npm install contextify worked for me.

Otherwise with Yosemite 10.10.3, Xcode 6.3 and node 0.12.1, it fails for me with:

Params-MacBook-Pro:react-native Param$ npm install contextify
npm WARN package.json [email protected] No repository field.
|
> [email protected] install /Users/Param/Documents/react-native/node_modules/contextify
> node-gyp rebuild

  CXX(target) Release/obj.target/contextify/src/contextify.o
  SOLINK_MODULE(target) Release/contextify.node
ld: library not found for -lgcc_s.10.5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/contextify.node] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1067:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/Param/Documents/react-native/node_modules/contextify
gyp ERR! node -v v0.12.1
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok 
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "contextify"
npm ERR! node v0.12.1
npm ERR! npm  v2.7.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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-gyp rebuild
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! Please include the following file with any support request:
npm ERR!     /Users/Param/Documents/react-native/npm-debug.log

paramaggarwal avatar Apr 17 '15 06:04 paramaggarwal

I just tried to install strider, and got the same error on CentOS 7. It seems that the latest version tagged in the nom repo is 0.1.13, but when I check contextify's releases here on github, the last tagged release is 0.1.12

Evanion avatar Apr 22 '15 00:04 Evanion

When i use "npm install contextify" , i got many errors.Such as "rror: no member named 'ScriptCompiler' in namespace 'v8'" , "cannot initialize a parameter of type 'FunctionCallback' (aka 'void (*)(const FunctionCallbackInfov8::Value &)') with an rvalue of type 'v8::Isolate *'"

And : node -v v0.11.12 npm -v 1.3.25

likezero avatar Apr 24 '15 05:04 likezero

Don't use outdated node versions.

kkoopa avatar Apr 24 '15 08:04 kkoopa

Not working for me with 10.10.3 and io.js 2.0.0 (with or without sudo):

> node-gyp rebuild

  CXX(target) Release/obj.target/contextify/src/contextify.o
In file included from ../src/contextify.cc:3:
In file included from ../node_modules/nan/nan.h:74:
In file included from ../node_modules/nan/nan_new.h:181:
../node_modules/nan/nan_implementation_12_inl.h:172:66: error: too many arguments to function call, expected at most 2, have 4
  return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
         ~~~~~~~~~~~~~~~~~~                                      ^~~~~~~~~~
/Users/aries/.node-gyp/2.0.0/deps/v8/include/v8.h:4188:3: note: 'New' declared here
  static Local<Signature> New(

chasm avatar May 06 '15 01:05 chasm

Able to install on the latest node without a problem. This is definitely broken on io.js 2.0.0.

chasm avatar May 06 '15 01:05 chasm

Master works as of 96c2b5c86505bee4ce134a072dd36adadb06b567.

kkoopa avatar May 06 '15 10:05 kkoopa

Published 0.1.14 with @kkoopa's changes for io.js 2.0.0 compatibility.

brianmcd avatar May 09 '15 12:05 brianmcd

I'm still seeing this issue on yosemite (at least I think it's the same issue).

14 errors generated.
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/Cellar/node/4.1.1/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/quoo/Documents/projects/node_modules/contextify
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.1
gyp ERR! not ok 
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/Cellar/node/4.1.1/bin/node" "/usr/local/bin/npm" "install" "contextify"
npm ERR! node v4.1.1
npm ERR! npm  v2.14.4
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
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-gyp rebuild
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! Please include the following file with any support request:
npm ERR!     /Users/quoo/Documents/projects/npm-debug.log

Full log: https://gist.github.com/quoo/194b4fce28902a78a59d

quoo avatar Sep 25 '15 19:09 quoo

Having the same issue with 4.1.1 (not working even with sudo)

glena avatar Sep 28 '15 15:09 glena

+1

sqrammi avatar Oct 02 '15 04:10 sqrammi

+1

got the same problem with 4.1.1 (not a permission issue, using sudo doesn't help), rolling back to node 0.12.7 works

lucke84 avatar Oct 02 '15 12:10 lucke84

another one here with that error on 4.1.1

tmaximini avatar Oct 02 '15 16:10 tmaximini

+1

Roballen avatar Oct 02 '15 19:10 Roballen

+1

mez avatar Oct 04 '15 01:10 mez