When most novices install the Swoole extension, they will only use pecl to install it, and also add some compilation parameters, such as openssl
Use the command Installation: (Recommended learning: swoole video tutorial)
pecl install swoole
There are several question and answer options when using pecl for installation
enable sockets supports? [no] : enable openssl support? [no] : enable http2 support? [no] : enable mysqlnd support? [no] :
These are used to enable certain features, such as openssl to enable SSL support. Most novices will choose yes here, and then start compiling
The result is that an error is reported: error "Enable openssl support, require openssl library." (The specific error message will not be written in detail, but it is probably like this) It means that when you open openssl, it is not found under the regular path. You need to manually specify the path of the openssl library
or fatal error: ' openssl/ssl.h' file not found
This means that you did not add the path to the openssl library or specified the wrong path to the openssl library. The header file is missing
So it was installed in pecl How to enable adding this path? Isn’t it just yes or no?
The answer can of course be added, we can follow yes followed by the path parameter: --with-openssl-dir=/opt/openssl/, replace it with your openssl library path
检查: php --ri swoole
The above is the detailed content of Does the swoole environment support openssl?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
