源码编译PHP7的时候报了个问题
configure: error: wrong mysql library version or lib not found. Check config.log for more information.
这个其实很奇怪,我指定的mysql_config并没有错误
查看我的mysql_config,的确存在
[root@localhost nginx-1.6.0]# ll /usr/local/mysql/bin/mysql_config
-rwxr-xr-x. 1 7161 31415 5224 Mar 21 14:01 /usr/local/mysql/bin/mysql_config
按照其它文章的说法是去掉这个usr/bin/mysql_config,但我的机子上并没有其他的mysql啊
标题我认为是所以我查了一下我机子上有没有其它的mysql_config
[root@localhost nginx-1.6.0]# find / -name mysql_config
/usr/local/src/mysql-5.7.38-el7-x86_64/bin/mysql_config
/usr/local/mysql/bin/mysql_config
把/usr/local/src/mysql-5.7.38-el7-x86_64/bin/mysql_config删掉或者重命名即可编译通过
请根据个人环境选择不同的方法解决问题,问题的解决方法并不适用与所有人与环境