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
# 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
THANK YOU, ELVIS! Finally I can use the same photo manager on Mac and LInux.
ReplyDeleteThis was the missing piece. I really appreciate that you took the time to write this up so I could find it.
Are you not being stung by the QEventDispatcherUNIXPrivate(): Unable to create thread pipe: Too many open files
ReplyDeleteissue? https://bugs.kde.org/show_bug.cgi?id=289330 From what I can tell the current macports version has been patched with
commit 5e6b607b38076eb226a7fa92c82f0fe476bc9681
Author: Marcel Wiesweg
Date: Sat Apr 14 17:12:07 2012 +0200
But I'm still failing on startup, once I've finished scanning my Pictures directory