What a tough start of using digikam!!

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 (http://www.digikam.org/download?q=download/binary/).
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)/digikam.app. 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:
QSQLITE3
"


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/digikam.app/Contents/MacOS/digikam

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


Related Posts

In case you missed it

A short update from me
A short update from me
It has been a while since I post a blog page on Blogger which was created back in 2013. So I took an opportunity to...
Showcase the blog site elements
Showcase the blog site elements
The standard paragraphs Welcome to this demo page! Here, you’ll get an exclusive preview of our cutting-edge platform designed to revolutionise your digital experience. Our...
Issue with
Issue with "Don't track your own pageviews"
Do you use your own domain name with Blogger? Do you place “Blogger’s Stats Widget” on your page? Or do you regularly check up the...