Sadly SIGAR requires
ant for building as it is meant to be used with a JNI-wrapper in Java applications. Real men use C, so we need something else for building: cmake.
cmake is a cross-platform, autotools replacement. It works on Unix and win32 and generates native Makefiles. On Unix it is
make, on win32 it is
nmake, on macosx uses the XCode framework.
That keeps even the build portable. You can get a binary from http://cmake.org/
$ wget http://downloads.sourceforge.net/sigar/hyperic-sigar-22.214.171.124-src.tar.gz $ gzip -cd hyperic-sigar-126.96.36.199-src.tar.gz | tar xf - $ cd hyperic-sigar-188.8.131.52-src $ wget http://jan.kneschke.de/downloads/sigar/hyperic-sigar-184.108.40.206-src-cmake.tar.gz $ gzip -cd hyperic-sigar-220.127.116.11-src-cmake.tar.gz | tar xf - $ cmake . $ make
It should build a
sigar-test-all and the
build/libsigar.a as static library for your own applications.
sigar-test-all is a test-app which calls all sigar functions and prints their output to