Hi all!
How should I build Sigar so I can use it with Python?
I've just downloaded hyperic-sigar-1.6.3 from SourceForge, unpacked it and, from bindings/python, ran:
$ python setup.py install
I tried running this under Fedora 12 and MacOS X 10.5, but the same error occured (attached error log). I also checked out the source from the svn repository, and the same error occured.
Thanks in advance!
Tatiana
-----
running install
running build
running build_py
creating build
creating build/lib.macosx-10.3-fat-2.6
copying sigar.py -> build/lib.macosx-10.3-fat-2.6
running build_ext
building '_sigar' extension
creating build/temp.macosx-10.3-fat-2.6
gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -I../java/sigar-bin/include -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c _sigar.c -o build/temp.macosx-10.3-fat-2.6/_sigar.o -Wall
_sigar.c:20:19: error: sigar.h: No such file or directory
_sigar.c:21:28: error: sigar_fileinfo.h: No such file or directory
_sigar.c:22:26: error: sigar_format.h: No such file or directory
(...)
error: command 'gcc' failed with exit status 1
|