Hi list,

I found this project looking for something powerful to replace my ices0.4 and 
liquidsoap seems exactly what i am looking for!

Unfortunately I can make it work :( and really appreciate any help.

I compiled the liquidsoap without troubles, then created a script called 
myscript.liq and put the next code inside:

#!/usr/local/bin/liquidsoap -v
set log.dir = "/tmp"
output = ouput.ao
# Output via libao is the most portable and stable option.
# You may also be able to use output.alsa.
# If you have a configured icecast server,
# uncomment the next two lines and edit the parameters
output = output.icecast(mount="mount.mp3",host="localhost",
                         port=8002,password="XXXXXX")

output(playlist.safe("playlist.pls"))


I only changed "/usr/bin/liquidsoap" to "/usr/local/bin/liquidsoap" because the 
binary is there, created a file called playlist.pls on the same directory with 
3 mp3 songs (in the same directory) and edited the lines for my icecast2 
server. Running as a system user i get:

$ ./myscript.liq
Line 3, char 18 before "ouput.ao": Unbound symbol ouput.ao!

The same result with:

$ liquidsoap myscript.liq
Line 3, char 18 before "ouput.ao": Unbound symbol ouput.ao!


If change ao to alsa, i get the same result with "output.alsa"



if I comment that line i get:

$ liquidsoap myscript.liq
Thread 1 killed on uncaught exception Unix.Unix_error(1, "bind", "")
init: exception encountered during stop phase:
  Unix.Unix_error(20, "unlink", "/usr/local/var/run/liquidsoap/myscript.sock")


$ ./myscript.liq
2007/05/09 15:05:00 >>> LOG START
2007/05/09 15:05:00 [main:3] Liquidsoap 0.3.2+svn (trunk/[EMAIL PROTECTED])
2007/05/09 15:05:00 [extproto:3] Found "/usr/bin/wget"
2007/05/09 15:05:00 [extproto:3] Didn't find "ufetch"
2007/05/09 15:05:00 [threads:3] Created thread "command server" (1 total)
2007/05/09 15:05:00 [threads:3] Created thread "light task scheduler" (2 total)
2007/05/09 15:05:00 [threads:1] thread "command server" aborts with exception 
Unix.Unix_error(1, "bind", "") !
Thread 1 killed on uncaught exception Unix.Unix_error(1, "bind", "")
2007/05/09 15:05:00 [threads:3] Created thread "root" (2 total)
2007/05/09 15:05:00 [server:3] Closing 
/usr/local/var/run/liquidsoap/myscript.sock
init: exception encountered during stop phase:
  Unix.Unix_error(20, "unlink", "/usr/local/var/run/liquidsoap/myscript.sock")


if run as root, I get:

# ./myscript.liq 
init: security exit, root euid.


So I suppose liquidsoap does not run as root.


My sistem is a 32bits Debian etch. Also I did chmod 777 to 
/usr/local/bin/liquidsoap and myscript.liq



Thanks in advance for your time and help



Jorge

 



-------------------------------------
Saca tu propia cuenta de email gratis en Colombia entrando a 
http://mail.conexcol.com

Reply via email to