php-config介绍

不言
发布: 2023-03-22 20:00:01
原创
3367 人浏览过

很多时候,我们编译安装完PHP之后,需要重新编译安装,但是原来的编译参数不记得了,通过php-config命令可以方便的重新获取,除此之外,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目录下php-config的作用

linux - 如何找到php-config文件

configure: error: Cannot find php-config.

以上是php-config介绍 的详细内容。更多信息请关注PHP中文网其他相关文章!

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
作者最新文章
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!