how to compile the mpc ?

There are many, many clients for MPD. Many of them are old and unsupported, but maybe someone here can help you with them anyway...
Post Reply
Posts: 1
Joined: September 11th, 2013, 8:35 am

how to compile the mpc ?

Post by maxx »

I can not compile mpc client on my mac (10.8), I've done the followinf steps:

1) download the libmpdclient (version 2.8) and compiled without apparent errors using "./configure" then "make" & "make install"

2) download the mpc version 0.23, run the ./configure but I've got this error message:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
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 dependency style of gcc... gcc3
checking for gcc option to accept ISO C99... -std=gnu99
checking whether make sets $(MAKE)... (cached) yes
checking for pkg-config... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... no
checking for LIBMPDCLIENT... no
configure: error: libmpdclient2 is required

Please, can anyone tell me what the problem is?
Or better, can anyone give me an example of a very simple Makefile, so I can try to compile my example program ?

thanks in advance

Forum team
Posts: 141
Joined: January 16th, 2013, 7:29 pm

Re: how to compile the mpc ?

Post by Rasi »

obviously you need to install libmpdclient (including its header files). just like the output told you...
Post Reply