Technology
 

BuildingMPD

From Music Player Daemon Community Wiki

Once the repository has been downloaded, cd into the mpd dir, and use the script:

./autogen.sh

This creates and runs the ./configure script.

For more options on compiling extra libraries in:

./configure --help

After this has completed to compile the binaries run the command:

make

To install the binaries to the default locations run this command:

make install

[edit] stow

"stow" is a nice tool for managing programs which you have installed from sources. To install MPD via stow, type the following:

./autogen.sh --prefix=/usr/local/stow/mpd
make
sudo make install
sudo stow -d /usr/local/stow mpd

This way, you can upgrade and uninstall MPD easily, without cluttering /usr/local.

[edit] Building on Debian / Ubuntu

sudo apt-get install stow \
  libasound2-dev libmad0-dev libid3tag0-dev libvorbis-dev \
  libflac-dev libwavpack-dev libfaad-dev libshout3-dev libavcodec-dev
./autogen.sh --prefix=/usr/local/stow/mpd
make
sudo make install
sudo stow -d /usr/local/stow mpd

To use the init script from the mpd package, you can add the line "DAEMON=/usr/local/bin/mpd" to /etc/default/mpd.

If you have trouble viewing the updated manpage, this may help.

Rate this article: