[MDEV-16704] MariaDB install plugin for rockdb and oqgraph failing Created: 2018-07-06  Updated: 2018-08-04  Resolved: 2018-08-04

Status: Closed
Project: MariaDB Server
Component/s: Configuration
Affects Version/s: 10.3.8
Fix Version/s: N/A

Type: Bug Priority: Blocker
Reporter: Ramesh Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: need_feedback
Environment:

RedHat 7.x (7.2/7.4)



 Description   

Plugin install failing with missing libraries which are not part of any RedHat distribution.

failed: [xxxxxx] (item=install soname 'ha_rocksdb') =>

{"changed": true, "cmd": ["/usr/local/mysql/bin/mysql", "--user=root", "--password=xxx", "-e", "install soname 'ha_rocksdb'"], "delta": "0:00:00.096465", "end": "2018-07-06 14:26:03.823705", "failed": true, "item": "install soname 'ha_rocksdb'", "msg": "non-zero return code", "rc": 1, "start": "2018-07-06 14:26:03.727240", "stderr": "ERROR 1126 (HY000) at line 1: Can't open shared library '/usr/local/mysql/lib64/mysql/plugin/ha_rocksdb.so' (errno: 2, libzstd.so.1: cannot open shared object file: No such file or directory)", "stderr_lines": ["ERROR 1126 (HY000) at line 1: Can't open shared library '/usr/local/mysql/lib64/mysql/plugin/ha_rocksdb.so' (errno: 2, libzstd.so.1: cannot open shared object file: No such file or directory)"], "stdout": "", "stdout_lines": []}

failed: [xxxxxxxxx] (item=install soname 'ha_oqgraph') =>

{"changed": true, "cmd": ["/usr/local/mysql/bin/mysql", "--user=root", "--password=xxx", "-e", "install soname 'ha_oqgraph'"], "delta": "0:00:00.050891", "end": "2018-07-06 14:26:04.547895", "failed": true, "item": "install soname 'ha_oqgraph'", "msg": "non-zero return code", "rc": 1, "start": "2018-07-06 14:26:04.497004", "stderr": "ERROR 1126 (HY000) at line 1: Can't open shared library '/usr/local/mysql/lib64/mysql/plugin/ha_oqgraph.so' (errno: 2, libJudy.so.1: cannot open shared object file: No such file or directory)", "stderr_lines": ["ERROR 1126 (HY000) at line 1: Can't open shared library '/usr/local/mysql/lib64/mysql/plugin/ha_oqgraph.so' (errno: 2, libJudy.so.1: cannot open shared object file: No such file or directory)"], "stdout": "", "stdout_lines": []}

 Comments   
Comment by Sergei Golubchik [ 2018-07-07 ]

libJudy.so.1 is there all right:

sh-4.2$ rpm -qf /usr/lib64/libJudy.so.1
Judy-1.0.5-8.el7.x86_64

But libzstd is not, you're correct. Your options are:
1. Use RPM packages that we build on CentOS 7 (that only depends on libraries present in CentOS 7), not a generic binary tarball (that includes everything). You can even download RPM packages and install files in /usr/local, if you'd like.
2. Compile and install libzstd manually — if you use a binary tarball, there's no automatic dependency tracking, you're on your own.
3. Don't install RocksDB engine, if you don't need it

Generated at Thu Feb 08 08:30:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.