Installing XBMC in Fedora 13/CentOS/Red Hat Enterprise

Make sure you have the rpm-fusion repositories enabled. You can find how to do this over here.

Install the following packages

yum install SDL* glew glew-devel libmad-devel tre tre-devel libogg libogg-devel libvorbis libvorbis-devel boost  boost-devel bzip2-devel bzip2-libs fribidi* lzo lzo-devel mysql-libs mysql-devel jasper jasper-devel faac faac-devel  enca enca-devel hal hal-devel hal-libs cmake gperf nasm libXmu-devel fontconfig-devel freetype-devel libXinerama-devel  pcre-devel gcc-c++ sqlite-devel curl-devel mysql-devel libcdio-devel libmms-devel faad2-devel flac-devel libsmbclient-devel  libXtst-devel libsamplerate-devel libtiff-devel pulseaudio-libs-devel avahi-devel wavpack-devel libmpeg2-devel libtool  libmicrohttpd-devel libmodplug-devel redhat-lsb expat-devel subversion gettext gettext-libs gettext-devel

For NVIDIA Graphic cards also install libvdpau-devel.i686

sudo yum install libvdpau-devel

Get the xbmc repository

svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk/ XBMC

Now configure the application

sudo ln -s /usr/lib/mysql/libmysqlclient.so.16.0.0 /usr/lib/libmysqlclient.so
cd XBMC/
./bootstrap
./configure
make

Install XBMC

make install

Start XBMC by typing

xbmc

in a terminal. Of course you can create a shortcut for this.

Sometimes SELinux can prevent XBMC from starting. I always disable it, but you can run the following commands (as root) to let SELinux load the files.

 chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avutil-50-i486-linux.so'
 chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/swscale-0.6.1-i486-linux.so'
chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avcodec-52-i486-linux.so'
chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avformat-52-i486-linux.so'

Add the RPM Fusion repositories to your system

To enable access to both the free and the nonfree repository use the following command:

Fedora 12 and 13:

su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'

Fedora Rawhide aka. what will become Fedora 14 – NOT for Fedora 13:

su -c 'yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-rawhide.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-rawhide.noarch.rpm'

RHEL5 or compatible like CentOS:

su -c 'rpm -Uvh http://download1.rpmfusion.org/free/el/updates/testing/5/i386/rpmfusion-free-release-5-0.1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/testing/5/i386/rpmfusion-nonfree-release-5-0.1.noarch.rpm'

Install Sun Java on Ubuntu 10.04 LTS (Lucid Lynx)

In Ubuntu 10.04 LTS, the sun-java6 packages have been to the Partner Repository. You can add this repository by typing the following line

sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"

Now you can install Sun Java

sudo apt-get install sun-java6-jre sun-java6-plugin

Restart your Firefox browser and the plugin is enabled