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

Failed install on OS X Yosemite #162

Closed
hzalaz opened this issue Apr 3, 2015 · 33 comments
Closed

Failed install on OS X Yosemite #162

hzalaz opened this issue Apr 3, 2015 · 33 comments

Comments

@hzalaz
Copy link

hzalaz commented Apr 3, 2015

Hi,

When trying to install contextify, It fails:

> contextify@0.1.13 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! contextify@0.1.13 install: `node-gyp rebuild`

npm ERR! Exit status 1

npm ERR! 

npm ERR! Failed at the contextify@0.1.13 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?.

@developerworks
Copy link

Same issue in OSX 10.9.5, Xcode 6.2, Nodejs 0.12

@developerworks
Copy link


> contextify@0.1.13 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! contextify@0.1.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.13 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

@chadobado
Copy link

+1

@brianmcd
Copy link
Owner

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.

@chadobado
Copy link

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

@paramaggarwal
Copy link

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 stacktrace-parser@0.1.1 No repository field.
|
> contextify@0.1.13 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! contextify@0.1.13 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.13 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

@Evanion
Copy link

Evanion commented Apr 22, 2015

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

@likezero
Copy link

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

@kkoopa
Copy link
Collaborator

kkoopa commented Apr 24, 2015

Don't use outdated node versions.

@chasm
Copy link

chasm commented May 6, 2015

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
Copy link

chasm commented May 6, 2015

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

@kkoopa
Copy link
Collaborator

kkoopa commented May 6, 2015

Master works as of 96c2b5c.

@brianmcd
Copy link
Owner

brianmcd commented May 9, 2015

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

@brianmcd brianmcd closed this as completed May 9, 2015
@quoo
Copy link

quoo commented Sep 25, 2015

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! contextify@0.1.14 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the contextify@0.1.14 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

@glena
Copy link

glena commented Sep 28, 2015

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

@sqrammi
Copy link

sqrammi commented Oct 2, 2015

+1

@lucke84
Copy link

lucke84 commented Oct 2, 2015

+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

@tmaximini
Copy link

another one here with that error on 4.1.1

@Roballen
Copy link

Roballen commented Oct 2, 2015

+1

1 similar comment
@mez
Copy link

mez commented Oct 4, 2015

+1

@kyotaka
Copy link

kyotaka commented Oct 6, 2015

Rolling back to node 0.12.7 works.

@katiesandford
Copy link

+1

1 similar comment
@gmeroz
Copy link

gmeroz commented Oct 9, 2015

+1

@davidwarshaw
Copy link

Experienced the issue with 4.2.0. Rolling back to 0.12.7 resolved it.

gyp ERR! node -v v4.2.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok 
...
npm ERR! Darwin 15.0.0
...
npm ERR! node v4.2.0
npm ERR! npm  v3.3.6
npm ERR! code ELIFECYCLE

@billmccord
Copy link

Why is this closed if it still doesn't work with newer versions of node? Is there another issue somewhere?

@lucke84
Copy link

lucke84 commented Oct 14, 2015

@billmccord it was closed before the new version of Node came out. Indeed now it's time to re-open, isn't it? Please? :)

@billmccord
Copy link

@lucke84 I found another issue that I believe is essentially this for Node v4: #180 So perhaps the conversation can move over there...

@Oted
Copy link

Oted commented Oct 15, 2015

+1

Tried downing to 0.12.7 and sudo npm install, still no luck :(

@sp00ne
Copy link

sp00ne commented Oct 15, 2015

+1 - This should have a high priority I guess. On a fresh install of OS X 10.11 (EL Cap'), I also get the same error.

I made sure I had Xcode + Command Line Tools installed. Also that their were at the latest versions.
Any luck?

@Oted
Copy link

Oted commented Oct 16, 2015

Manage to solve it yesterday by reinstalling x-code.

@ralphite
Copy link

Same issue here on Yosemite 10.10.2, node v4.1.2, npm 2.14.4. Cannot downgrade node to 0.12.x cause another lib needs it :-(

Edit: I finally solved the problem using node v0.12.7 managed by nvm.

@buddyp450
Copy link

Running OS X Yosemite, version 10.10.5, reinstalling Xcode worked for me as well. Currently running XCode version 7.0.1 and it's now working.

@amireldor
Copy link

DISREGARD THIS, I DIDN'T EVEN USE CONTEXIFY :(

Hmm, worked for me with node v5.0.0, without sudo. Hmm. I just used n to update to this version and tried npm install and to my surprise it worked. I had problems with v4.0.0 and v4.2.1. No problems with v0.12.7 as well. Didn't test with sudo on the problematic versions.

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