本文操作环境:centOS6.8系统、PHP7.1版、DELL G3电脑
php-config找不到怎么办?
centos 中找不到 php-config
两种解决方式:
1.CentOS6 PHP extension install: Cannot find php-config. Please use --with-php-config=PATH
2.yum install php-devel.
php-config 是一个简单的命令行脚本用于获取所安装的 PHP 配置的信息。
在编译扩展时,如果安装有多个 PHP 版本,可以在配置时用 –with-php-config 选项来指定使用哪一个版本编译,该选项指定了相对应的 php-config 脚本的路径。
php-config 脚本在命令行所能使用的选项可以通过 -h 选项来显示:
Usage: /usr/local/bin/php-config [OPTION] Options: --prefix [...] --includes [...] --ldflags [...] --libs [...] --extension-dir [...] --include-dir [...] --php-binary [...] --php-sapis [...] --configure-options [...] --version [...] --vernum [...]


![晴川云Minecraft Wiki教程:初始资源[ ],晴川云](https://baike.qcidc.com/wp-content/uploads/2025/09/20250919082151165-u_2101297338_1212805020fm_253fmt_autoapp_120f_JPEG.jpeg)







暂无评论内容