So yesterday while I was sitting in front of my computer, getting bored, had nothing to do. I decided to tweak my RHEL desktop to make it little more cool to work on. Since I only use it for serious work there were not much applications installed. So I tried to install my favorite music player MPD with NCMPCPP but that was not so easy ( at least for me). It took me so much time (almost whole day) just to figure out how to install NCMPCPP. So I am posting this how-to for anyone else who might be looking for the same.
Installing MPD and MPC
First install the RPMforge repository :-
Tip: use “uname -i” to get your architecture info and replace x86_64 according to that.
Install DAG’s gpg key :-
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
Verify the package :-
# rpm -K rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
Install the package :-
# rpm -i rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
Install MPC and MPD :-
# yum --enablerepo=rpmforge install mpd mpc
Installing NCMPCPP :-
$ cd $HOME $ git clone git://repo.or.cz/ncmpcpp.git
Install some prerequisites before compiling :-
# yum install ncurses-devel taglib-devel libmpdclient2-devel
* this “libmpdclient2-devel” was not available on my system that is why i was getting the compiling errors. Took me whole day just to figure out the package is libmpdclient2-devel . Always remember if you get any compilation errors on RHEL always make sure the related “-devel” package is present.
Compile NCMPCPP :-
$ cd ncmpcpp $ ./autogen.sh --prefix=/usr --enable-clock --with-taglib
* See ./autogen.sh –help for more options that you can enable/disable.
$ make $ sudo make install
See this Archlinux wiki for MPD configuration, although it is Archlinux but the MPD configuration is applicable on RHEL. (See this link Archlinux:MPD)
And here is a sample NCMPCPP config file. Save this file as ~/.ncmpcpp/config (Here is the file)