just use opam
<code> opam init <y> eval `opam config env` opam update opam upgrade opam install liquidsoap cry faad fdkaac flac ladspa lame mad magic ogg opus samplerate ssl taglib vorbis ln -s $HOME/.opam/system/liquidsoap /usr/local/bin/liquidsoap
Sections below show how to build and install from source.
sudo apt-get install opam opam init <y> eval `opam config env` opam update opam upgrade sudo opam install pcre sudo opam install camomile sudo opam install xmlm
sudo apt-get -y install libgstreamer1.0-0 libgstreamer1.0-dev sudo apt-get -y install libgstreamer-ocaml libgstreamer-ocaml-dev libgstreamer-plugins-base1.0-dev sudo apt-get -y install libtaglib2.1-cil libtaglib-cil-dev libtaglib-ocaml libtaglib-ocaml-dev sudo apt-get -y install libaacs0 libaacs-dev sudo apt-get -y install libaac-tactics-ocaml-dev sudo apt-get -y install libflac-ocaml-dev sudo apt-get -y install libavformat-dev libavformat-ffmpeg56 sudo apt-get -y install libavutil-dev libavutil-ffmpeg54 sudo apt-get -y install libswscale-ffmpeg3 libswscale-dev sudo apt-get -y install libfrei0r-ocaml-dev sudo apt-get -y install liblo liblo-dev sudo apt-get -y install libsoundtouch1 libsoundtouch-dev
sudo apt-get install libflac++6v5:i386 libflac++6v5 libtag1-vanilla libtag1v5-vanilla:i386 libtag1v5:i386 libtag1v5-vanilla libtag1v5
mkdir ~/liquidsoap ./configure --enable-debugging --disable-graphics --prefix=~/liquidsoap --exec-prefix=~/liquidsoap
Starting with liquidsoap 1.2. a fresh ocaml is needed due to dependency to the ocaml bytes module which is not included in LTS 14.04. see: http://freedrool.us/blog/latest-liquidsoap-full-compile/
For LTS 14.04 (only) you will need to use opam from PPA .
sudo add-apt-repository ppa:avsm/ppa sudo apt-get update sudo apt-get install ocaml ocaml-native-compilers camlp4-extra opam sudo opam init <y> eval `opam config env` sudo opam install pcre sudo opam install camomile sudo opam install xmlm
Next steps are same as for LTS 12.04
sudo apt-get -y install autoconf sudo apt-get -y install libtool sudo apt-get -y install g++ sudo apt-get -y install libxml-dom-perl sudo apt-get -y install festival sudo apt-get -y install git sudo apt-get -y install swh-plugins
sudo apt-get -y install libmagic-ocaml-dev sudo apt-get -y install libcamomile-ocaml-dev sudo apt-get -y install libxml-light-ocaml-dev sudo apt-get -y install ocaml-compiler-libs sudo apt-get -y install libfindlib-ocaml sudo apt-get -y install libfindlib-ocaml-dev sudo apt-get -y install libpulse-ocaml-dev sudo apt-get -y install libmad-ocaml-dev sudo apt-get -y install libtaglib-ocaml-dev sudo apt-get -y install libvorbis-ocaml-dev sudo apt-get -y install libsoundtouch-ocaml-dev sudo apt-get -y install libsamplerate-ocaml-dev sudo apt-get -y install libxmlplaylist-ocaml-dev sudo apt-get -y install libdtools-ocaml-dev sudo apt-get -y install libduppy-ocaml-dev sudo apt-get -y install libpulse0 libpulse-dev
sudo apt-get -y install libasound2-dev sudo apt-get -y install liblo liblo-dev sudo apt-get -y install libmad0 libmad0-dev sudo apt-get -y install libspeex1 libspeex-dev sudo apt-get -y install libtheora0 libtheora-dev sudo apt-get -y install libvo-aacenc0 libvo-aacenc-dev sudo apt-get -y install libfdk-aac0 libfdk-aac-dev sudo apt-get -y install libsoundtouch0 libsoundtouch-dev sudo apt-get -y install libsamplerate0 libsamplerate0-dev sudo apt-get -y install libflac++-dev libflac++6 libflac8 sudo apt-get -y install liblame0 libmp3lame-dev sudo apt-get -y install libmp3lame0 libmp3lame-dev sudo apt-get -y install dssi-dev sudo apt-get -y install libpulse0 libpulse-dev sudo apt-get -y install libtag1c2a libtag1-dev sudo apt-get -y install libvorbis0a libvorbis-dev sudo apt-get -y install libopus0 libopus-dev sudo apt-get -y install libfaad2 libfaad-dev
for non-free aac support see https://trac.ffmpeg.org/wiki/How%20to%20quickly%20compile%20libaacplus
git clone https://github.com/savonet/liquidsoap-full.git liquidsoap cd liquidsoap make init make update
cp PACKAGES.default PACKAGES vi PACKAGES
(commented are optional by our needs)
ocaml-cry ocaml-alsa ocaml-pulseaudio #ocaml-gstreamer ocaml-mad ocaml-taglib ocaml-lame ocaml-ogg ocaml-vorbis #ocaml-speex #ocaml-theora ocaml-opus #ocaml-schroedinger ocaml-voaacenc ocaml-fdkaac ocaml-faad ocaml-flac ocaml-ladspa ocaml-soundtouch ocaml-samplerate #ocaml-dssi ocaml-xmlplaylist #ocaml-lo ocaml-dtools ocaml-duppy ocaml-mm liquidsoap
we do not ues video so we remove following from PACKAGE
ocaml-gavl ocaml-ffmpeg ocaml-frei0r
build and install
./bootstrap ./configure --enable-debugging --disable-graphics make clean make sudo make install
done
liquidsoap --version Liquidsoap 1.2.0+scm (git://github.com/savonet/liquidsoap.git@d9d8fa569a5485dc1d8ba772c424611132785120:20160119:220304) Copyright (c) 2003-2016 Savonet team Liquidsoap is open-source software, released under GNU General Public License. See <http://liquidsoap.fm> for more information.
install tools and libs before start of liquidsoap installation. <code> sudo apt-get -y install autoconf sudo apt-get -y install libtool sudo apt-get -y install g++ sudo apt-get -y install libxml-dom-perl sudo apt-get -y install festival
sudo apt-get -y install libmagic-ocaml-dev sudo apt-get -y install libcamomile-ocaml-dev sudo apt-get -y install libxml-light-ocaml-dev sudo apt-get -y install ocaml-compiler-libs sudo apt-get -y install libfindlib-ocaml sudo apt-get -y install libfindlib-ocaml-dev sudo apt-get -y install libasound2-dev sudo apt-get -y install libpulse-ocaml-dev sudo apt-get -y install libmad-ocaml-dev sudo apt-get -y install libtaglib-ocaml-dev sudo apt-get -y install liblame0 sudo apt-get -y install libmp3lame-dev sudo apt-get -y install libvorbis-ocaml-dev sudo apt-get -y install libflac++-dev libflac++6 libflac8 sudo apt-get -y install libsoundtouch-ocaml-dev sudo apt-get -y install libsamplerate-ocaml-dev sudo apt-get -y install libxmlplaylist-ocaml-dev sudo apt-get -y install libdtools-ocaml-dev sudo apt-get -y install libduppy-ocaml-dev sudo apt-get -y install libgstreamer1.0-0 libgstreamer1.0-dev sudo apt-get install libgstreamer-plugins-base1.0-0 libgstreamer-plugins-base1.0-dev #do not install used for Ubuntu 12.04 (but needed for 10.04!) #sudo apt-get -y install libogg-ocaml-dev #did not get acc running, yet #sudo apt-get -y install libfaac-dev #sudo apt-get -y install libfaad-dev additional libs not used in our PACKAGE file #sudo apt-get -y install libao-ocaml-dev #sudo apt-get -y install libschroedinger-dev libschroedinger-1.0-0 #sudo apt-get -y install libtheora-ocaml-dev #sudo apt-get -y install libladspa-ocaml-dev
cd savonet cp PACKAGES.default PACKAGES vi PACKAGES
enable following modules in file PACKAGES should be enough for our purpose
ocaml-cry ocaml-alsa ocaml-pulseaudio ocaml-mad ocaml-taglib ocaml-lame ocaml-ogg ocaml-vorbis ocaml-flac ocaml-ladspa ocaml-soundtouch ocaml-samplerate ocaml-xmlplaylist ocaml-dtools ocaml-duppy ocaml-mm liquidsoap #did not use / get running #ocaml-theora #ocaml-schroedinger #ocaml-aacplus #ocaml-voaacenc
./bootstrap *** bootstraping ocaml-cry-0.1.5 *** bootstraping ocaml-ao-0.2.0 *** bootstraping ocaml-alsa-0.2.0 *** bootstraping ocaml-pulseaudio-0.1.1 *** bootstraping ocaml-mad-0.4.0 *** bootstraping ocaml-taglib-0.1.3 *** bootstraping ocaml-lame-0.2.4 *** bootstraping ocaml-ogg-0.4.1 *** bootstraping ocaml-vorbis-0.5.1 *** bootstraping ocaml-theora-0.2.0 *** bootstraping ocaml-faac-0.1.2 *** bootstraping ocaml-faad-0.1.3 *** bootstraping ocaml-ladspa-0.1.2 *** bootstraping ocaml-soundtouch-0.1.5 *** bootstraping ocaml-samplerate-0.1.1 *** bootstraping ocaml-xmlplaylist-0.1.2 *** bootstraping ocaml-dtools-0.2.0 *** bootstraping ocaml-duppy-0.3.2 *** bootstraping liquidsoap-1.0.0-beta1
./configure --enable-debugging --disable-graphics make sudo make install
The ./configure result should look like this:
---------------------------------------------------------------- Installation prefix : /usr/local exec_prefix : ${prefix} binary : ${exec_prefix}/bin configuration : ${prefix}/etc/liquidsoap logging : ${prefix}/var/log/liquidsoap PIDs : ${prefix}/var/run/liquidsoap logrotate conf : ${prefix}/etc/logrotate.d man page : ${datarootdir}/man/man1 doc : ${datarootdir}/doc -------------------------------------------------------------------- Features * Supported input formats - Vorbis : yes - Theora : yes - Speex : no - Dirac : no - MP3 : yes - AAC : no - text-to-speech : yes, using /usr/bin/text2wave - XML playlists : yes - Lastfm : no * Supported output formats - Vorbis : yes - MP3 : yes - AAC : no - AAC+ : no - SPEEX : no - Theora : yes - Dirac : no * Tags - Taglib (ID3 tags) : yes - Vorbis : yes - charset detection : yes * Input / output - Icecast/Shoutcast : yes - AO : yes - OSS : yes - ALSA : yes - Portaudio : no - Pulseaudio : yes - JACK : no - Old JACK : no - V4L : yes - opal : no * Audio manipulation - Samplerate : yes - SoundTouch : yes - LADSPA : yes * Video manipulation - Gavl : no - camlimages : no * MIDI manipulation - DSSI : no * Visualization - Graphics : no - OpenGL : no - SDL : no * Additional libraries - magic : yes * Graphical interfaces - Python GUI : yes (requires >=pyGTK-2.0)