Compile MythTV with GIT on Centos 6.x

I used the Centos NetInstall disk, pointing it to the 6.2 repos to save on updates later.

Installed CENTOS using Minimal defalts. Once installed i installed Nano as i HATE VI but whatever you use is ok.

Step 1 – Enable CentosPLUS, Repositories etc
nano /etc/yum.repos.d/CentOS-Base.repo
Under [CentosPlus] change Enable to 1, Save and Exit

Install EPEL and RPM Fusion


rpm -Uvh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm
rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/6/i386/rpmfusion-free-release-6-0.1.noarch.rpm

Update your installation and reboot

yum -y update
reboot

Step 2 – Disable Nouvaeu
I guess this is optional but i need to disable Nouvaeu for nvidia drivers to work. soo


nano /boot/grub/grub.conf

Add the following to the end of the KERNEL line: rdblacklist=nouveau
Next blacklist it and rebuild initrd

echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r)-nouveau.img
dracut /boot/initramfs-$(uname -r).img $(uname -r)
reboot

finally after reboot remove the driver (if installed)

yum remove xorg-x11-drv-nouveau

Step 3 – Dev tools and Prerequisits
Install the Dev tools to build Myth, and the prerequisits


yum groupinstall 'Development Tools'
yum -y install qt-devel lame-mp3x lame-devel qtwebkit-devel perl-Net-UPnP.noarch perl-DBI perl-ExtUtils-MakeMaker python-lxml yasm MySQL-python mysql-server qt-mysql libvdpau-devel alsa-lib-devel ccache

If you are going to be using the graphical front end (IE not Backend SLAVE only on this one) install X and setup the xinitrc file
yum install xorg-x11-xinit xorg-x11-server-Xorg twm xterm
Step 4 – Download and Compile

cd /usr/src
git clone -b fixes/0.24 git://github.com/MythTV/mythtv.git mythtv
cd mythtv/mythtv
./configure

If everythign checks out


make
make install

Step 5 – Config
Configure and start database

cd database
chkconfig mysqld --level 2345 on
service mysqld start
mysql < mc.sql

Setup Libraries


echo /usr/local/lib64/ > /etc/ld.so.conf.d/locallib.conf
echo /usr/local/lib/ >> /etc/ld.so.conf.d/locallib.conf
ldconfig -v

Reboot

Step 6 - Testing
Since MYTHTV keeps crashig on my i have it running in an VM environment, for testing i setup a basic config

Once i get Myth stable on this install i will update with rest config rules

This entry was posted in linux, MythTV, Software Development. Bookmark the permalink.

One Response to Compile MythTV with GIT on Centos 6.x

  1. Pingback: MythTV on VMWARE - Debugging | PacketFOG

Leave a Reply

Your email address will not be published.