Home > PHP Framework > Swoole > What are the common mistakes in swoole

What are the common mistakes in swoole

(*-*)浩
Release: 2019-12-16 09:55:00
Original
2643 people have browsed it

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
Copy after login

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
Copy after login

Missing mysql header file

php_mysqli_structs.h:64:23: fatal error: my_global.h: No such file or directory
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template