configure: error: Cannot find php-config.

WBOY
Release: 2016-06-23 13:35:39
Original
4344 people have browsed it

本文章给大家介绍configure: error: Cannot find php-config. Please use --with-php-config=PATH错误解决办法。

configure: error: Cannot find php-config. Please use --with-php-config=PATH

一般出现这个错误说明你执行 ./configure 时  --with-php-config 这个参数配置路径错误导致的。

查找:

find / -name  php-config


修改为:

./configure --with-php-config=/usr/local/php/bin/php-config

就可以解决问题
上面的 /usr/local/php/ 是你的 php 安装路径


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!