On Feb 7, 2008 1:58 PM, Romain Beauxis <[EMAIL PROTECTED]> wrote:
> Le Thursday 07 February 2008 13:33:31 Lars Mai, vous avez écrit :
> > Hello,
>
>         Hi !
>
> > I'm having some difficulties running the LiquidSoap examples from the
> > wiki pages, I constantly get the error "Empty Token"
> >
> > Example:
> >
> > $ liquidsoap --version
> > Liquidsoap 0.3.6.
> > <snip>
> >
> > $ liquidsoap 'output.icecast.vorbis(host = "example.com", port = 8000,
> > password = "pass", mount = "liq.ogg", mksafe(playlist("day.pls")))'
> > Line 1, char 62: Empty token
>
> Strange, this works for me.
> I would suspect a bad install: liquidsoap usually includes a set of functions
> defined in the langage, like mksafe for instance..
>
> You can try that command, which will not use this inclusion:
>   liquidsoap --no-pervasives 'output.icecast.vorbis(host = "example.com", port
> = 8000,password = "pass", mount = "liq.ogg", playlist.safe("day.pls"))'
>
> If this is working, then you might check your install..
> The silently included files are usually in:
>  /usr/(local/)lib/liquidsoap/$VERSION/*.liq
>
> How did you install liquidsoap ?

I tried it actually on the Ubuntu hardy machine of a friend of mine,
IIRC we first tried the packages from the default repository, which
was version 0.35 and got the error. Then we upgraded somehow ( I
_believe_ from source ), to version 0.36 with no effect.

I just tried it on my gutsy install here, but unfortunately the
version 0.32 in the gutsy repositories seem to be in a sad shape:

$ liquidsoap 'out(playlist("day.pls"))'
Fatal error: cannot find file out(playlist("day.pls"))
$ liquidsoap test2.liq
Fatal error: the file test2.liq is not a bytecode executable file
$ /usr/bin/liquidsoap --help
Unknown option --help.
$ /usr/bin/liquidsoap -version
The Objective Caml runtime, version 3.09.2
$ cat /usr/share/doc/liquidsoap/README | head -n 1
Liquidsoap 0.3.2 -- a programmable audio stream generator.


I also looked for the files you mentioned, but it doesn't seem to have
installed anything in /usr/lib or /usr/local/lib. I'll post some more
info on the package at the end of the mail.

I think I'll give it a try to compile from latest sources next, and
see how that goes. After all, this stuff looks quite interesting, and
I'd love to finally get to play around with it a little... :-)

Cheers,

-Lars

-----------

$ dpkg-query -s liquidsoap
Package: liquidsoap
Status: install ok installed
Priority: optional
Section: sound
Installed-Size: 804
Maintainer: Ubuntu MOTU Developers <[EMAIL PROTECTED]>
Architecture: i386
Version: 0.3.2-4ubuntu1
Depends: libao2 (>= 0.8.8), libc6 (>= 2.6-1), libid3tag0 (>= 0.15.1b),
libmad0 (>= 0.15.1b), libncurses5 (>= 5.6), libogg0 (>= 1.1.3),
libshout3, libspeex1 (>= 1.1.8), libtheora0, libvorbis0a (>= 1.1.2),
libvorbisenc2 (>= 1.1.2), libvorbisfile3 (>= 1.2.0),
libcamomile-ocaml-data, wget, adduser
Recommends: icecast2
Suggests: festival, liguidsoap
Conffiles:
 /etc/init.d/liquidsoap 11420f1d1868a530323c75ad94adbec5
 /etc/liquidsoap/radio.liq.example e72792cef263c493d9259b39a3c99d8b
Description: audio streaming language
 Liquidsoap is a powerful tool for building complex audio streaming systems,
 typically targeting internet radios (e.g. icecast streams).
 .
 It consists of a simple script language, in which you can create, combine and
 transform audio sources. Its design makes liquidsoap flexible and easily
 extensible.
 .
 Some of the typical uses are:
  * dynamically generating playlists depending on the time or other factors
  * having smooth transitions between songs
  * adding jingles periodically
  * applying effects on the sound like volume normalization
  * reencoding the stream at various qualities
  * remotely controlling the stream
 .
  Homepage: http://savonet.sourceforge.net/
Original-Maintainer: Liquidsoap Debian Packaging
<[EMAIL PROTECTED]>


$ dpkg-query -L liquidsoap
/.
/usr
/usr/bin
/usr/bin/liquidsoap
/usr/bin/liquidtts
/usr/share
/usr/share/doc
/usr/share/doc/liquidsoap
/usr/share/doc/liquidsoap/README
/usr/share/doc/liquidsoap/TODO
/usr/share/doc/liquidsoap/manual.pdf
/usr/share/doc/liquidsoap/lang.html
/usr/share/doc/liquidsoap/copyright
/usr/share/doc/liquidsoap/examples
/usr/share/doc/liquidsoap/examples/fallible.liq
/usr/share/doc/liquidsoap/examples/geek.liq
/usr/share/doc/liquidsoap/examples/radio.liq
/usr/share/doc/liquidsoap/examples/transitions.liq
/usr/share/doc/liquidsoap/changelog.gz
/usr/share/doc/liquidsoap/changelog.Debian.gz
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/liquidsoap.1.gz
/usr/share/linda
/usr/share/linda/overrides
/usr/share/linda/overrides/liquidsoap
/usr/share/linda/overrides/liquidsoap/liquidsoap.linda-override
/etc
/etc/init.d
/etc/init.d/liquidsoap
/etc/liquidsoap
/etc/liquidsoap/radio.liq.example
/var
/var/log
/var/log/liquidsoap
/var/run
/var/run/liquidsoap
/usr/share/man/man1/liquidtts.1.gz

Reply via email to