In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you how to add the swoole extension, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Swoole extension can not be added to the solution: 1, modify ". / configure"; 2, first execute make, and then implement make install;3, modify "extension=swoole.so".
This article operating environment: Windows10 system, Swoole4 version, DELL G3 computer
Can I add the swoole extension?
Record the problems encountered in installing swoole
The front is like the official website:
Before installing swoole, you must make sure that the following software is installed on the system
Php-5.3.10 or later gcc-4.4 or later makeautoconf
Download address
Https://github.com/swoole/swoole-src/releaseshttp://pecl.php.net/package/swoolehttp://git.oschina.net/matyhtf/swoole
After downloading the source code package, enter the source directory at the terminal and execute the following command to compile and install
Cd swoolephpize./configuremake sudo make install
When you make, you will report an error:
Error: macro "add_assoc_string" requires 4 arguments, but only 3 given add_assoc_string (return_value, ifa- > ifa_name, ip)
Second reinstallation:
Other steps remain the same, modify. / configure
. / configure-- with-php-config=/usr/local/php-5.6.27/bin/php-config
In the above instructions, use php-v to check the version of php in the server.
Then make & & make install is executed separately, first make, then make install
Make install then prompts for this path / usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
Modify extension=swoole.so
Extension=/usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/swoole.so
Service php-fpm restart, there's no mistake.
Php-m, swoole has it.
Phpinfo view, swoole extension is also available.
The above is all the contents of the article "what to do if the swoole extension cannot be added". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 231
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.