php-config介绍

发布时间:2019-08-07 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了php-config介绍脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。

很多时候,我们编译安装完PHP之后,需要重新编译安装,但是原来的编译参数不记得了,通过php-config命令可以方便的重新获取,除此之外,php-config还有其他很多有用的功能。

Option Description

-- PRefix
Directory prefix where PHP is installed, e.g. /usr/local
PHP安装的路径,即编译安装的prefix参数的取值
-- includes
List of -i options wITh all include files
-- lDFlags
LD Flags which PHP was compiled with
-- libs
Extra libraries which PHP was compiled with
编译使用到的外部库
-- extension-dir
Directory where extensions are seArched by default
扩展存放目录,PEcl编译完之后可以去这个目录查看
-- include-dir
Directory prefix where header files are installed by default
头文件路径
-- php-binary
Full path to php CLI or CGI binary
php二进制可执行文件目录
-- php-sapis
Show all SAPI modules available
-- configure-options
Configure options to recreate configuration of current PHP installation
php编译安装时的参数
-- version
PHP version
-- vernum
PHP version as integer

php-config在我们重新编译安装php或者编译安装pecl扩展的时候很有用处,因为系统中可能同时存在好多版本的php,这个命令能帮我们准确的定位当前使用版本,能准确的查看php编译安装的信息。

脚本宝典总结

以上是脚本宝典为你收集整理的php-config介绍全部内容,希望文章能够帮你解决php-config介绍所遇到的问题。

如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。