victorenator / node-sd-daemon Goto Github PK
View Code? Open in Web Editor NEWBindings for libsystemd-daemon
Bindings for libsystemd-daemon
Thanks for the super useful bit of code! Are there plans to push a new release to npm anytime soon?
npm install sd-daemon fails with the followin message:
$ npm install sd-daemon
> [email protected] install /home/quux/node_modules/sd-daemon
> node-gyp rebuild
which: no nodejs in (/usr/lib/node_modules/npm/bin/node-gyp-bin:/home/quux/node_modules/sd-daemon/node_modules/.bin:/home/quux/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/bin
gyp: Call to '['sh', '-c', 'which nodejs || which node']' returned exit status 0 while in binding.gyp. while trying to load binding.gyp
Executing which
manually however does find node:
$ sh -c 'which nodejs || which node'
which: no nodejs in (/usr/local/sbin:/usr/local/bin:/usr/bin)
/usr/bin/node
Hi I got this error when I try to install your package
Thanks for helping
-bash-4.2$ npm install sd-daemon
-
> [email protected] install /tmp/node_modules/sd-daemon
> node-gyp rebuild
gyp: Call to '['sh', '-c', 'pkg-config --silence-errors --libs-only-l libsystemd || pkg-config --silence-errors --libs-only-l libsystemd-daemon']' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.10.0-229.1.2.el7.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /tmp/node_modules/sd-daemon
gyp ERR! node -v v0.10.39
gyp ERR! node-gyp -v v1.0.1
gyp ERR! not ok
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the sd-daemon 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 sd-daemon
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.10.0-229.1.2.el7.x86_64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "sd-daemon"
npm ERR! cwd /tmp
npm ERR! node -v v0.10.39
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
-bash-4.2$
% which node
/usr/bin/node
% which nodejs
nodejs not found
npm install
output:
> [email protected] install /home/cody/foo/node_modules/sd-daemon
> node-gyp rebuild
child_process: customFds option is deprecated, use stdio instead.
which: no nodejs in (/usr/lib/node_modules/npm/bin/node-gyp-bin:/home/cody/foo/node_modules/sd-daemon/node_modules/.bin:/home/cody/foo/node_modules/.bin:/usr/lib/ccache/bin:/home/cody/depot_tools:/home/cody/trifles/bin:/home/cody/bin:/home/cody/.local/bin:/home/cody/x-tools/arm-cody-linux-gnueabihf/bin:/home/cody/x-tools/arm-none-eabi/bin:/home/cody/x-tools/arm-unknown-eabi/bin:/home/cody/x-tools/arm-unknown-linux-gnueabihf/bin:/home/cody/x-tools/ct-ng/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl)
gyp: Call to 'which nodejs || which node' returned exit status 0. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
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 Linux 3.14.34-1-lts
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
cwd /home/cody/foo/node_modules/sd-daemon
gyp ERR! node -v v0.12.0
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
Note that gyp even is nice enough to run node -v
at the end to show us it exists.
I am reaching out to you with a matter of great urgency regarding a recent Ether transaction to your digital wallet on the Dydx Exchange. Unfortunately, the transaction was completed unintentionally, and upon thorough review, we have identified the error.
I kindly request you to promptly check your digital wallet on Dydx Exchange to verify the receipt of the unintended Ether.
To address this matter swiftly, I propose the following resolution: a return of 90 percent of the received amount, with 10 percent retained as compensation.
Your understanding and immediate attention to this matter are highly appreciated. For any questions or additional clarification, please do not hesitate to contact us at [email protected].
Best regards,
John Glenn
After upgrade of nan to v2 this module is no longer compiling under node v0.10.x. The reason for this is it expects nan version "any" in package.json, but nan from version 2.0.0 no longer supports node <0.12.
Can the node-addon-api be declared as dev dependency ?
Please have a look:
http://cgit.freedesktop.org/systemd/systemd/tree/NEWS
"The APIs "sd-journal.h", "sd-login.h", "sd-id128.h", "sd-daemon.h" are no longer found in individual libraries libsystemd-journal.so, libsystemd-login.so, libsystemd-id128.so, libsystemd-daemon.so. Instead, we have merged them into a single library, libsystemd.so, which provides all symbols."
If you can update binding.gyp it will be great :-)
Thanks for the module :-)
Regards,
Michal
> [email protected] install /home/node/instance5/node_modules/ib-admin-cap/node_modules/ib-express/node_modules/sd-daemon
> node-gyp rebuild
Package libsystemd was not found in the pkg-config search path.
Perhaps you should add the directory containing `libsystemd.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libsystemd' found
gyp: Call to 'pkg-config --libs-only-l libsystemd' returned exit status 1. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:343:16)
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 Linux 3.10.0-123.9.2.el7.x86_64
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/node/instance5/node_modules/ib-admin-cap/node_modules/ib-express/node_modules/sd-daemon
gyp ERR! node -v v0.10.33
gyp ERR! node-gyp -v v1.0.2
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
manual clone of repo and running node-gyp rebuild
is successful.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.