wdavidw / node-sigar Goto Github PK
View Code? Open in Web Editor NEWNode.js Binding to SIGAR (System Information Gatherer And Reporter)
Home Page: http://www.adaltas.com/projects/node-sigar
License: Other
Node.js Binding to SIGAR (System Information Gatherer And Reporter)
Home Page: http://www.adaltas.com/projects/node-sigar
License: Other
`
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.`
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 file
m4/ltoptions.m4'
glibtoolize: copying file m4/ltsugar.m4' glibtoolize: copying file
m4/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: running
automake --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: running
autoconf'
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
Probably coming from my misunderstanding of the SIGAR API
No idea on how to use rpcPing, see ./tests/TodoTest.coffee # Test rpcPing
We should provide a short documentation on method usage.
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.
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.
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' .
This is purely coming from my lack of c++ expertise.
Impacted function: SigarNetStatPortGet
See: ./tests/TodoTest.coffee # Test testNetAdress
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'
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.