Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
244 views
in Technique[技术] by (71.8m points)

postfix找不到libmysqlclient.so.18

系统centos7
事情缘由是我安装好系统后,把系统自带的mariadb-libs-5.5.52-1.el7.x86_64卸载了(这是我后来才知道这个跟找不到libmysqlclient.so.18有关)。
然后编译安装了lnmp。
后又安装了postfix,启动时提示找不到libmysqlclient.so.18。也就是说,我的/usr/local/mysql/lib/下是libmysqlclient.so.20(MySQL 5.5.18)
现在该怎么办呢?别的机器上找libmysqlclient.so.18?感觉最好的方法是让postfix识别到libmysqlclient.so.20

我现在是通过yum remove postfix再yum install postfix来自行修复依赖文件,不过会,看着不是很爽呢。
Installing : 1:mariadb-libs-5.5.52-1.el7.x86_64
warning: /etc/my.cnf created as /etc/my.cnf.rpmnew


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

如果是mysql5.7的话,可以安装mysql-community-libs-compat-5.7.20-1.el7.x86_64.rpm 包,作为兼容


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...