You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows/Ubuntu安装Liquidsoap遇路径错误,求安装指导

Fixing "liquidsoap not found" Error on Ubuntu 18.04 Server

Hey there! The core issue here is that you're trying to use the liquidsoap-daemon script before actually installing Liquidsoap itself. Let's walk through getting Liquidsoap properly set up on your Ubuntu 18.04 Server, then circle back to the daemon script.

The easiest way to get a working Liquidsoap installation is using the official Savonet PPA—this avoids the hassle of compiling from source:

  1. First, update your system's package list and upgrade existing packages:
    sudo apt update && sudo apt upgrade -y
    
  2. Add the Savonet PPA to your system:
    sudo add-apt-repository ppa:savonet/liquidsoap && sudo apt update
    
  3. Install Liquidsoap along with all common plugins (for audio formats, IceCast support, etc.):
    sudo apt install liquidsoap liquidsoap-plugin-all
    
  4. Verify the installation was successful by checking the version:
    liquidsoap --version
    
    If you see a version number printed, Liquidsoap is now in your system path and ready to use.

Step 2: Retry the Liquidsoap Daemon Script

Now that Liquidsoap is installed, head back to your liquidsoap-daemon directory and re-run the script:

cd liquidsoap-daemon
./daemonize-liquidsoap.sh

If the script still can't find Liquidsoap, you can explicitly pass the path to the binary (use which liquidsoap to confirm the path first):

./daemonize-liquidsoap.sh /usr/bin/liquidsoap

Alternative: Compile Liquidsoap from Source (If PPA Fails)

If the PPA doesn't work for Ubuntu 18.04 (it's an older end-of-life release), you can compile Liquidsoap from source using OPAM (OCaml Package Manager):

  1. Install all required build dependencies:
    sudo apt install build-essential git opam libssl-dev libao-dev libsdl2-dev libtaglib-dev libmad0-dev libfaad-dev libflac-dev libvorbis-dev libtheora-dev libopus-dev libsamplerate0-dev
    
  2. Initialize OPAM (follow the on-screen prompts, then restart your shell or run eval $(opam env) to apply changes):
    opam init
    
  3. Install Liquidsoap via OPAM:
    opam install liquidsoap
    
  4. Verify the installation:
    liquidsoap --version
    

Quick Notes

  • Ubuntu 18.04 is no longer supported, so if you run into ongoing issues, consider upgrading to a newer LTS release like 20.04 or 22.04 for better community support.
  • Once Liquidsoap is running, you'll need to create a configuration script that defines your audio source, IceCast server details, and streaming settings—refer back to your original tutorial for guidance on this part.

内容的提问来源于stack exchange,提问作者CodingEE

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.29 08:21:14