狂欢‰一夜 发表于 2018-11-16 10:18:50

rhel 6.4 安装 nginx-1.9.9.tar-13479442

# find / -name libpcre.so.1  # /usr/local/lib/libpcre.so.1
  # ldconfig -v|grep pcre
  ldconfig: Path `/usr/local/lib' given more than once报错了
  libpcrecpp.so.0 -> libpcrecpp.so.0.0.0
  libpcre.so.1 -> libpcre.so.1.0.0
  libpcreposix.so.0 -> libpcreposix.so.0.0.0
  libpcre.so.0 -> libpcre.so.0.0.1
  libpcrecpp.so.0 -> libpcrecpp.so.0.0.0
  libpcreposix.so.0 -> libpcreposix.so.0.0.0
  解决方法如下:
  # cat /etc/ld.so.conf
  include ld.so.conf.d/*.conf
  /usr/local/include
  删除/usr/local/include这一行
  再次执行:
  # ldconfig -v|grep pcre
  总结:上面的问题其实是pcre的动态库路径不对,其实无需编译pcre,为画蛇添足的步骤。pcre再次编译出问题是由于之前安装过的,写man目录文件失败导致。

页: [1]
查看完整版本: rhel 6.4 安装 nginx-1.9.9.tar-13479442