Building and Installing LiquidSoap on CentOS5

So I spend nearly half of an otherwise productive day fighting dependency hell with LiquidSoap.  I haven’t tested it yet but here’s a cleaned up and organized command history of how it happened:


## Liquid soap install

cd /usr/src

rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm

yum install automake pkgconfig ncurses ncurses-devel ocaml ocaml-camlp4 ocaml-labltk libtheora libtheora-devel libao libao-devel /
portaudio portaudio-devel alsa-lib alsa-lib-devel glib2-devel avahi avahi-devel /
libmad libmad-devel taglib taglib-devel lame lame-devel faac faac-devel faad2 faad2-devel /
ladspa ladspa-devel soundtouch soundtouch-devel doxygen

wget http://linuxsoft.cern.ch/epel/5/x86_64/ocaml-findlib-devel-1.1.2pl1-16.el5.x86_64.rpm
wget http://linuxsoft.cern.ch/epel/5/x86_64/ocaml-findlib-1.1.2pl1-16.el5.x86_64.rpm
wget http://centos.karan.org/el5/extras/testing/x86_64/RPMS/pulseaudio-devel-0.9.5-5.el5.kb.x86_64.rpm
wget http://centos.karan.org/el5/extras/testing/x86_64/RPMS/pulseaudio-lib-0.9.5-5.el5.kb.x86_64.rpm
wget http://centos.karan.org/el5/extras/testing/x86_64/RPMS/pulseaudio-lib-devel-0.9.5-5.el5.kb.x86_64.rpm
wget http://centos.karan.org/el5/extras/testing/x86_64/RPMS/pulseaudio-0.9.5-5.el5.kb.x86_64.rpm
wget http://centos.karan.org/el5/extras/testing/x86_64/RPMS/pulseaudio-module-x11-0.9.5-5.el5.kb.x86_64.rpm
wget http://centos.karan.org/el5/extras/testing/x86_64/RPMS/pulseaudio-lib-glib2-0.9.5-5.el5.kb.x86_64.rpm
wget http://centos.karan.org/el5/extras/testing/x86_64/RPMS/pulseaudio-module-zeroconf-0.9.5-5.el5.kb.x86_64.rpm
wget http://centos.karan.org/el5/extras/testing/x86_64/RPMS/pulseaudio-lib-zeroconf-0.9.5-5.el5.kb.x86_64.rpm

rpm -ivh *.rpm

### Misc audio stuff, libshout, ect
### Compile libshout/speex from source because packaged version of speex is too old for liquidsoap.

wget http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gz
tar -zxf speex-1.2rc1.tar.gz
cd speex-1.2rc1
./configure
make install

cd ..

wget http://downloads.us.xiph.org/releases/libshout/libshout-2.2.2.tar.gz
tar -zxf libshout-2.2.2.tar.gz
cd libshout-2.2.2
./configure
make
make install

cd ..

wget http://www.grame.fr/~letz/jack-1.9.2.tar.bz2
tar -jxf jack-1.9.2.tar.bz2
./waf configure
./waf build
./waf install

cd ..

wget http://voxel.dl.sourceforge.net/sourceforge/gmerlin/gavl-1.1.0.tar.gz
tar -zxf gavl-1.1.0.tar.gz
cd gavl-1.1.0
./configure
make install

cd ..

### OCAML stuff

wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-7.6.tar.gz
tar -zxf pcre-7.6.tar.gz
cd pcre-7.6
./configure
make install

cd ..

wget http://voxel.dl.sourceforge.net/sourceforge/savonet/ocaml-ladspa-0.1.1.tar.gz
tar -zxf ocaml-ladspa-0.1.1.tar.gz
cd ocaml-ladspa-0.1.1
./configure
make install

cd ..

wget http://download.camlcity.org/download/ocamlnet-2.2.9.tar.gz
tar -zxf ocamlnet-2.2.9.tar.gz
cd ocamlnet-2.2.9
./configure
make
make install

cd ..

wget http://www.rastageeks.org/~toots/xml-light/xml-light-2.2+findlib.tar.gz
tar -zxf xml-light-2.2+findlib.tar.gz
cd xml-light
make install

echo /usr/local/lib >> /etc/ld.so.conf
ldconfig

wget http://voxel.dl.sourceforge.net/sourceforge/savonet/liquidsoap-full-0.9.0.tar.gz
tar -zxf liquidsoap-full-0.9.0.tar.gz
cd liquidsoap-full-0.9.0
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
./bootstrap
./configure
make
make install

8 Responses to Building and Installing LiquidSoap on CentOS5

  1. Loucas Gatzoulis says:

    Hi there,

    excellent how-to. Just some additions that may help people.

    My system is 32bit and I needed to add the following in order to compile liquisoap:

    Portaudio v19 (yum install v18)
    rpm -Uvh ftp://ftp.pbone.net/mirror/atrpms.net/el5-i386/atrpms/stable/portaudio-19-6_4_20071207.el5.i386.rpm

    XML-light (the one from source did not compile)
    rpm -Uvh ftp://ftp.muug.mb.ca/mirror/fedora/epel/5/x86_64/ocaml-xml-light-2.2.cvs20070817-6.el5.i386.rpm

  2. n00x says:

    excellent how to . i ve juste a problem to compile..the ./configure are good but when i test to compile liquidsoap i have a bad msg :p :
    OCAMLC -c video_converters/gavl_converter.ml
    File “video_converters/gavl_converter.ml”, line 36, characters 12-27:
    Unbound constructor Gavl.Video.Auto
    make[3]: *** [video_converters/gavl_converter.cmx] Erreur 2
    make[3]: quittant le r�pertoire � /home/radio/src/liquidsoap-full-0.9.1/liquidsoap-0.9.1/src �
    make[2]: *** [all-auto-ocaml-prog] Erreur 2
    make[2]: quittant le r�pertoire � /home/radio/src/liquidsoap-full-0.9.1/liquidsoap-0.9.1/src �
    make[1]: *** [all-subdirs] Erreur 2
    make[1]: quittant le r�pertoire � /home/radio/src/liquidsoap-full-0.9.1/liquidsoap-0.9.1 �
    make: *** [all] Erreur

    Thx for help me to fix that

  3. I have also put together info for Fedora that is similar to Randy’s work for CentOS.

    http://vinylproject.com/dp/2008/02/07/liquidsoap-fedora-8-first-attempt

    And after roughly the same amount of trouble, I finally worked together some RPMS for Fedora. The SRPMS may just compile on CentOS

    http://vinylproject.com/dp/2009/07/29/liquidsoap-rpms-are-now-available

  4. Artur says:

    Hallo

    Im looking ofor someone who can able to help me with liquidsoap installation on centos 5.2 32 bit.

  5. […] I am very happy to announce that RPMs for the Liquidsoap streaming server are now available for download.  As far as I know, these are the first packages available for the Fedora system.  These builds are compatible with Fedora Core 11 in both the i586 and x86_64 architectures.  A source RPM is also available for those who wish to rebuild for their architecture or special flavor of Linux.Of course, these will go into the savonet project as official builds, but for now these should work 'right away'.  Visit the Savonet Project Website for more details and documentation on the liquidsoap streaming media server.  And if you came here looking for other liquidsoap downloads, then follow this link.UPDATE:  Randy over at djlab.com had a go-in with CentOS and liquidsoap.  Here's a link if you need CentOS references.  I haven't attempted to compile the Fedora SRPM against CentOS, but if you have any success give a shout in the comments.http://djlab.com/2009/05/building-and-installing-liquidsoap-on-centos5/ […]

  6. Dave says:

    I was able to build liquidsoap on fedora, but on CentOS it fails because of dependencied for ocaml-ocamlnet-devel and some others. There are not available from official repositories. Anyone has encountered this?

  7. It is perfect that we can get the credit loans moreover, this opens up new opportunities.

  8. Sometimes to receive your PhD level you have to order mini dissertation referring to this good post and buy thesis.