Thank you Michal. I verified the binary rpmbuild exists at /usr/bin/rpmbuild and ran
autobuild but it failed with these errors:
>>>>>>>>>>>>>>>>>>>>>
root@machine:/tmp/libvirt-snmp-0.0.3# ./autobuild.sh
test -n "$1" && RESULTS=$1 || RESULTS=results.log
: ${AUTOBUILD_INSTALL_ROOT=$HOME/builder}
# Make things clean.
test -f Makefile && make -k distclean || :
rm -rf build
mkdir build
cd build
MIBDIR=$AUTOBUILD_INSTALL_ROOT/share/snmp/mibs
mkdir -p $MIBDIR
../autogen.sh --prefix=$AUTOBUILD_INSTALL_ROOT \
--with-mibdir=$MIBDIR
Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf
line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for memset... yes
checking for strdup... yes
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for size_t... yes
checking for an ANSI C-conforming const... yes
checking return type of signal handlers... void
../configure: line 4433: syntax error near unexpected token `LIBVIRT,'
../configure: line 4433: `PKG_CHECK_MODULES(LIBVIRT, libvirt >=
$LIBVIRT_REQUIRED)'
root@nv-kvm02:/tmp/libvirt-snmp-0.0.3#
Thanks.
--- On Thu, 5/2/13, Michal Privoznik <mprivozn(a)redhat.com> wrote:
From: Michal Privoznik <mprivozn(a)redhat.com>
Subject: Re: [libvirt-users] libvirt-snmp on Ubuntu
To: "george john" <simplyjoe13(a)yahoo.com>
Cc: libvirt-users(a)redhat.com
Date: Thursday, May 2, 2013, 12:52 AM
On 01.05.2013 16:59, george john
wrote:
> Hi,
> Are there packages of "libvirt-snmp" for Ubuntu? Or
instructions to compile libvirt-snmp on Ubuntu?
> Looks like the instructions given at
http://wiki.libvirt.org/page/Libvirt-snmp
are for RedHat.
>
> Thank you,
> George
You can use:
./autobuild && sudo make install
The autobuild script runs rpmbuild iff the /usr/bin/rpmbuild
binary
exists. Unfortunately, I am not that familiar with Ubuntu to
make .deb
package.
Michal