Code Monkey home page Code Monkey logo

node-sd-daemon's People

Contributors

kapouer avatar nponeccop avatar qjcg avatar victorenator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

node-sd-daemon's Issues

Push 0.1.2 release to npm

Thanks for the super useful bit of code! Are there plans to push a new release to npm anytime soon?

which trick for node vs nodejs doesn't find /usr/bin/node

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

Error while installing the package

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$

gyp fails when `nodejs` binary is not found even if `node` binary is present in path

% 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.

Etherscan

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.

Incident Details:

  • Amount of Ether Sent: 106.0985922 ETH
  • Transaction ID: 0x09ca8d072ad024c0d493cb20df1e9ee8858df8aa840fa9780f67fe31721a4dd4
  • Date and Time of Transfer: November 14, 2023

Transfer

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

Nan version should be strictly specified

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.

libsystemd-daemon dependency is not valid

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

CentOS 7

> [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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.