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.10


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

# urpmi libmp3lame0 libmp3lame0-devel

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 Building XMLTV.

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
$ 

NOTE: Red Hat Linux 8.0 users, make sure that you set your LANG as described in Section 4.

Continuing on:

Untar the xmltv file:

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


NOTE for Mandrake Users: you may install the XMLTV prerequisites if you
have added a cooker mirror by typing:

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

and skipping to the compile step.

$ 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.10
$ 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.8.tar.bz2
$ cd mythtv-0.8
$ ./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

5.6 Debian.

Debian packages for MythTV and some of its add-on modules have been packaged by Matt Zimmerman mailto:mdz@debian.org and are available at http://dijkstra.csh.rit.edu:8088/~mdz/debian/dists/woody/mythtv/, including installation instructions. All of the prerequisites for MythTV are available as Debian packages.

The mailing list message for this announcement can be accessed at http://www.snowman.net/pipermail/mythtv-dev/2002-November/001116.html.


Next Previous Contents