編譯PHP5.6報錯

error: xml2-config not found. Please check your libxml2 installation.php

yum install libxml2-dev -yhtml

linux whereis和which區別linux

which 查看命令的全路徑
whereis 查看命令、源文件、幫助文件的位置
ldd用於顯示可執行文件所依賴的庫(注意可執行文件必須爲全路徑)api

gdb調試PHP程序參考教材
http://www.javashuo.com/article/p-zlyglpsq-bn.html.net

自我總結:
①、gdb php(執行文件)
進入gdb調試

b zif_strlen (設置斷點)xml

info b (查看斷點)
輸入 run kk.php (在這個方法中使用strlen計算字符串長度)htm

bt(查看PHP內核執行流程)blog

https://blog.csdn.net/weixin_43076374/article/details/82433074(PHP進程參考進程

編譯安裝php5.6時, PHP安裝完成後,在PHP的安裝目錄中有個php-config文件 php-config能夠查看PHP的安裝的配置信息。(好比安裝了那些sapi模塊、安裝時配置選項)

相關文章
相關標籤/搜索