postfix找不到libmysqlclient.so.18

本文记录了在服务器安装GitLab过程中遇到的postfix服务启动失败问题。错误提示为libmysqlclient.so.18未找到。通过查找并创建软链接至/usr/lib路径下,以及卸载重装postfix的方法解决了该问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  最近需要下服务器上安装gitlab,在使用yum安装postfix之后,启动post报错,进行debug显示如下错误提示

[root@localhost ~]# systemctl status postfix.service
● postfix.service - Postfix Mail Transport Agent
   Loaded: loaded (/usr/lib/systemd/system/postfix.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since 五 2018-03-02 09:43:51 CST; 27min ago
  Process: 11414 ExecStart=/usr/sbin/postfix start (code=exited, status=127)
  Process: 11411 ExecStartPre=/usr/libexec/postfix/chroot-update (code=exited, status=0/SUCCESS)
  Process: 11408 ExecStartPre=/usr/libexec/postfix/aliasesdb (code=exited, status=127)

3月 02 09:43:51 localhost.localdomain systemd[1]: Starting Postfix Mail Transport Agent...
3月 02 09:43:51 localhost.localdomain aliasesdb[11408]: /usr/sbin/postconf: error while loading shared libraries: libmysqlclient.so.18: cannot op...rectory
3月 02 09:43:51 localhost.localdomain aliasesdb[11408]: /usr/bin/newaliases: error while loading shared libraries: libmysqlclient.so.18: cannot o...rectory
3月 02 09:43:51 localhost.localdomain postfix[11414]: /usr/sbin/postfix: error while loading shared libraries: libmysqlclient.so.18: cannot open...irectory
3月 02 09:43:51 localhost.localdomain systemd[1]: postfix.service: control process exited, code=exited status=127
3月 02 09:43:51 localhost.localdomain systemd[1]: Failed to start Postfix Mail Transport Agent.
3月 02 09:43:51 localhost.localdomain systemd[1]: Unit postfix.service entered failed state.
3月 02 09:43:51 localhost.localdomain systemd[1]: postfix.service failed.

  错误显示的是libmysqlclient.so.18没有找到。

  在google解决方法之后,找到的解决方法

    在mysql的安装路径下找到libmysqlclient.so.18,再使用软连接 到/usr/lib路径下。

  在完成添加之后启动还是会显示上面的错误,最终把postfix卸载掉 重新yum 安装才正常启动

 

转载于:https://www.cnblogs.com/ymkfnuiwgij/p/8491952.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值