Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install with node v0.10.0 on linux #43

Closed
victorr opened this issue Mar 21, 2013 · 2 comments
Closed

Unable to install with node v0.10.0 on linux #43

victorr opened this issue Mar 21, 2013 · 2 comments

Comments

@victorr
Copy link

victorr commented Mar 21, 2013

I'm trying to install node-java using npm but it is failing to compile (output is below).

I have managed to find out this much: libuv's uv_after_work_cb has gained an addition int argument (see joyent/libuv@92fb84b).

Unfortunately I know nothing about libuv and very little about node.js, but I would love to use your library.

Any chance this is a quick fix?

Thanks

This is the output of 'npm instal java':

java@0.2.1 install /home/victor/node_modules/java
node-gyp rebuild

make: Entering directory /home/victor/node_modules/java/build' ACTION Verify Deps build/depsVerified CXX(target) Release/obj.target/nodejavabridge_bindings/src/java.o ../src/java.cpp: In function ‘_jobject* Java_node_NodeDynamicProxyClass_callJs(JNIEnv*, _jobject*, jlong, _jobject*, _jobjectArray*)’: ../src/java.cpp:731: error: invalid conversion from ‘void (*)(uv_work_t*)’ to ‘void (*)(uv_work_t*, int)’ ../src/java.cpp:731: error: initializing argument 4 of ‘int uv_queue_work(uv_loop_t*, uv_work_t*, void (*)(uv_work_t*), void (*)(uv_work_t*, int))’ make: *** [Release/obj.target/nodejavabridge_bindings/src/java.o] Error 1 make: Leaving directory/home/victor/node_modules/java/build'
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:256:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:754:12)
gyp ERR! System Linux 2.6.32-279.22.1.el6.x86_64
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/victor/node_modules/java
gyp ERR! node -v v0.10.0
gyp ERR! node-gyp -v v0.8.5
gyp ERR! not ok
npm ERR! java@0.2.1 install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild" failed with 1
npm ERR!
npm ERR! Failed at the java@0.2.1 install script.
npm ERR! This is most likely a problem with the java 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 java
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 2.6.32-279.22.1.el6.x86_64
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "java"
npm ERR! cwd /home/victor
npm ERR! node -v v0.10.0
npm ERR! npm -v 1.2.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/victor/npm-debug.log
npm ERR! not ok code 0

@ken-okabe
Copy link

I had the same error on node v0.10.1.

Try to use node v0.8.22 <- the previous version of node, and switch via using nvm etc. until java-node module will be fixed for this incompatibility issue to the new version of node.

@joeferner
Copy link
Owner

duplicate of #42

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

No branches or pull requests

3 participants