| 1 |
This document explains how to install Amarok 2 from SVN in your home directory - in an easy way :) |
| 2 |
================================================================================================== |
| 3 |
|
| 4 |
* If you already have Amarok installed from your distro, uninstall it to prevent setting conflicts and similar. |
| 5 |
|
| 6 |
* Install compiler and KDE 4 development packages: |
| 7 |
|
| 8 |
In Ubuntu, Debian, and all their derivatives: |
| 9 |
|
| 10 |
sudo aptitude install build-essential |
| 11 |
sudo aptitude install kde-devel |
| 12 |
|
| 13 |
In Archlinux: |
| 14 |
|
| 15 |
sudo pacman -S base-devel kdelibs kdebase-runtime |
| 16 |
|
| 17 |
In Gentoo: |
| 18 |
|
| 19 |
sudo emerge kdelibs plasma-workspace |
| 20 |
|
| 21 |
* Append the following to $HOME/.bashrc: |
| 22 |
export PATH=$HOME/kde/bin:$PATH |
| 23 |
export KDEDIR=$HOME/kde |
| 24 |
export KDEDIRS=$KDEDIR |
| 25 |
|
| 26 |
* Reload your edited .bashrc: |
| 27 |
source $HOME/.bashrc |
| 28 |
|
| 29 |
NOTE: if you are not using the bash shell, edit your proper shell config file (~/.zshrc or ~/.tcshrc or whatever it may be) |
| 30 |
|
| 31 |
* Create folders: |
| 32 |
mkdir $HOME/kde |
| 33 |
mkdir $HOME/kde/src |
| 34 |
mkdir $HOME/kde/build/amarok |
| 35 |
|
| 36 |
* Check out Amarok from SVN: |
| 37 |
cd $HOME/kde/src |
| 38 |
svn checkout svn://anonsvn.kde.org/home/kde/trunk/extragear/multimedia/amarok |
| 39 |
|
| 40 |
* Building: |
| 41 |
cd $HOME/kde/build/amarok |
| 42 |
cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde -DCMAKE_BUILD_TYPE=debugfull $HOME/kde/src/amarok |
| 43 |
make install |
| 44 |
|
| 45 |
* Updating KDE Config: |
| 46 |
kbuildsycoca4 --noincremental |
| 47 |
|
| 48 |
|
| 49 |
Now you are ready to run Amarok 2, by typing "amarok" in the shell :) |
| 50 |
|
| 51 |
|
| 52 |
NOTE: |
| 53 |
If you have installed MySQL Embedded in non-default location (i.e. $HOME/usr), |
| 54 |
Amarok may fail to start with error regarding libmysqlclient library. In this |
| 55 |
case, add the following string to your ~/.bashrc: |
| 56 |
|
| 57 |
export LD_LIBRARY_PATH=$HOME/usr/lib/mysql:$LD_LIBRARY_PATH |
| 58 |
|
| 59 |
where $HOME/usr is the path you've used in --prefix option. |
| 60 |
|
| 61 |
|
| 62 |
Have fun :) |