Giter Site home page Giter Site logo

wdavidw / node-sigar Goto Github PK

View Code? Open in Web Editor NEW
47.0 47.0 10.0 153 KB

Node.js Binding to SIGAR (System Information Gatherer And Reporter)

Home Page: http://www.adaltas.com/projects/node-sigar

License: Other

Python 1.72% JavaScript 0.19% C++ 83.15% CoffeeScript 14.94%

node-sigar's People

Contributors

charlesb avatar duralog avatar wdavidw avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

node-sigar's Issues

npm [email protected] failure

`
sh: node-waf: command not found
sh: node-waf: command not found
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm ERR! Darwin 15.6.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/bin/npm-cli.js" "update"
npm ERR! node v7.6.0
npm ERR! npm v4.3.0
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'node-waf clean || (exit 0); node-waf configure build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the sigar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf clean || (exit 0); node-waf configure build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sigar
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls sigar
npm ERR! There is likely additional logging output above.`

osx lion npm install -g sigar fails (local install fails as well)

This is on OSX Lion 10.7.2 latest updates

[email protected] preinstall /usr/local/lib/node_modules/sigar
node-waf clean || (exit 0); node-waf configure build

Nothing to clean (project not configured)
Setting srcdir to : /usr/local/lib/node_modules/sigar
Setting blddir to : /usr/local/lib/node_modules/sigar/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /usr/local/lib/node_modules
Checking for node prefix : ok /usr/local/Cellar/node/0.6.5
./autogen.sh: running glibtoolize --copy --force' glibtoolize: putting auxiliary files in.'.
glibtoolize: copying file ./ltmain.sh' glibtoolize: putting macros in AC_CONFIG_MACRO_DIR,m4'.
glibtoolize: copying file m4/libtool.m4' glibtoolize: copying filem4/ltoptions.m4'
glibtoolize: copying file m4/ltsugar.m4' glibtoolize: copying filem4/ltversion.m4'
glibtoolize: copying file m4/lt~obsolete.m4' glibtoolize: Consider adding-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
./autogen.sh: running aclocal' ./autogen.sh: runningautomake --add-missing --copy'
configure.ac:6: installing ./config.sub' configure.ac:5: installing./missing'
configure.ac:5: installing ./install-sh' configure.ac:6: installing./config.guess'
bindings/lua/Makefile.am: installing ./depcomp' ./autogen.sh: runningautoconf'
configure.ac:31: error: possibly undefined macro: AC_DEFINE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
/usr/local/lib/node_modules/sigar/wscript:18: error: Configuring sigar failed.
npm ERR! error installing [email protected] Error: [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! error installing [email protected] sh "-c" "node-waf clean || (exit 0); node-waf configure build" failed with 1
npm ERR! error installing [email protected] at ChildProcess. (/usr/local/Cellar/node/0.6.5/lib/node_modules/npm/lib/utils/exec.js:49:20)
npm ERR! error installing [email protected] at ChildProcess.emit (events.js:70:17)
npm ERR! error installing [email protected] at maybeExit (child_process.js:359:16)
npm ERR! error installing [email protected] at Process.onexit (child_process.js:395:5)
npm ERR! [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! sh "-c" "node-waf clean || (exit 0); node-waf configure build" failed with 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is most likely a problem with the sigar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf clean || (exit 0); node-waf configure build
npm ERR! You can get their info via:
npm ERR! npm owner ls sigar
npm ERR! There is likely additional logging output above.
npm ERR!
npm ERR! System Darwin 11.2.0
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "sigar"
npm ERR! cwd /Users/ktiedt
npm ERR! node -v v0.6.5
npm ERR! npm -v 1.1.0-alpha-6
npm ERR! code ELIFECYCLE
npm ERR! message [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! message sh "-c" "node-waf clean || (exit 0); node-waf configure build" failed with 1

rpcPing usage

No idea on how to use rpcPing, see ./tests/TodoTest.coffee # Test rpcPing

We should provide a short documentation on method usage.

Error running readme.js in /samples

Get the following error trying to run the readme.js example

Error: Cannot find module './build/Release/sigar'

Sigar does not seem to be in this directory.

Please help.

NPM Install error

help!
npm ERR! [email protected] preinstall: node-waf clean || (exit 0); node-waf configure build
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] preinstall script 'node-waf clean || (exit 0); node-waf configure build'.
npm ERR! This is most likely a problem with the sigar package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-waf clean || (exit 0); node-waf configure build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs sigar
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls sigar
npm ERR! There is likely additional logging output above.

netconnectionlist() doesn't handle flag

This could come from my misunderstanding of the API in which case i would document the usage once i understand it.

A temporary solution is forr now to use '-1' .

sigar_net_address_to_string

Calling sigar_net_address_to_string throw symbol error at runtime.

Some impacted functions: netRouteListGet, netInterfaceConfigGet, netInterfaceConfigPrimaryGet, netConnectionListGet

For now, a temporary solution was to import related source code in './src/node_sigar_format.cc'

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.