Next Previous Contents

5. Downloading and compiling.

Get MythTV from the mythtv.org web site. Save the tarball to a directory you can find.

Get XMLTV from http://xmltv.sourceforge.net. Download version 0.5.14 if you're in North America.

NOTE: 0.5.14 is the last version that will work with MythTV 0.10. XMLTV 0.5.15 will only work with CVS versions of MythTV. Don't install the latest version of XMLTV if you're not running CVS.


NOTE for Mandrake users:  If you have added a "PLF" mirror, you may skip the
next step and type:

# urpmi libmp3lame0 libmp3lame0-devel

NOTE for Red Hat users: If you are installing with apt or yum, you may skip this step, it will be taken care
of. Otherwise get lame and lame-devel from FreshRPMS: http://freshrpms.net/rpm/lame/

After downloading, be sure to install both:
# rpm -Uvh lame*

Get lame from http://www.mp3dev.org/mp3. Download the source code to v3.93.1 by following the links to sourceforge.net

5.1 Notes on compiling on a system with non-Intel processors.

If you've got a system with an AMD K6-2 or a VIA C3 processor, make the following change in the settings.pro file.

Look for

-march=pentiumpro
and replace it with
-march=i586
before you compile.

Recent AMD processors, like the Duron, Thunderbird and Athlon don't need this change.

5.2 Building LAME.

Open a shell and switch to the directory where you saved lame.

$ tar -xzf lame-3.93.1.tar.gz
$ cd lame-3.93.1
$ ./configure
$ make
$ make test
$ su
# make install
Check that it worked:
# ls -l /usr/local/lib
-rw-r--r--    1 root     root       381706 Nov  4 14:22 libmp3lame.a
-rwxr-xr-x    1 root     root          674 Nov  4 14:22 libmp3lame.la*
lrwxrwxrwx    1 root     root           19 Nov  4 14:22 libmp3lame.so ->
libmp3lame.so.0.0.0*
lrwxrwxrwx    1 root     root           19 Nov  4 14:22 libmp3lame.so.0 ->
libmp3lame.so.0.0.0*
-rwxr-xr-x    1 root     root       360197 Nov  4 14:22
libmp3lame.so.0.0.0*

# exit
$ 

5.3 XMLTV.

Red Hat Linux 9:

RPMs for XMLTV and all of its dependencies can be obtained from http://atrpms.physik.fu-berlin.de/name/xmltv/. The web page has a list of all the dependent packages you must download and install.

# rpm -Uvh xmltv* perl*

If you install from this location you may skip to Manually building MythTV.

Mandrake

You may install the XMLTV prerequisites if you have added a contrib mirror by typing:

# urpmi perl-xml-twig perl-xml-writer perl-datemanip perl-libwww-perl

and skipping straight to the XMLTV compililation step.

Other distributions and manual installation.

NOTE: Red Hat Linux 8.0 and Suse 8.1 users, you must download and install an updated version of libexpat. The version that ships with Red Hat Linux 8.0 and Suse 8.1 (version 1.95.4) is buggy, and will cause problems with XML::Twig. All other distributions may skip this step and proceed with untar'ing the xmltv file.

If you get errors installing XML::Twig or other XMLTV prerequisites, try deleting the old versions of libexpat

$ su
# rm -f /usr/lib/libexpat*
# /sbin/ldconfig
# exit

Download version 1.95.5 from sourceforge.net: http://sourceforge.net/projects/expat/

Open a shell prompt:

$ tar -xzf expat-1.95.5.tar.gz
$ cd expat-1.95.5
$ ./configure
$ make
$ su
# make install
# /sbin/ldconfig
# exit
$ 

Continuing on:

Untar the xmltv file:

$ tar -xjf xmltv-0.5.15.tar.bz2
$ cd xmltv-0.5.15
Install the xmltv prerequisites:

$ su
# perl -MCPAN -e shell
cpan> install XML::Twig
cpan> install Date::Manip
Date::Manip is up to date.
cpan> install LWP
cpan> install XML::Writer
cpan> exit

Change to the XMLTV directory and compile it:

$ cd xmltv-0.5.15
$ perl Makefile.PL
You can answer "N" to the tv_check, tv_pick_cgi questions. Say "yes" to the grabber required for your location.

You may get errors about modules not being installed. They shouldn't matter if you're installing North America and have followed the instructions to this point.

$ make
$ make test
$ su
# make install
# exit

5.4 Manually building MythTV.

Unpack MythTV

$ tar -xjf mythtv-0.10.tar.bz2
$ cd mythtv-0.10
$ ./configure
$ make


NOTE for Red Hat 8 users: You must manually modify a Makefile
within the themes directory, otherwise your on screen display (OSD) will be
"generic" rather than themed.  The solution is to edit the Makefile within
the themes directory and comment out (using a # symbol before each line)
every line that starts with the word "strip". Make sure you switch back to
the MythTV build directory before executing the next step.

Switch to superuser:

$ su
# make install
# exit

NOTE: subsequent configuration steps assume that you are within the MythTV directory that you cd'd to above.

5.5 Gentoo.

Installation of MythTV on Gentoo consists of making a local portage directory with the necessary ebuild and digest files. Tony Clark mailto:tclark@telia.net has created a portage file which can be downloaded from http://smalltime.com/mythtv/mythtv-gentoo-portage.tar.bz2

Once you have downloaded the portage file, installation is simple.

$ su -
# emerge rsync # make sure portage is up to date.
# cd /usr/local
# tar xvfjp Path_To/mythtv-gentoo-portage.tar.bz2
# vi /etc/make.conf

Add mysql to your USE variable. ie USE="mysql ...."

Locate the line that contains: #/usr/local/portage and remove the #

# ACCEPT_KEYWORDS="~x86" emerge mythtv

NOTE: If you have perl dependency problems update to >=ExtUtils-MakeMaker-6.05-r4


Next Previous Contents