Centos7.9编译php 5.3 make时出现错误

问题1:

make: *** [libphp5.la] Error 1

解决:

yum install libtool-ltdl-devel  

问题2:

/bin/ld: ext/standard/dns.o: undefined reference to symbol '__dn_skipname@@GLIBC_2.2.5'
//usr/lib64/libresolv.so.2: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [sapi/fpm/php-fpm] Error 1

解决:

要在Makefile文件开头是EXTRA_LIBS最后后面添加-llber -lresolv,然后再次执行make即可

  

  

posted @ 2022-12-03 23:19  lucky_tomato  阅读(65)  评论(0编辑  收藏  举报