Compiling Rivendell from Source on Fedora 8
From Rivendell Wiki
This is a step by step guide on how to compile Rivendell from source and install it on Fedora 8. It assumes you have a default Fedora 8 install. (Though I haven't tried it yet, this guide should be safe to follow on Fedora 9)
A command with # before it indicates it needs to be run as root. A command with $ before it means it can be run as a regular user.
Contents |
Install the mysql server
Rivendell uses the mysql database server to store all its information.
# yum install mysql-server
Add mysql server to the default runlevels so it starts on boot:
# chkconfig mysqld on
Start mysqld:
# service mysqld start
You will then be given a message which tells you to set your mysql root password. Later on you will use the mysql root username and password you set here with rdadmin to initialize Rivendell's database. Go ahead and set the root mysql password now:
# /usr/bin/mysqladmin -u root password 'new-password'
Set up prerequisites
You will need the livna repository for some packages (mpg321):
# rpm -ivh http://rpm.livna.org/livna-release-8.rpm
# yum install gcc-c++ # yum install qt3-devel qt4-devel qt4 qt4-x11 qt-MySQL # yum install jack-audio-connection-kit-devel jack-audio-connection-kit # yum install mpg321 # yum install libsamplerate-devel # yum install flac-devel # yum install id3lib-devel libid3tag-devel
The following are already installed in a default Fedora 8 install but for some reason if you have trouble configuring rivendell and it complains about any of these you may need to install them manually:
# yum install libsamplerate # yum install cdparanoia # yum install sox # yum install libid3tag id3lib
Install Rivendell
Download Rivendell 1.0.0rc1:
$ wget http://www.rivendellaudio.org/ftpdocs/rivendell/rivendell-1.0.0rc1.tar.gz
Extract Rivendell from the tar archive:
$ tar -xzvf rivendell-1.0.0rc1.tar.gz
Change directory to the Rivendell directory:
$ cd rivendell-1.0.0rc1
Run the configure script which checks to make sure you have all dependencies installed:
$ ./configure
It should go through without any errors if the dependencies are setup correctly. If not it will complain and it should indicate what is missing. Use yum to install whatever it is complaining about.
Once it goes through completely without errors it is time to compile the software. This can take a long time:
$ make
When it is finished assuming it finished without any errors you can install the software, you'll need to be root to do this:
$ su - <enter your root password>
# make install
Post Installation setup
Copy the Rivendell configuration file from the install directory to /etc/
# cp /home/<regular user name>/rivendell-0.9.84/conf/rd.conf-sample /etc/rd.conf
Open the /etc/rd.conf configuration file in a text editor like vi or gedit:
# gedit /etc/rd.conf
Change the following lines:
AudioOwner=myself AudioGroup=users
Change them to your actual normal user and group. For example, my regular user and group are both john:
AudioOwner=john AudioGroup=john
Open the /etc/init.d/rivendell init script in a text editor like vi or gedit:
# gedit /etc/init.d/rivendell
Change the following line:
# Required-Start: $remote_fs mysql
Change the incorrect mysql reference to mysqld so that the mysql server is started before the Rivendell services.
# Required-Start: $remote_fs mysqld
Add the startup script to chkconfig:
# chkconfig --add rivendell
Turn Rivendell on for the default runlevels so it starts on boot:
# chkconfig rivendell on
Update the shared libraries cache to use the new Rivendell shared libraries installed in /usr/local/lib :
# ldconfig /usr/local/lib
Create a configuration file for the Rivendell shared libraries so they will be added to the shared libraries cache every time on boot:
# cd /etc/ld.so.conf.d/ # echo "/usr/local/lib" > rivendell.conf
Create the directory where Rivendell will store audio files:
# mkdir /var/snd
Set the owner and group to the regular user you use. replace <regular user>:<regular group> with for example, john:john
# chown <regular user>:<regular group> /var/run/rivendell # chown <regular user>:<regular group> /var/snd
Create the ALSA sound devices for Rivendell:
# gedit /etc/asound.conf:
pcm.rd0 {
type hw
card 0
}
ctl.rd0 {
type hw
card 0
}
Save & exit
Start Rivendell
Run rdadmin for the first time. It will prompt you for the mysql user and password you created earlier
$ rdadmin
Start the Rivendell daemons:
# service rivendell start
Run rdadmin again
$ rdadmin
login with user: admin and password <blank>
Now you can run any other Rivendell applications like rdairplay, rdlibrary, rdloglogedit, etc.
You will probably want to set the default audio ports for playing as explained in the Post Installation errata:
http://rivendell.tryphon.org/wiki/index.php/Post_installation_errata
Have fun!

