Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that php config can't find

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article introduces the relevant knowledge of "how to solve the problem that can not be found in php config". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Php-config can not find the solution: 1. Through "CentOS6 PHP extension install: Cannot find..." Method to solve; 2. Through "yum install php-devel." Command to solve the problem.

This article operating environment: centOS6.8 system, PHP7.1 version, DELL G3 computer

What if php-config can't find it?

Php-config not found in centos

There are two solutions:

1.CentOS6 PHP extension install: Cannot find php-config. Please use-with-php-config=PATH

2.yum install php-devel.

Php-config is a simple command-line script to get information about the installed PHP configuration.

When compiling an extension, if you have multiple PHP versions installed, you can use the-- with-php-config option at configuration time to specify which version to compile with, which specifies the path to the corresponding php-config script.

The options available to php-config scripts on the command line can be displayed with the-h option:

Usage: / usr/local/bin/php-config [OPTION] Options:-- prefix [...]-- includes [...]-- ldflags [...]-- libs [...]-- extension-dir [...]-- include-dir [...]-- php-binary [...] -- php-sapis [...]-- configure-options [...]-- version [...]-- vernum [...] " How to solve the problem of php config can not find the content is introduced here, thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report