Skip to content

install problem because of java dependency #20

Description

@bydrim

I am having problem with "npm install jmx".

...
...
In file included from ../../nan/nan.h:51:0,
                 from ../src/utils.h:12,
                 from ../src/utils.cpp:1:
/pc-path/.node-gyp/10.13.0/include/node/node.h:176:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/pc-path/.node-gyp/10.13.0/include/node/node.h:91:42: note: in definition of macro 'NODE_DEPRECATED'
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
../src/utils.cpp: In function '_jobject* v8ToJava(JNIEnv*, v8::Local<v8::Value>)':
../src/utils.cpp:342:41: warning: 'v8::Local<v8::String> v8::Value::ToString() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
     v8::String::Value val(arg->ToString());
                                         ^
In file included from ../src/utils.h:6:0,
                 from ../src/utils.cpp:1:
/pc-path/.node-gyp/10.13.0/include/node/v8.h:10040:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
../src/utils.cpp:342:42: warning: 'v8::String::Value::Value(v8::Local<v8::Value>)' is deprecated: Use Isolate version [-Wdeprecated-declarations]
     v8::String::Value val(arg->ToString());
                                          ^
In file included from /pc-path/.node-gyp/10.13.0/include/node/v8.h:26:0,
                 from ../src/utils.h:6,
                 from ../src/utils.cpp:1:
/pc-path/.node-gyp/10.13.0/include/node/v8.h:2916:51: note: declared here
     V8_DEPRECATED("Use Isolate version", explicit Value(Local<v8::Value> obj));
                                                   ^
/pc-path/.node-gyp/10.13.0/include/node/v8config.h:324:3: note: in definition of macro 'V8_DEPRECATED'
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  SOLINK_MODULE(target) Release/obj.target/nodejavabridge_bindings.node
/usr/bin/ld: cannot find -ljvm
collect2: error: ld returned 1 exit status
nodejavabridge_bindings.target.mk:143: recipe for target 'Release/obj.target/nodejavabridge_bindings.node' failed
make: *** [Release/obj.target/nodejavabridge_bindings.node] Error 1
make: Leaving directory '/pc-path/to-my-project/node_modules/java/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/pc-path/.nvm/versions/node/v10.13.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Linux 4.15.0-46-generic
gyp ERR! command "/pc-path/.nvm/versions/node/v10.13.0/bin/node" "/pc-path/.nvm/versions/node/v10.13.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /pc-path/to-my-project/node_modules/java
gyp ERR! node -v v10.13.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm WARN socket-chat-example@0.0.1 No repository field.
npm WARN socket-chat-example@0.0.1 No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! java@0.9.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the java@0.9.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /pc-path/.npm/_logs/2019-03-22T07_50_11_414Z-debug.log

I tried installing latest java ( which is 0.11.0) and didn't get error, but i get same error if i try to install java@0.9.1

Can you update the java dependency to its latest version ?
Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions