libreadline.so.5 / MariaDB update

webguy

Verified User
Joined
Apr 13, 2005
Messages
41
Location
Best, Netherlands
I have successfully upgraded a vps from Custombuild 1 to Custombuild 2 and am now running a server with PHP 7.0.10, Apache 2.4.23 and MariaDB 10.0.26.
With a Joomla website I see that MariaDB is running: https://db.tt/kuOjJL1V

When I do ./build versions however, I get:

Code:
/usr/bin/mysql: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
Latest version of MariaDB: 10.0.26
Installed version of MariaDB:

MariaDB  to 10.0.26 update is available.

I can then do a ./build mysql and MariaDB is installed (again). But the message keeps coming back end build still seems to think there is a MariaDB update.

Does anyone know how to resolve this? Thanks!
 
Please check if the following fixes your problem:
Code:
yum -y install readline
 
Last edited:
Hi Martynas,

Unfortunately not:

Code:
-bash-4.1# yum -y install libreadline-devel
Loaded plugins: fastestmirror, presto
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.1000mbps.com
 * extras: mirror.denit.net
 * updates: centos.mirror.triple-it.nl
base                                                                                                                                     | 3.7 kB     00:00
extras                                                                                                                                   | 3.4 kB     00:00
updates                                                                                                                                  | 3.4 kB     00:00
updates/primary_db                                                                                                                       | 2.0 MB     00:00
No package libreadline-devel available.
Error: Nothing to do

After that ./build still gives me

Code:
/usr/bin/mysql: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory
Latest version of MariaDB: 10.0.26
Installed version of MariaDB:

MariaDB  to 10.0.26 update is available.
 
I found some interesting differences compared to another VPS that I upgraded to CustomBuild 2 without a problem.
Both servers are running CentOS release 6.8 (Final).

Server without libreadline.so.5 problem:

Code:
rpm -qa | sort | grep Maria
MariaDB-client-10.0.26-1.el6.x86_64
MariaDB-common-10.0.26-1.el6.x86_64
MariaDB-compat-10.0.26-1.el6.x86_64
MariaDB-devel-10.0.26-1.el6.x86_64
MariaDB-server-10.0.26-1.el6.x86_64
MariaDB-shared-10.0.26-1.el6.x86_64

Server with libreadline.so.5 problem:

Code:
rpm -qa | sort | grep Maria
MariaDB-client-10.0.26-1.x86_64
MariaDB-common-10.0.26-1.x86_64
MariaDB-compat-10.0.26-1.x86_64
MariaDB-devel-10.0.26-1.x86_64
MariaDB-server-10.0.26-1.x86_64
MariaDB-shared-10.0.26-1.x86_64

I have no clue why these MariaDB versions are different ...
 
Sorry, I've edited my post. Please check if readline package is installed.
 
Code:
yum -y install readline
Loaded plugins: fastestmirror, presto
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.netrouting.net
 * extras: mirror.denit.net
 * updates: centos.mirror.triple-it.nl
Package readline-6.0-4.el6.x86_64 already installed and latest version
Nothing to do

"Nothing to do" so I guess it's installed then...
 
The server without readline error has the MariaDB installed from CentOS 6, the one you are seeing with readline issue, had MariaDB installed via CB. I don't see the dependency on libreadline in the CB packages I just downloaded. Either way, make sure you have compat-readline5 installed, that is the package that contains the libreadline.so.5 that it is complaining about.
 
Back
Top