At first I thought it was because openssl and openssl-devel were not installed, but I found this error after installation. I searched for evp.h, and this file also exists. I googled it and found the answer on stackoverflow. It turned out that there was a problem with the configure script generated by phpize.
Solution: modify the configure file to add
This is an error when installing the mysqlnd extension
export PHP_OPENSSL_DIR = yes ./configure --with-php-config=/home/php/bin/php-config --enable-mysqlnd
Similar Posts:
- [Solved] PHP Fatal error: Class ‘mysqli’ not found in xxx
- [Solved] Php5.6.30 environment error call to undefined function imagecreate() compile and install GD Library
- Can’t find PHP headers in /usr/include/php The php-devel package is required for use of this command.
- Openeuler: How to Install OpenSSL
- Composer install Error: The openssl extension is missing
- PHP5.6.27 Install error: error: dereferencing pointer to incomplete type ‘EVP_PKEY’ {aka ‘struct evp_pkey_st’}
- Python3 ImportError: No module named _ssl [How to Solve]
- [Solved] Accessing MSSql under Ubuntu prompts SSL Handshake failed with OpenSSL error
- PHP extensions Install Error: PHP Startup: Invalid library (maybe not a PHP library) ‘zlib.so’ in Unknown
- [Solved] NB: JAVA_HOME should point to a JDK not a JRE