Environment
Question
When compiling and installing php extensions with php config, it is found that php-config does not exist.
Check whether php-config exists or not?
$ whereis php-config
php-config:
As above, it returns null, indicating that it does not exist.
Solution:
This problem occurs because the php-dev package is not installed. You can install it once.
Install php-dev
$ apt-get install php-dev
If php5 is version, run
apt-get install php5-dev
.
re-check php-config
$ whereis php-config
php-config: /usr/bin/php-config /usr/bin/php-config7.0 /usr/share/man/man1/php-config.1.gz
As shown above, the installation is successful.
Read More:
- laravel The Process class relies on proc_open, which is not available on your PHP installation.
- PHP Error Object of class mysqli could not be converted to string in
- Error during session start; please check your PHP and/or webserver log file and configure your PHP
- [Solved] PHP Fatal error: Uncaught Error: Class ‘Redis‘ not found in
- [PHP] php8 jit does not support 32-bit systems WARNING: JIT not supported by host architecture
- composer Error: The requested PHP extension ext-bcmath * is missing from your system. Install or enable
- Mac PHP Fatal error: Class ‘Memcache’ not found
- Mac: Where is php.ini Location
- PHP error in Windows: class’ mysqli ‘not found
- Mac installs the php Swoole extension and appears Enable openssl support, require openssl library or fatal error:’openssl/ssl.h’ file not found
- [Solved] Cannot find config.m4. phpize installation extension error
- [PHP] Solve the limitation of uploading files in nginx php 413 Request Entity Too Large
- [PHP]json_encode Chinese JSON_UNESCAPED_UNICODE returns null in php5.3
- Syntax error: typeerror: about installing sass in vue3 this.getOptions is not a function
- PHP: How to get the total number of data in the MySQL table (total number of rows)
- PHP encryption 3DES error Call to undefined function: mcrypt_module_open() solution
- How to Solve PHP Error: no package’oniguruma’ found
- [Solved] PHP installation Phalcon expansion error
- [Solved] PHP -v Error: error while loading shared libraries: libonig.so.5:cannot open share directory
- php_network_getaddresses: getaddrinfo failed (How to Fix)