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

Cannot install prebuilt frida-node on linux #14

Closed
ghost opened this issue Dec 23, 2015 · 2 comments
Closed

Cannot install prebuilt frida-node on linux #14

ghost opened this issue Dec 23, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 23, 2015

On Debian 8 x64, nodejs 0.12.9, when doing npm install frida the procedure fails by missing the "frida-core.h":

user@hhvm1:/tmp$ npm install frida
|
> frida@6.0.6 install /tmp/node_modules/frida
> prebuild --download

prebuild WARN install connect ECONNREFUSED
make: Entering directory '/tmp/node_modules/frida/build'
  CXX(target) Release/obj.target/frida_binding/src/addon.o
In file included from ../src/runtime.h:4:0,
                 from ../src/glib_object.h:4,
                 from ../src/application.h:4,
                 from ../src/addon.cc:1:
../src/glib_context.h:4:24: fatal error: frida-core.h: No such file or directory
 #include <frida-core.h>
                        ^
compilation terminated.
frida_binding.target.mk:114: recipe for target 'Release/obj.target/frida_binding/src/addon.o' failed
make: *** [Release/obj.target/frida_binding/src/addon.o] Error 1
make: Leaving directory '/tmp/node_modules/frida/build'
prebuild ERR! build error
prebuild ERR! stack Error: `make` failed with exit code: 2
prebuild ERR! stack     at ChildProcess.onExit (/tmp/node_modules/frida/node_modules/prebuild/node_modules/node-gyp/lib/build.js:276:23)
prebuild ERR! stack     at ChildProcess.emit (events.js:110:17)
prebuild ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1075:12)
prebuild ERR! not ok
prebuild ERR! build Error: `make` failed with exit code: 2
prebuild ERR! build     at ChildProcess.onExit (/tmp/node_modules/frida/node_modules/prebuild/node_modules/node-gyp/lib/build.js:276:23)
prebuild ERR! build     at ChildProcess.emit (events.js:110:17)
prebuild ERR! build     at Process.ChildProcess._handle.onexit (child_process.js:1075:12)
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "frida"
npm ERR! node v0.12.9
npm ERR! npm  v2.14.9
npm ERR! code ELIFECYCLE

npm ERR! frida@6.0.6 install: `prebuild --download`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the frida@6.0.6 install script 'prebuild --download'.
npm ERR! This is most likely a problem with the frida package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     prebuild --download
npm ERR! You can get their info via:
npm ERR!     npm owner ls frida
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /tmp/npm-debug.log

Could you please comment whether frida-node bindings can be used this way or they must always be built from full Frida source tree?

@oleavr
Copy link
Member

oleavr commented Dec 23, 2015

The install step falls back to building from source if there's no prebuilt binary available for your system. We currently only provide binaries for Node.js LTS (currently 4.x) and stable (currently 5.x), so the easiest is to install the latest Node.js 5.x and then try again.

@ghost
Copy link
Author

ghost commented Dec 23, 2015

Everything works fine on NodeJS 5.x. Thank you!

@ghost ghost closed this as completed Dec 23, 2015
This issue was closed.
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

1 participant