php-config找不到怎么办

php-config找不到怎么办,第1张

php-config找不到怎么办

php-config找不到的解决办法:1、通过“CentOS6 PHP extension install: Cannot find...”方法解决;2、通过“yum install php-devel.”命令解决问题即可。

本文 *** 作环境: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            [...]

推荐学习:《PHP视频教程》

以上就是php-config找不到怎么办的详细内容,

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/langs/682684.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-20
下一篇 2022-04-20

发表评论

登录后才能评论

评论列表(0条)

保存