Install Amarok2 on Ubuntu 9.10 Karmic
Amarok is a free software music player for Linux and other varieties of Unix, as well as Windows since version 2.0 (through KDE for Windows). It makes use of core components from the K Desktop Environment, but is released independently of the central KDE release cycle.
A new major version of Amarok, version 2.0, was released on December 12, 2008, which was a complete aesthetic and functional redesign of Amarok 1.4. On June 3, 2009, version 2.1 was released which reintroduced a few of the 1.4 features which had been missing from the initial 2.0 release, and introduced some features such as native ReplayGain support for the first time.

In this tutorial, i will walk you through installing the beautiful new Amarok 2.2 on Ubuntu Linux 9.10 Desktop.
Install Amarok2 on Ubuntu 9.10
1) Remove existing Amarok (if it exists)
# sudo apt-get purge amarok amarok-common
2) Ensure Ubuntu is fully up to date
# sudo apt-get update && sudo apt-get upgrade
3) Install Amarok2 dependencies
# sudo apt-get install git-core build-essential kubuntu-restricted-extras kde-devel subversion libncurses5-dev libtag1-dev libqca2-dev libstrigiqtdbusclient-dev libstreamanalyzer-dev
4) Edit your .bashrc and myenv.sh
# echo '' >> ${HOME}/.bashrc
# echo 'export PATH=$HOME/kde/bin:$PATH' >> ${HOME}/.bashrc
# echo 'export KDEDIR=$HOME/kde' >> ${HOME}/.bashrc
# echo 'export KDEDIRS=$KDEDIR' >> ${HOME}/.bashrc
5) Verify .bashrc and myenc.sh edits
# cat ${HOME}/.bashrc
# cat ${HOME}/.kde/env/myenv.sh
6) Reload .bashrc
# source ${HOME}/.bashrc
7) Create working folders
# mkdir -p ${HOME}/kde/src
# mkdir -p ${HOME}/kde/build/amarok
8) Download Amarok2
# cd ${HOME}/kde/src
# git clone git://gitorious.org/amarok/amarok.git
9) Download MySQL
# cd ${HOME}/kde/src
# wget http://dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.40.tar.gz/from/ht...
10) Extract and compile MySQL
# tar xzvf mysql-5.1.40.tar.gz
# cd mysql-5.1.40
# cp -R ${HOME}/kde/src/amarok/supplementary_scripts/mysqle/* .
11) Compile taglib-extras
# cd ${HOME}/kde/src
# svn co svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib-extras/ taglib-extras
# cd taglib-extras
# mkdir build
# cd build
# export LD_LIBRARY_PATH=${HOME}/kde/build/taglib-extras/taglib-extras
# cmake -DWITH_ASF=On -DWITH_MP4=On -DCMAKE_INSTALL_PREFIX=${HOME}/kde ..
# make
# make install
12) Compile QtScriptGenerator
# cd ${HOME}/kde/src
# wget http://qtscriptgenerator.googlecode.com/files/qtscriptgenerator-src-0.1....
# tar xfvz qtscriptgenerator-src-0.1.0.tar.gz
# cd qtscriptgenerator-src-0.1.0
# wget http://www.timashley.me/files/qtscript_patches.tar.gz
# tar zxvf qtscript_patches.tar.gz
# rm generator/parser/rpp/pp.h
# rm generator/qtscript_masterinclude.h
# cp pp.h generator/parser/rpp
# cp qtscript_masterinclude.h generator/
# export INCLUDE=/usr/include/qt4
# cd generator
# qmake
# make
# ./generator
# cd ../qtbindings
# qmake
# make
# cd ../plugins/script
# sudo cp -R * /usr/lib/qt4/plugins/script/
13) Install Amarok2 plugins
# sudo apt-get install qt4-qmake pkg-config libsamplerate-dev libfftw3-dev ruby g++ libqt4-dev
# cd ${HOME}/kde/src/
# wget http://cdn.last.fm/src/liblastfm-0.3.0.tar.bz2
# tar xvfj liblastfm-0.3.0.tar.bz2
# cd liblastfm-0.3.0
# ./configure --release --prefix /usr/local
# make
# sudo make install
# sudo apt-get install libgpod4 libgpod-dev libmtp8 libmtp-dev curl libcurl4-openssl-dev libxml2 libxml2-dev libloudmouth1-0 libloudmouth1-dev
14) Compile Amarok2
# cd ${HOME}/kde/src/amarok
# mkdir build
# cd build
# cmake -DCMAKE_INSTALL_PREFIX=${HOME}/kde -DCMAKE_BUILD_TYPE=debugfull ${HOME}/kde/src/amarok
# make
# make install
15) Run Amarok2
# amarok
Teh haps'
Thu, 09/02/2010 - 12:53
Tim tweeted "RT @To_Japan Anniversary campaign: just RT & win a FREE TICKET to Japan! http://bit.ly/IACE40EN #IACE40th" 12:53pm#
Tim listened to Easy Star All-Stars – Lucy In The Sky With Diamonds 1:35am#
Tim listened to Easy Star All-Stars – With a Little Help from My Fr 1:32am#
Tim listened to Easy Star All-Stars – Sgt. Pepper's Lonely Hearts C 1:26am#
Tim listened to Gorillaz – Pirate Jet 1:18am#Mon, 08/30/2010 - 17:17
Tim listened to Atmosphere – Wild Wild Horses 5:17pm#
Tim listened to Atmosphere – Free or Dead 5:12pm#
Tim tweeted "Listening to Burningman via Black Rock Cities official radio station, BMIR 94.5 - http://bmir.org/" 4:48pm#
Tim listened to Atmosphere – Cats van Bags 4:43pm#
Tim listened to Atmosphere – Sound Is Vibration 4:39pm#