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

Installation: mnm.js build fails on node v0.8.12 #11

Closed
Arsca opened this issue Oct 26, 2012 · 3 comments
Closed

Installation: mnm.js build fails on node v0.8.12 #11

Arsca opened this issue Oct 26, 2012 · 3 comments

Comments

@Arsca
Copy link

Arsca commented Oct 26, 2012

Hi,

I'm trying to start a project with oracle backend and really appreciate any help on this subject matter.

I wonder if the version of node v0.8.12 is compatible with node-oracle as the installation fails with the following error:

npm install oracle
npm http GET https://registry.npmjs.org/oracle
npm http 304 https://registry.npmjs.org/oracle
npm http GET https://registry.npmjs.org/mnm
npm http 304 https://registry.npmjs.org/mnm

oracle@0.1.3 install /home/test/node_modules/oracle
node mnm.js build

path.existsSync is now called fs.existsSync.
[1/5] cxx: src/oracle_bindings.cpp -> build/Release/src/oracle_bindings.o
/home/test/node_modules/oracle/src/oracle_bindings.cpp: In static member function ‘static v8::Handlev8::Value OracleClient::Connect(const v8::Arguments&)’:
/home/test/node_modules/oracle/src/oracle_bindings.cpp:74:27: error: cannot convert ‘uv_loop_t* {aka uv_loop_s_}’ to ‘uv_handle_t_ {aka uv_handle_s_}’ for argument ‘1’ to ‘void uv_ref(uv_handle_t_)’
/home/test/node_modules/oracle/src/oracle_bindings.cpp: In static member function ‘static void OracleClient::EIO_AfterConnect(uv_work_t_)’:
/home/test/node_modules/oracle/src/oracle_bindings.cpp:96:29: error: cannot convert ‘uv_loop_t_ {aka uv_loop_s_}’ to ‘uv_handle_t_ {aka uv_handle_s_}’ for argument ‘1’ to ‘void uv_unref(uv_handle_t_)’
[2/5] cxx: src/outParam.cpp -> build/Release/src/outParam.o
[3/5] cxx: src/connection.cpp -> build/Release/src/connection.o
/home/test/node_modules/oracle/src/connection.cpp: In static member function ‘static v8::Handlev8::Value Connection::Execute(const v8::Arguments&)’:
/home/test/node_modules/oracle/src/connection.cpp:66:27: error: cannot convert ‘uv_loop_t* {aka uv_loop_s_}’ to ‘uv_handle_t_ {aka uv_handle_s_}’ for argument ‘1’ to ‘void uv_ref(uv_handle_t_)’
/home/test/node_modules/oracle/src/connection.cpp: In static member function ‘static v8::Handlev8::Value Connection::Commit(const v8::Arguments&)’:
/home/test/node_modules/oracle/src/connection.cpp:99:27: error: cannot convert ‘uv_loop_t* {aka uv_loop_s_}’ to ‘uv_handle_t_ {aka uv_handle_s_}’ for argument ‘1’ to ‘void uv_ref(uv_handle_t_)’
/home/test/node_modules/oracle/src/connection.cpp: In static member function ‘static v8::Handlev8::Value Connection::Rollback(const v8::Arguments&)’:
/home/test/node_modules/oracle/src/connection.cpp:125:27: error: cannot convert ‘uv_loop_t* {aka uv_loop_s_}’ to ‘uv_handle_t_ {aka uv_handle_s_}’ for argument ‘1’ to ‘void uv_ref(uv_handle_t_)’
/home/test/node_modules/oracle/src/connection.cpp: In static member function ‘static void Connection::EIO_AfterCommit(uv_work_t_)’:
/home/test/node_modules/oracle/src/connection.cpp:265:29: error: cannot convert ‘uv_loop_t_ {aka uv_loop_s_}’ to ‘uv_handle_t_ {aka uv_handle_s_}’ for argument ‘1’ to ‘void uv_unref(uv_handle_t_)’
/home/test/node_modules/oracle/src/connection.cpp: In static member function ‘static void Connection::EIO_AfterRollback(uv_work_t_)’:
/home/test/node_modules/oracle/src/connection.cpp:283:29: error: cannot convert ‘uv_loop_t_ {aka uv_loop_s_}’ to ‘uv_handle_t_ {aka uv_handle_s_}’ for argument ‘1’ to ‘void uv_unref(uv_handle_t_)’
/home/test/node_modules/oracle/src/connection.cpp: In static member function ‘static void Connection::EIO_AfterExecute(uv_work_t_)’:
/home/test/node_modules/oracle/src/connection.cpp:445:29: error: cannot convert ‘uv_loop_t_ {aka uv_loop_s_}’ to ‘uv_handle_t_ {aka uv_handle_s_}’ for argument ‘1’ to ‘void uv_unref(uv_handle_t_)’

[4/5] cxx: src/executeBaton.cpp -> build/Release/src/executeBaton.o
ERROR: [Error: At least one file failed to compile.]
npm ERR! oracle@0.1.3 install: node mnm.js build
npm ERR! sh "-c" "node mnm.js build" failed with 1
npm ERR!
npm ERR! Failed at the oracle@0.1.3 install script.
npm ERR! This is most likely a problem with the oracle package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node mnm.js build
npm ERR! You can get their info via:
npm ERR! npm owner ls oracle
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.2.0-32-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "oracle"
npm ERR! cwd /home/test
npm ERR! node -v v0.8.12
npm ERR! npm -v 1.1.65
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/test/npm-debug.log
npm ERR! not ok code 0


Kind regards,

Ari

@cactusme
Copy link

I am having the same problem. Not sure if it is schakko/node-usb#15 which suggests downgrading to Node 0.6.19

@asinghal
Copy link

asinghal commented Dec 1, 2012

you can build the code yourself and then it works.

Is there an easy way to upload the new built libraries such that npm install would pick the right ones ?

@Arsca
Copy link
Author

Arsca commented Dec 1, 2012

@cactusme: It works ok when downgraded.

regards,

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