qq591577286 发表于 2018-5-10 09:31:19

redhat编译安装postfix

  

  今天尝试在rhel5.8下编译安装postfix,在编译安装postfix-3.1.1时出现了些小问题,在此记录下,以备不时之需,同时希望可以帮助到遇到相同问题的朋友。
  

  1、在make makefiles及make命令顺利完成并执行make install命令时,出现以下现象:
  前两个选项提供默认值,其后的各选项都不再出现默认值,手动输入各选项的值最终还是报错:error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
  

  错误原因:
  ls /usr/local/mysql/lib/ # 该路径下存在共享库对象libmysqlclient.so.18
  ls /usr/lib/ # 该路径下不存在共享库对象libmysqlclient.so.18
  

  解决方法:为共享库对象建立软链接
  ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib
  建立完链接后重新进行make install,此时,所有的选项都提示默认值,最终安装成功
  

  2、安装完成后,启动postfix,结果出现警告信息:
  # postfix start
  postfix: warning: smtputf8_enable is true, but EAI support is not compiled in
  postfix/postlog: warning: smtputf8_enable is true, but EAI support is not compiled in
  postfix/postfix-script: starting the Postfix mail system
  

  解决方法:在main.cf配置文件中添加一行记录"smtputf8_enable = no",重新启动postfix就可以了
  # vim /etc/postfix/main.cf
  # 添加:smtputf8_enable = no
  # postfix stop
  # postfix start
页: [1]
查看完整版本: redhat编译安装postfix