配置:错误:无效的MySQL根目录
在centos 6.4上安装带有percona 5.6的狮身人面像时遇到问题 从源代码生成时,我遇到以下错误:配置:错误:无效的MySQL根目录,mysql,centos,percona,Mysql,Centos,Percona,在centos 6.4上安装带有percona 5.6的狮身人面像时遇到问题 从源代码生成时,我遇到以下错误: ****************************************************************************** ERROR: cannot find MySQL include files. Check that you do have MySQL include files installed. The package name is
******************************************************************************
ERROR: cannot find MySQL include files.
Check that you do have MySQL include files installed.
The package name is typically 'mysql-devel'.
If include files are installed on your system, but you are still getting
this message, you should do one of the following:
1) either specify includes location explicitly, using --with-mysql-includes;
2) or specify MySQL installation root location explicitly, using --with-mysql;
3) or make sure that the path to 'mysql_config' program is listed in
your PATH environment variable.
To disable MySQL support, use --without-mysql option.
******************************************************************************
Percona Server devel已安装:
rpm -qa | grep -i percona
percona-release-0.0-1.x86_64
Percona-Server-server-56-5.6.16-rel64.2.el6.x86_64
Percona-Server-client-56-5.6.16-rel64.2.el6.x86_64
Percona-Server-devel-56-5.6.16-rel64.2.el6.x86_64
Percona-Server-shared-56-5.6.16-rel64.2.el6.x86_64
我所尝试的:
locate "libmysql"
/usr/lib64/libmysqlclient.so.18
/usr/lib64/libmysqlclient.so.18.0.0
/usr/lib64/libmysqlclient_r.so.18
/usr/lib64/libmysqlclient_r.so.18.0.0
/usr/lib64/mysql/libmysqlclient.so.16
/usr/lib64/mysql/libmysqlclient.so.16.0.0
/usr/lib64/mysql/libmysqlclient_r.so.16
/usr/lib64/mysql/libmysqlclient_r.so.16.0.0
/usr/lib64/mysql/libmysqlservices.a
比:
配置:错误:无效的MySQL根目录“/usr/lib64/MySQL”;
在那里既没有找到bin/mysql\u config,也没有找到include/和lib/
哪个mysql\u配置
/usr/bin/mysql_config
你试过安装mysql-devel吗
sudo yum install mysql-devel
如果设置正确,请尝试按照错误消息中的建议,使用如下命令手动指向这些LIB(以适应您的环境)
你不能同时拥有mysql-devel和percona-devel!您可能是对的,但是错误消息以“error:not find MySQL include files”开头,因此您必须指出这种或那种方式。您是否尝试过使用mysql includes(将其指向personal lib并进行检查)
sudo yum install mysql-devel
./configure --with-mysql-includes=/usr/local/src/mysql-XXX/include