Monday, April 13, 2009

Installing zenoss-core on Ubuntu Intrepid

Zenoss only has instructions for older versions of ubuntu. I had to install the following packages to get it to compile on intrepid:

sudo apt-get install \
libpango1.0-dev \
libcairo2-dev \
libxml-2 \
python-cairo-dev \
gettext \
mysql-dev \
python-setuptools bzip2 \
mysql-server mysql-client python-dev build-essential subversion snmpd autoconf snmp


Which got me to this error:

/usr/include/asm-generic/fcntl.h:117: error: redefinition of ‘struct flock’
/usr/include/asm-generic/fcntl.h:140: error: redefinition of ‘struct flock64’

but thankfully someone has a patch already:

--- Samba/source/ntvfs/sysdep/inotify.c.~1~ 2008-07-30 15:44:55.000000000 -0400
+++ Samba/source/ntvfs/sysdep/inotify.c 2008-11-11 15:56:44.000000000 -0500
@@ -29,10 +29,10 @@
#include "lib/util/dlinklist.h"
#include "libcli/raw/smb.h"

-#include
-#include
+#include

-#ifndef HAVE_INOTIFY_INIT
+#if 0
+#include
/*
glibc doesn't define these functions yet (as of March 2006)
*/

apply with:

$ cd inst/build/wmi-*/
$ patch -p0 < patchfile

No comments: