php date 报错,编译安装PHP报错:ext/date/php_date.lo is not a valid libtool object
安裝php-5.3.13時,make報錯:
ext/date/php_date.lo is not a valid libtool object。
查看libtool(由ltmain.sh生成)該錯誤是由于:
if (${SED} -e ’2q’ $arg | grep “^# Generated by .*$PACKAGE”) >/dev/null 2>&1; then 語句不成立而后續引起的。
正確的lo文件應該如下:
# ext/date/php_date.lo – a libtool object file# Generated by ltmain.sh – GNU libtool 1.5.26 (1.1220.2.492 2008/01/30 06:40:56)## Please DO NOT delete this file!# It is necessary for linking the library.# Name of the PIC object.pic_object=none# Name of the non-PIC object.non_pic_object=’php_date.o’
初始的5行,是有libtool文件中compile時添加的。在用安裝腳本運行configure和make時,經常發現未添加成功。這就導致了后面的錯誤。
而手工make clean后再 make,就沒有問題了。
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的php date 报错,编译安装PHP报错:ext/date/php_date.lo is not a valid libtool object的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: tkinter label_tkinte
- 下一篇: 时隔半年才更新!免费开源压缩软件7-Zi