Can not load default MySQL library ("libmysqlclient.so.20" or "libmysqlclient.so")

3 posts / 0 new
Last post
HB9TNZ
Can not load default MySQL library ("libmysqlclient.so.20" or "libmysqlclient.so")

Hi Community,

after installing I always do get the following error and the program never run.

. Error during connection to database: Can not load default MySQL library ("libmysqlclient.so.20" or "libmysqlclient.so"). Check your installation.

I am running it under

. Linux Mint 21.2
. ID_LIKE="ubuntu debian"

I already tried

. via Slack V 2.5.2-1 and read that there is an issue with mysql from one user
. tried with mariadb Server and Client
. uninstalled and tried -> sudo add-apt-repository ppa:ok2cqr/ppa;sudo apt-get update;sudo apt-get install cqrlog
. uninstalled and tried -> cqrlog_2.5.2_amd64.tar.gz
. uninstalled and tried all above combined with mariadb and mysql client and server
. tried also to start db manual

and do get always the exact same above error. I checked at the very first time that I want to store the data local.

When searching the whole drive for ibmysqlclient.so.20 it says not found.
When searching the whle drive for ibmysqlclient.so it finds
. libmysqlclient.so.21
. libmysqlclient.so.21
. libmysqlclient.so.21.2.35

Now I am running out of ideas, but sure I am close to it. Ideas very welcome.

73, de Ingo HB9TNZ

oh1kh
Can not load default MySQL library ("libmysqlclient.so

Hi!
First be sure that you have Mariadb client and server both installed.
See this comment https://www.cqrlog.com/comment/10993#comment-10993
You can run installation command again.

Number may differ from 20 but libmysqlclient.so is symlink that should point to number ending libmysqlclient.

If that is missing Cqrlog can not find library file.
You can do symlink in same folder where the '21' ending file is.
See
https://www.freecodecamp.org/news/linux-ln-how-to-create-a-symbolic-link...

How ever Mariadb installation should create it without user's action.

--
Saku
OH1KH

wr4ms
Apologies for replying to a

Apologies for replying to a somewhat older thread, but thought I'd mention another fix is to check for a libmysqlclient-dev package w/your Linux distro. The main libmysqlclient package only contains the versioned .so files, while the development package contains the generic libmysqlclient.so symlink. (Seems like several packages are like this in recent distros...not sure why).

Bill, WR4MS