Yesterday, I was trying to install digikam on my Macbook Pro and I just followed the instruction to install.

Well, it was not that easy to install digikam on Mac. Anyway, here is the story:

I went to "Macports" to download the package to install the Macports and when Macports is installed then I type

# sudo port install digikam

to install the digikam and its dependencies (
As per instruction, it mentioned about "be prepared to wait hours for the compilation of digiKam and all its dependencies", so I was waiting and waiting for the installation to complete.

It took about an hour to complete and I was excited to open the application via Launchpad/MacPorts (Other)/ Ooops, it throws an error:

"Run-time Qt4 SQLite or MySQL database plugin is not available - please install it.
Database plugins installed on your computer are listed below:

I googled and googled again and found a quick solution here by running:

# sudo port install qt4-mac-mysql5-plugin

The previous message didn't show up again but another message came up:

"error while opening the database.
digikam will try to automatically reconnect to the database

Well, so I kept googling and googling again and found out a way to run it via terminal

# /Applications/MacPorts/KED4/

and I got these messages

digikam(1099): set session bus address to "unix:path=/tmp/launch-WpzWml/unix_domain_listener"digikam(1099)/KSharedDataCache ensureFileAllocated: This system misses support for posix_fallocate() -- ensure this partition has room for at least 10547296 bytes. QSqlDatabase: QSQLITE driver not loadedQSqlDatabase: available drivers: QSQLITE3 QMYSQL3 QMYSQLdigikam(1099)/digikam (core): Error while opening the database. Error details [ QSqlError(-1, "Driver not loaded", "Driver not loaded") ]

Because digikam needs two databases for SQLite to operate (digikam4.db and thumbnails-digikam.db) and I have tries all sort of methods to find or create these two files. Sadly, none of them worked. But hang on a minute... "QSQLITE driver not loaded" is a heads up, so I searched on google again, then I assumed the SQLite plugin for MacPorts might not be installed. So I started to tried calling

# sudo port install qt4-mac-sqlite3-plugin

and then start the digikam again... Cha-Ching!! The digikam started up smoothly.... Yahoo~~

Hope someone has same issue as mine can be resolved via my experience.


PS: if you want to reset the settings of digikam, you can try the following commands (source)

killall -9 digikam
rm -rf $(kde4-config --localprefix)/share/config/digi*
rm -rf $(kde4-config --localprefix)/share/apps/digi*/
rm -rf /var/tmp/kdecache-$(id -un)/digi*
rm -rf /tmp/ksocket-$(id -un)/digi*
rm -rf /tmp/kde-$(id -un)/digi*
kbuildsycoca4 --noincremental