Hi there,
I am running Ubuntu 20.04 LTS and have installed Liquidsoap using APT. This installs Liquidsoap 1.4.1. Looking at the quickstart guide, I am trying the supposedly one-line script that sends an audio stream to a server. The difference is that I'm running it as a file:

#!/bin/liquidsoap
output.icecast(%mp3, host="localhost", port=8000, password="redacted", mount="auto", mksafe(playlist("/music")))

The above script gives me the following error:

At line 2, char 89-96:
Error 4: Undefined variable mksafe

From what I have discovered, I believe that liquidsoap needs access to the pervasives.liq file, which includes all the other files. The only thing I can surmise is that the quickstart guide assumes that the Liquidsoap libraries are installed in /usr/local/lib/liquidsoap/<version>, where as APT installs to /usr/share/liquidsoap/libs. Still being a complete beginner to the language and syntax, I tried several different variations of the "configure.libdir" directive to tell it where the right directory is, still to no avail.

configure.libdir("/usr/share/liquidsoap/libs")
configure.libdir(/usr/share/liquidsoap/libs)
configure.libdir="/usr/share/liquidsoap/libs"
set("configure.libdir", "/usr/share/liquidsoap/libs")

Each either producing a syntax error, or the same "undefined variable mksafe" error. During the writing of this message, I realised that the one thing I hadn't yet tried was to actually look at the pervasives.liq file. Finding that this itself includes several other files, I decided to test it on my own script.

%include "pervasives.liq"

I then got an error saying that /usr/bin/pervasives.liq doesn't exist (I assume it's looking in the same path as my script despite having told it where its lib directory was). I then changed the include directive to the full pathname, and finally, got it working. My question then becomes, why doesn't the quickstart guide show you how to include the pervasives.liq file, given that it seems such an important component? Is it that the documentation is missing this information, or should Liquidsoap theoretically automatically include this file for you in all your scripts? If Liquidsoap should do this automatically, then what am I missing in my attempts to tell it where to find the libraries?
Cheers.
Damien.



_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to