PHP 7.1 源代码学习:ubuntu 环境下载,编译源代码

前言

从 GitHub 下载源代码

# git clone https://github.com/php/php-src.git

生成 makefile

# ./buildconf
# ./autoconf
# ./configure --enable-debug

建议加上 --enable-debug 选项方便调试代码,如果在运行过程中出现缺少依赖库的错误,安装相应的库即可,比如 libxml2-dev

# sudo apt install libxml2-dev

make install

# make install

总结

评论

暂无评论