old blog,

Zenoss on Fedora 8

Izhar Firdaus Izhar Firdaus Follow Support Feb 05, 2008 · 1 min read
Zenoss on Fedora 8
Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.
I've wasted 1.5 day trying to get zenoss from their RPM to run on my F8 laptop using compat-python24 from livna. I've tried lots of ways like recompiling, export PYTHON and PYTHONPATH env variables etc but without much luck. I solved it just now after looking into the python files and noticed that they are all hardcoded with /usr/bin/python instead of /usr/bin/env python. There are even some that uses /opt/zenoss/bin/python. Here's my little hackfix to make zenoss starts cleanly.

Before running this, I recommend existing zenoss install to be removed, rm -rf /opt/zenoss, and reinstall it clean.


#!/bin/sh

ZENOSS_DIR="/opt/zenoss"
PYTHON="/usr/bin/python2.4"
cd $ZENOSS_DIR

find . -type f -exec sed -i "s|/usr/bin/python|${ZENOSS_DIR}/bin/python|g" '{}' ';'

cd $ZENOSS_DIR/bin
rm python
ln -s $PYTHON python


A little description about the above script. It simply change all /usr/bin/python to /opt/zenoss/bin/python and replace the symlink /opt/zenoss/bin/python to point to /usr/bin/python2.4

Now Zenoss can be started using /sbin/service zenoss start.

Happy that I have a test instance now, time to figure out how to install it on freebsd qemu. >.<
Written by Izhar Firdaus Follow Support
I'm a system architect, data engineer and developer advocate with passion in Free / Open Source software, entrepreneurship, community building, education and martial art. I take enjoyment in bridging and bringing together different FOSS technologies to help businesses and organizations utilize IT infrastructure to aid and optimize their business and organizational process.

Fedora will be having a win32 livecd-iso-to-usb tool

I just noticed Luke Macken's post at fedora-devel-list. https://www.redhat.com/archives/fedora-devel-list/2008-February/msg00087.html...

In old blog, Feb 03, 2008

« Previous Post

Fedora 9 (Sulphur) Alpha

Fedora 9 (Sulphur) Alpha is out for developers, early adopters, and those who can't stand to wait.https://www.redhat.com/archives/fed...

In old blog, Feb 06, 2008

Next Post »