Thursday, November 13. 2008Installing Amarok 2 from SVN in your home directory![]() Update: I have corrected some information regarding $KDEDIR on April 3rd, 2009 So you would like to check out the latest Amarok 2 goodness, without messing up your system? One way to do this is by using our Neon Nightly Builds. But if for some reason this doesn't work for you, or maybe if you are toying with the idea of contributing to Amarok, here's a simple guide that shows you how to compile and install Amarok 2 in your $HOME, without any danger of interfering with your Linux distro. You can uninstall it anytime simply by deleting the folder. Nice and easy, the way we like it! This document explains how to install Amarok 2 from SVN in your home directory - in an easy way If you already have Amarok installed from your distro, uninstall it to prevent setting conflicts and similar. Install compiler and KDE 4 development packages: In Ubuntu, Debian, and all their derivatives: sudo aptitude install build-essential sudo aptitude install kde-devel In Archlinux: sudo pacman -S base-devel kdelibs kdebase-runtime In Gentoo: sudo emerge kdelibs plasma-workspace Append the following to $HOME/.bashrc: export PATH=$HOME/kde/bin:$PATH Reload your edited .bashrc: source $HOME/.bashrc NOTE: if you are not using the bash shell, edit your proper shell config file (~/.zshrc or ~/.tcshrc or whatever it may be) Make KDE aware of Amarok's plugin location: echo 'export KDEDIR=$HOME/kde' >> $HOME/.kde/env/myenv.sh echo 'export KDEDIRS=$KDEDIR' >> $HOME/.kde/env/myenv.sh Create folders: mkdir $HOME/kde mkdir $HOME/kde/src mkdir $HOME/kde/build/amarok Check out Amarok from SVN: cd $HOME/kde/src svn checkout svn://anonsvn.kde.org/home/kde/trunk/extragear/multimedia/amarok Building: cd $HOME/kde/build/amarok cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde -DCMAKE_BUILD_TYPE=debugfull $HOME/kde/src/amarok make install Updating KDE Config kbuildsycoca4 --noincremental Now you are ready to run Amarok 2, by typing "amarok" in the shell. NOTE: If you have installed MySQL Embedded in non-default location (i.e. $HOME/usr), Amarok may fail to start with error regarding libmysqlclient library. In this case, add the following string to your ~/.bashrc: export LD_LIBRARY_PATH=$HOME/usr/lib/mysql:$LD_LIBRARY_PATH where $HOME/usr is the path you've used in --prefix option. Have fun Trackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
"Install compiler and KDE 4 development packages:" - yeah ... without interfering with my Linux distro ...
I think I'll wait til January ...
Uhm, what problem does this pose? It simply installs the necessary tools for building.
Are there no new nightlys? Last one is from Nov 3d and sound output doesn't work... ;(
On Debian Lenny, installing kde-devel doesn't look like it has anything to do with kde4!?!
kde-devel might be a kubuntu package. What it does is install everything you need for KDE development in one go.
Well, you wrote "In Ubuntu, Debian, and all their derivatives". kde-devel is a Debian-package alright, but it's for kde3 AFAICS, and installing the version from experimental doesn't seem to change that. So much for "without any danger of interfering with your Linux distro", not?
In Arch Linux, you need to also install automoc4
For Fedora 9 you will need mysql-embedded-devel, see kde-redhat on sf.net how-to obtain it.
Where to get embedded mysql in ubuntu? Is there a repository for it? Or have I just left it unnoticed?
You can either take the amarok-mysql package from a Amarok 2 Beta 3 installation, or follow this document:
http://amarok.kde.org/wiki/Development/MySQL_Embedded
On my amd64 Gentoo system i had to fake lib64 directory inside $HOME/kde:
ln -s $HOME/kde/lib $HOME/kde/lib64 Otherwise my system couldn't find newly installed plugins (which were placed to $HOME/kde/lib directory). Hope that helps some users.
Update:
The following lines do not belong in "$HOME/.bashrc", but rather in "$HOME/.kde/env/myenv.sh": export KDEDIR=$HOME/kde export KDEDIRS=$KDEDIR Thanks to David Faure for pointing this out to me.
Minor edit: the line
mkdir $HOME/kde/build/amarok should be mkdir -p $HOME/kde/build/amarok
hi,
here my makeamarok.sh script, how can playground be added to this? --- #!/bin/bash cd $HOME/kde/src/amarok svn up cd $HOME/kde/build/amarok cmake -DCMAKE_INSTALL_PREFIX=$HOME/kde -DCMAKE_BUILD_TYPE=debugfull $HOME/kde/src/amarok/ make install |
Amarok LinksCalendar
QuicksearchCategoriesSyndicate This BlogBlog Administration |
||||||||||||||||||||||||||||||||||||||||||

