Category: Red Hat and CentOS

Red Hat Enterprise Linux (RHEL) and CentOS

Building httpd 2.4.6

When trying to build an RPM from the Apache source tarball, rpmbuild bails with: RPM build errors: Installed (but unpackaged) file(s) found: /usr/lib64/httpd/modules/mod_proxy_wstunnel.so The problem is that the mod_proxy_wstunnel.so file has been omitted from the httpd.spec file used to build the RPM. Extract the tarball, open up httpd.spec in your favourite text editor and scroll down until you find a...

Python setuptools and get_python_version is not defined

If you run into the below error when using setuptools (setup.py), then it’s quite possible that you’re using an outdated version of Python’s setuptools. In particular, the python-setuptools package in the CentOS yum repository is too old. Traceback (most recent call last): File “setup.py”, line 19, in ? setup(**metadata) File “/usr/lib64/python2.4/distutils/core.py”, line 149, in setup dist.run_commands() File “/usr/lib64/python2.4/distutils/dist.py”, line 946,...

HyperVM and yum update Transaction Check Errors

If you’re having file conflict problems when running “yum update” on servers with the lxlabsupdate repository for HyperVM (or Kloxo) installed then there’s a simple resolution: cd /var/cache/yum/lxlabsupdate/packages/ rpm -Uvh *.rpm –replacefiles –replacepkgs This should fix errors such as: file /usr/share/man/man1/pcregrep.1.gz from install of pcre-8.02-1.el5_5.1.x86_64 conflicts with file from package pcre-6.6-2.el5_1.7.i386 file /usr/share/man/man1/pcretest.1.gz from install of pcre-8.02-1.el5_5.1.x86_64 conflicts with file...