Home > Article > PHP Framework > What to do if swoole installation fails
What should I do if the swoole installation fails?
Common errors
make or make install cannot be executed or compile error
NOTICE: PHP message: PHP Warning: PHP Startup: swoole: Unable to initialize module Module compiled with module API=20090626 PHP compiled with module API=20121212 These options need to match in Unknown on line 0
php version It does not correspond to phpize and php-config used during compilation, needs to use absolute paths for compilation. Use absolute paths to execute PHP.
/usr/local/php-5.4.17/bin/phpize ./configure --with-php-config=/usr/local/php-5.4.17/bin/php-config /usr/local/php-5.4.17/bin/php server.php
Missing mysql header file
php_mysqli_structs.h:64:23: fatal error: my_global.h: No such file or directory
The header file of mysqlclient is not found, you need to install mysqlclient-dev
It is recommended to compile php by yourself, do not use Linux The php version that comes with the package management system
is missing the pcre.h header file
fatal error: pcre.h: No such file or directory
The reason is that pcre is missing and the libpcre
Cannot find autoconf
phpize command needs to be installed The autoconf tool is required, please install it first.
make install failed
make install requires root permissions. If you are not logged in as the root user, please use sudo or su and then install.
After modifying php.ini, there is no swoole in php -m or phpinfo
Missing hiredis.h
Enable --enable-async-redis when compiling the configuration, but the hiredis library is not installed. Fatal error: 'hiredis/hiredis.h' file not will be reported during compilation. found, please install the hiredis library or remove the --enable-async-redis option.error: too many arguments to function 'zend_exception_error'Your PHP version is lower than PHP-5.3.10, please upgrade the PHP version. Recommended learning:
The above is the detailed content of What to do if swoole installation fails. For more information, please follow other related articles on the PHP Chinese website!