Windows/Ubuntu安装Liquidsoap遇路径错误,求安装指导
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.
Step 1: Install Liquidsoap via Official PPA (Recommended for Beginners)
The easiest way to get a working Liquidsoap installation is using the official Savonet PPA—this avoids the hassle of compiling from source:
- First, update your system's package list and upgrade existing packages:
sudo apt update && sudo apt upgrade -y - Add the Savonet PPA to your system:
sudo add-apt-repository ppa:savonet/liquidsoap && sudo apt update - Install Liquidsoap along with all common plugins (for audio formats, IceCast support, etc.):
sudo apt install liquidsoap liquidsoap-plugin-all - Verify the installation was successful by checking the version:
If you see a version number printed, Liquidsoap is now in your system path and ready to use.liquidsoap --version
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):
- 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 - Initialize OPAM (follow the on-screen prompts, then restart your shell or run
eval $(opam env)to apply changes):opam init - Install Liquidsoap via OPAM:
opam install liquidsoap - 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

