ОсновноеRadiotalkПользовательское
Общие вопросы по интернет радио вещанию
7   •   Посмотреть все темы

Liquidsoap char 17 before "%": Parse error.

 

4
rly @rly
Поставил себе Liquidsoap в замену ices, почитав документацию и копнув форум написал стартовый скрипт:

  1. #!/usr/bin/liquidsoap
  2. # Log dir
  3. set("log.file.path","/tmp/basic-radio.log")
  4. set("init.daemon",true)
  5. set("init.daemon.pidfile",false)
  6. # Music
  7. myplaylist = playlist("/music/playlist.txt")
  8. # Some jingles
  9. #jingles = playlist("~/radio/jingles.m3u")
  10. # If something goes wrong, we'll play this
  11. #security = single("~/radio/sounds/default.ogg")
  12. # Start building the feed with music
  13. radio = myplaylist
  14. # Now add some jingles
  15. #radio = random(weights = [1, 4],[jingles, radio])
  16. # And finally the security
  17. #radio = fallback(track_sensitive = false, [radio, security])
  18. radio = crossfade(start_next=1.,fade_out=5.,fade_in=3.,playlist("/music/playlist.txt"))
  19. # Stream it out
  20. output.icecast(%vorbis,
  21. host = "localhost", port = 8000,
  22. password = "****", mount = "play",
  23. radio)

При попытке запуска пишет:
Starting channels: radio.liq Line 22, char 17 before "%": Parse error.
OK

22 строка это
  1. output.icecast(%vorbis,

эту же строку менял на
  1. output.icecast(%external("lame -V0 -b 192 - -",restart_on_crash=true),icy_metadata="true",format="audio/mpeg",

  1. output.icecast(%mp3(stereo=true, samplerate=44100, bitrate=192),

во всех случаях пишет одно и тоже.
В чем проблема?
ОС Debian 6, установил из репозиториев

Отредактировано rly - 12.01.2014
0
6245
Тарас @tarasian666
Не все пакеты установлены

0
4
rly @rly
tarasian666 пишет:

Не все пакеты установлены

Решил собрать из исходников но при вводе " ./configure " выводит следующее:
./configure --with-cry-dir=../ocaml-cry/src
configure: WARNING: unrecognized options: --with-cry-dir
configuring ocaml-cry 0.3.0
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking that calling user is not root... configure: error: configure script must not be run with root user!


попробовал через через другого юзера, выводит:

****** Configuring ocaml-cry

./configure --with-cry-dir=../ocaml-cry/src
configure: WARNING: unrecognized options: --with-cry-dir
./configure: line 1524: config.log: Permission denied
./configure: line 1534: config.log: Permission denied


если перед командой написать sudo, ругается что это root...
как собрать тогда?

0
4
rly @rly
Нашел проблему...

0
4
rly @rly
Теперь запнулся на make'е
OCAMLOPT -c configure.mli
File "configure.mli", line 84, characters 15-21:
Error: Syntax error
make[3]: *** [configure.cmi] Ошибка 2
make[3]: Leaving directory `/home/tmp/liquidsoap/liquidsoap/src'
make[2]: *** [all-auto-ocaml-prog] Ошибка 2
make[2]: Leaving directory `/home/tmp/liquidsoap/liquidsoap/src'
make[1]: *** [all-subdirs] Ошибка 2
make[1]: Leaving directory `/home/tmp/liquidsoap/liquidsoap'
make: *** [all] Ошибка 1

что делать?

0
1
Monkm @Monkm
rly?! пишет:

Нашел проблему...
А в чем была проблема? а то у меня такую же ошибку выдает

0