[Amarok]: The chosen database module could not be loaded


I didn’t wanted to wait to install Amarok so i installed it by compilation. But when i launch it, i have the following message:

The Amarok database reported the following errors:
The chosen database module could not be loaded.
In most cases, you will need to resolve these errors before Amarok can work properly.

The most visible symptom is that it is unable to add music in its database. I don’t get what i failed during compilation, could you give me a clue ?


I think you said it all. If you don’t want to wait for it to be ready, then you’re really on your own.

Despite the announcement (that it’d be on Flatpak within a few hours, some days ago) it hasn’t gone through, and is not there yet…

2.9.71-5 is now flagged ‘Out of date’ and we’re all waiting for 3.0 to come up…

Looking at the package, and instructions, isn’t kf5-config long deprecated?

The v.3 is already available, but only as a tarball for now, and this is precisely the version i downloaded.

Maybe because it’s for Plasma 5 and we’re already up to Plasma 6, IDK - but it won’t build for me with Plasma 6 anyway.

The developer stated that he was releasing it as a flatpak and it ‘should be ready in a couple of hours’.

But it never went through.

They did provide an incredibly useful link to the Amarok Forum: https://forum.kde.org/viewforum.php?f=127

Maybe I’m just too dumb to figure it out.

I’m currently on plasma 5.x.

Actually, your link is broken.

File not found

Their link.

They stated that they’d done some fixing for Plasma 6, I couldn’t get past:

cmake .. -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix
CMake Error: Unknown argument --prefix`

I am not quite sure on what are you referring to, but in case it is the beta release announcement thread,
on Flatpak I stated there:

Another user responded

I really can’t see a

there, to be honest.

Some fixes have since landed, and everything’s 3.0 at GitHub - flathub/org.kde.amarok, but still pending moving out of beta: Move out of Beta · Issue #5 · flathub/org.kde.amarok · GitHub. I don’t know Flatpak, maybe that’s something that can be tried out somewhat easily already and feedback given?

On forum link,

I’m not quite sure where this is from. It seems to appear in handbook and maybe some other places, “Revision 2.9.0 (2018-05-21)”. Apparently documentation doesn’t update itself. Who would’ve known.

Shouldn’t be a problem. Both KF5 and KF6 libraries can coexist on same system; I’m running one of my development systems KF5 and one KF6.

Aside from the fact that closing ` is missing from your command (was apparently missing from my build-fix-try-suggestion, fixed now), I don’t see any reason why that wouldn’t work if KF5 development libraries and tools are installed.

3.0.0 is also available as binary package from various distribution repositories amarok package versions - Repology

1 Like

I don’t monitor KDE Discuss that actively, but happened to note this thread.

As a general “try-building-again”, the message

contains something you could probably try.

Amarok/Development/Compiling - KDE Community Wiki is probably the most up-to-date resource on building

Also, can you check initial cmake output and confirm if

 * MySQL, MySQL Client Library (libmysqlclient), <https://www.mysql.com>


 * MySQLe, MySQL Embedded Library (libmysqld), <https://www.mysql.com>

are listed as found or not found. You probably will want a MySQLe database ( = mariadb embedded), the package name varies somewhat, but generally something called libmariadbd-devel is required for that