8000 ERROR 1126 (HY000) at line 5: Can't open shared library 'lib_mysqludf_redis.so' (errno: 11 libhiredis.so.0.13: cannot open shared object file: No such file or directory) · Issue #5 · jackeylu/mysql2redis · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
ERROR 1126 (HY000) at line 5: Can't open shared library 'lib_mysqludf_redis.so' (errno: 11 libhiredis.so.0.13: cannot open shared object file: No such file or directory) #5
Open
@fish-work

Description

@fish-work

1,install error:
[root@localhost mysql2redis]# ./install.sh
Compiling the MySQL UDF
gcc -Werror -O2 /usr/bin/mysql_config --include -I/usr/local/include -I. -fPIC -shared -rdynamic lib_mysqludf_redis.c utils.c
-lhiredis -L/usr/bin/mysql_config --plugindir -o /usr/bin/mysql_config --plugindir/lib_mysqludf_redis.so
MySQL UDF compiled successfully

Please provide your MySQL root password
**

The password for MySQL root your inputed is **

Warning: World-writable config file '/etc/my.cnf' is ignored
Warning: Using a password on the command line interface can be insecure.
ERROR 1126 (HY000) at line 5: Can't open shared library 'lib_mysqludf_redis.so' (errno: 11 libhiredis.so.0.13: cannot open shared object file: No such file or directory)
ERROR: unable to install the UDF
Check the enviroment path of redis, hiredis, mysql and mysql-plugin


2,list the mysql/plugin file and location:
[elem@localhost plugin]$ pwd
/usr/lib64/mysql/plugin
[elem@localhost plugin]$ ls -ltr
总用量 3060
-rw-r--r--. 1 root root 227 3月 3 23:35 daemon_example.ini
-rwxr-xr-x. 1 root root 30349 3月 4 00:02 auth.so
-rwxr-xr-x. 1 root root 16139 3月 4 00:02 adt_null.so
-rwxr-xr-x. 1 root root 14206 3月 4 00:02 auth_socket.so
-rwxr-xr-x. 1 root root 29360 3月 4 00:02 auth_test_plugin.so
-rwxr-xr-x. 1 root root 13439 3月 4 00:02 mysql_no_login.so
-rwxr-xr-x. 1 root root 19489 3月 4 00:02 qa_auth_client.so
-rwxr-xr-x. 1 root root 30662 3月 4 00:02 qa_auth_interface.so
-rwxr-xr-x. 1 root root 15136 3月 4 00:02 qa_auth_server.so
-rwxr-xr-x. 1 root root 21349 3月 4 00:02 mypluglib.so
-rwxr-xr-x. 1 root root 40872 3月 4 00:02 libdaemon_example.so
-rwxr-xr-x. 1 root root 186041 3月 4 00:02 validate_password.so
-rwxr-xr-x. 1 root root 782364 3月 4 00:02 libmemcached.so
-rwxr-xr-x. 1 root root 278332 3月 4 00:02 semisync_slave.so
-rwxr-xr-x. 1 root root 813217 3月 4 00:02 innodb_engine.so
-rwxr-xr-x. 1 root root 520336 3月 4 00:02 semisync_master.so
drwxr-xr-x. 2 root root 4096 4月 13 10:32 debug
-rwxr-xr-x. 1 mysql mysql 37420 4月 13 11:11 lib_mysqludf_json.so
lrwxrwxrwx. 1 root root 33 4月 13 14:35 libhiredis.so -> /usr/local/lib/libhiredis.so.0.13
-rwxr-xr-x. 1 mysql mysql 222017 4月 13 14:38 libhiredis.so.0.13
-rwxr-xr-x. 1 root root 12761 4月 13 16:11 lib_mysqludf_redis.so


3,libhiredis.so.0.13 source location
[elem@localhost lib]$ pwd
/usr/local/lib
[elem@localhost lib]$ ls -ltr
总用量 608
drwxr-xr-x. 4 root root 30 3月 15 13:02 node_modules
-rwxrwxr-x. 1 elem elem 222017 4月 13 13:31 libhiredis.so.0.13
-rw-rw-r--. 1 elem elem 396610 4月 13 13:31 libhiredis.a
drwxr-xr-x. 2 root root 23 4月 13 13:32 pkgconfig
lrwxrwxrwx. 1 root root 18 4月 13 15:39 libhiredis.so -> libhiredis.so.0.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0