Home > Article > PHP Framework > What are the common mistakes in swoole
## Swoole Common Error
# Make or Make Install cannot execute or compile errors (Recommended Learning: swoole video tutorial)
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
The php version does not correspond to the phpize and php-config used during compilation, and absolute paths need to be used 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 yourself. Do not use the PHP version that comes with the Linux package management system
Missing pcre.h header file
fatal error: pcre.h: No such file or directory
The reason is that pcre is missing and libpcre needs to be installed
Cannot find autoconf
The phpize command requires the autoconf tool, 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.
The above is the detailed content of What are the common mistakes in swoole. For more information, please follow other related articles on the PHP Chinese website!