Note
I have studied other posts about this error, but they didn't help me. So, I'm going to describe my problem here.
Starting MariaDB
Following this guide to install WordPress on an Ubuntu 22.04.5 LTS server. I installed MariaDB and started it:
sudo systemctl restart mariadb.service
Throws failure error. Then sudo journalctl -xeu mariadb.service
shows:
/usr/sbin/mariadbd: /usr/local/lib/libstdc++.so.6: version `GLIBCXX_3.4.30' not found
But GLIBCXX_3.4.30
is available
Inspired by this post:
https://askubuntu.com/a/1458100/507217
I run strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
and I get:
GLIBCXX_3.4GLIBCXX_3.4.1GLIBCXX_3.4.2GLIBCXX_3.4.3GLIBCXX_3.4.4GLIBCXX_3.4.5GLIBCXX_3.4.6GLIBCXX_3.4.7GLIBCXX_3.4.8GLIBCXX_3.4.9GLIBCXX_3.4.10GLIBCXX_3.4.11GLIBCXX_3.4.12GLIBCXX_3.4.13GLIBCXX_3.4.14GLIBCXX_3.4.15GLIBCXX_3.4.16GLIBCXX_3.4.17GLIBCXX_3.4.18GLIBCXX_3.4.19GLIBCXX_3.4.20GLIBCXX_3.4.21GLIBCXX_3.4.22GLIBCXX_3.4.23GLIBCXX_3.4.24GLIBCXX_3.4.25GLIBCXX_3.4.26GLIBCXX_3.4.27GLIBCXX_3.4.28GLIBCXX_3.4.29GLIBCXX_3.4.30GLIBCXX_DEBUG_MESSAGE_LENGTH
So, GLIBCXX_3.4.30
is actually available.
I run ls -la /usr/lib/x86_64-linux-gnu/libstdc++.so.6
and I get:
/usr/lib/x86_64-linux-gnu/libstdc++.so.6 -> libstdc++.so.6.0.30
Question
Everything looks fine. So, what's the problem?
I expected installing and starting MariaDB to be much more smoother than this :(