Installing MythTV on RHEL/CentOS
This is a collection of information to help set up MythTV on a Red Hat Enterprise Linux (RHEL) or CentOS 5.2 machine.
Installing MythTV on RHEL/CentOS is nearly identical to Fedora. Being Fedora has well updated howto's this guide will note the differences in install MythTV on RHEL/CentOS instead of every step required in the process.
Why choose RHEL/CentOS
Fedora is one of the most popular and most supported in the Myth community. One of the major downfalls of Fedora is the life cycle is only ~6 months and packages are only updated for the two most recent releases. This means to stay on a supported OS you must upgrade or completely redo you Myth box every year. RHEL/CentOS gives you the advantage of using a OS that is nearly identical to Fedora yet supported for >6 years.
Choosing between RHEL or CentOS
RHEL is Red Hat's enterprise distribution. Generally used for servers that require long life cycles and stability. Based off the development of Fedora. RHEL is sold with support through Red Hat. While support is of great value many users of MythTV may be looking to save money and rely on the community for support. This is where CentOS comes in. Being, RHEL is based on GPL software Red Hat must release the source to the entire OS. CentOS takes the source, removes logo/trademarks of Red Hat and creates CentOS. CentOS is a 100% binary compatible with RHEL packages, so RPMs for EL are good for CentOS.
As RHEL is designed for being an enterprise class operating system most of the DVB and v4l functionality is left out of the kernel to keep it minimalistic, free of clutter and to eliminate any possible issues with newly introduced modules. The centosplus kernel includes all needed v4l and DVB modules to work with most established tuner cards. To install:
su - yum update kernel --enablerepo=centosplus
It is strongly discouraged to enable the centosplus repo by default as there is a high likely hood of one of its packages conflicting with another core package/service. Ensure the centosplus kernel is loaded on boot by running either system-config-boot from the GNOME System->Administration menu or hand editing /boot/grub/grub.conf. After installation there should be no need to upgrade the kernel ever again unless a critical flaw is found, if it aint broke, don't fix it.
DVB should now be available.
Configuring Yum Repo's
Myth 0.22 and QT44
On CentOS 5.4 I found the following necessary.
Add the following exclude line to the [base] section of the file /etc/yum.repos.d/CentOS-Base.repo:
If this modification is not made qt4 and qt4-mysql are drawn from base repo rather than atrpms repo and this causes a libQTWebKit.so.4 error to be thrown when a mythtv executable is started.
Myth 0.24+ and Qt 4.5
Starting with MythTV's subversion changeset 25232, MythTV requires Qt v4.5 to compile. Qt 4.5 RPMs for RHEL5/CentOS5 are available from pramberger.at. The following required packages can be found from various mirrors around the net or by going to the main pramberger.at site directly. Instructions for using the pramberger.at repository are available at: http://www.pramberger.at/peter/services/repository/
Compiling MythTV 0.24 from source
On CentOS 5, you can compile MythTV 0.24 from source with some additional steps:
- Make sure you have the video4linux-devel, kernel-devel, and kernel-headers packages from ATrpms and CentOS installed
- Add the --dvb-path=/usr/include/v4l line to your configure script to use the video4linux headers
- Create a symbolic link from the kernel sources compile.h to your include directory using:
ln -s /usr/src/kernels/`uname -r`/include/linux/compiler.h /usr/include/linux/compiler.h
There will also be issues with Python because the Python version shipped with CentOS is older than what MythTV requires. This section should be updated with more detailed information on workarounds for that issue.
Just like Fedora Axel provides great packages for RHEL/CentOS. To install the repo on i386 run:
You will also need to enable the testing repo to get the appropriate dependencies.
--cut-- # # requires stable # [atrpms-testing] name=Red Hat Enterprise Linux 5 - x86_64 - ATrpms testing baseurl=http://dl.atrpms.net/el5-x86_64/atrpms/testing failovermethod=priority enabled=1 --cut--
Example i386 version of /etc/yum.repos.d/ATrpms.repo
[atrpms] name=EL $releasever - $basearch - ATrpms baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms gpgcheck=1 enabled=1 [atrpms-testing] name=EL $releasever - $basearch - ATrpms - ATrpms testing baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/testing failovermethod=priority enabled=1
Although RPM Forge is not required for MythTV is provides many packages a home user may want.
Red Hat Enterprise Linux 5 / x86_64:
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
EPEL was started because many Fedora contributors wanted to use the Fedora packages they maintain on Red Hat Enterprise Linux (RHEL) and its compatible derivatives.
To install for both i386 and x86-64
From this point the differences between Fedora and RHEL/CentOS are extremely Trival. Continue your install from the Fedora page