NB: be aware that this page is a translation of the original in french and might not completely up-to-date.
adapted from the procedure on this page and from the procedure sent to the mailing-list by sleepless
The following packages must have been installed beforehand:
if needed, the missing modules must be installed with the following command:
# yum install module-1 module-2 module-n
the very first time, the local repository must be be created:
$ cd ~ $ mkdir digikam-src $ cd digikam-src $ git clone git://anongit.kde.org/digikam-software-compilation software-compilation
creates in /~/digikam-src/software-compilation/ the structure that will hosts the local clone of the Digikam git.
Enter the subfolder, and run the script that populates the local git:
$ cd software-compilation $ perl download-repos
The procedure might be rather long, and should be relaunched if interrupted, so that the whole download is completed normaly without errors.
If the local repository has not just been created, it must be re-synchronized with the online Digikam repository using the following command:
$ perl gits pull
A simple way to retrieve the Digikam dependencies is to simulate the compilation of a source available in the repositories, then use yum to install the missing packages.
Download a source such as ftp://rpmfind.net/linux/fedora/development/rawhide/source/SRPMS/digikam-2.0.0-4.fc17.src.rpm in the /tmp subfolder, and launch the compilation :
# rpm -ivh /tmp/digikam*.src.rpm $ rpmbuild -bb ~/rpmbuild/SPECS/digikam.spec
If there is no error messages, the compilation can be interrupted; otherwise, install the missing packages using yum install. The whole ~/rpmbuild subfolder can be deleted after that.
Create a dedicated subdirectory, and launch the pre-compilation:
$ cd ~/digikam-src/software-compilation $ mkdir build $ cd build $ cmake -DCMAKE_BUILD_TYPE=debugfull -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
then the compilation
$ make
Then login as root to install:
# make install
To uninstall a self compilation, go to the /build subfolder where the compilation has been done, and type the following command as root:
# make uninstall
After that, it is possible to install another version from the official repositories with the usual yum install.
Conflicts between different libraries versions might prevent the reinstallation of another Digikam version from the official repositories. In that case, all the libraries causing conflicts have to be removed using:
# rpm -e library-name
When cross-dependencies blocks the uninstallation, use the –nodeps option:
# rpm -e --nodeps library-name
After that, yum install should work as usual.