Skip to content

mysql2redis install problem #4

@crystonesc

Description

@crystonesc

i installed the hiredis and mysql_json_udf,but when i run the install.sh,and i got the error result:
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
gcc: error: [OPTIONS]: 没有那个文件或目录
gcc: error: Options:: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--cflags’
gcc: error: [-I/usr/include/mysql: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--libs’
gcc: error: [-L/usr/lib/mysql: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--libs_r’
gcc: error: [-L/usr/lib/mysql: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--socket’
gcc: error: [/var/run/mysqld/mysqld.sock]: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--port’
gcc: error: [3306]: 没有那个文件或目录
gcc: error: [5.0.32]: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--libmysqld-libs’
gcc: error: [-L/usr/lib/mysql: 没有那个文件或目录
gcc: error: [OPTIONS]: 没有那个文件或目录
gcc: error: Options:: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--cflags’
gcc: error: [-I/usr/include/mysql: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--libs’
gcc: error: [-L/usr/lib/mysql: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--libs_r’
gcc: error: [-L/usr/lib/mysql: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--socket’
gcc: error: [/var/run/mysqld/mysqld.sock]: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--port’
gcc: error: [3306]: 没有那个文件或目录
gcc: error: [5.0.32]: 没有那个文件或目录
gcc: error: unrecognized command line option ‘--libmysqld-libs’
gcc: error: [-L/usr/lib/mysql: 没有那个文件或目录
gcc (Debian 4.7.2-5) 4.7.2

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