Windows Installation Swoole Graphics Tutorial (step-by)

Source: Internet
Author: User
Tags php cli
The following small series for everyone to bring a piece of Windows installation Swoole Graphics Tutorial (PHP). Small series feel very good, now share to everyone, also for everyone to make a reference. Let's take a look at it with a little knitting.

Windows installation Swoole specific steps:

Swoole, originally not supported in Windows installation, so we want to install Cygwin to use. In the installation of Cygwin encountered a lot of pits, Baidu experience on the document is not very full, so I put myself installed Cygwin and swoole write down the equivalent of their own precipitation bar.

First, prepare the tool:

Cygwin Official Address: http://www.cygwin.com/

Swoole Official Download Address: https://github.com/swoole/swoole-src/releases

First, download swoole and Cygwin

Download Cygwin, mine is 64-bit

1 Installing Cygwin

Choose the installed package, here need to install GCC, PHP, PHP development tools, autoconf, Pcre-devel, the other default, here is to note that in the search bar above, find the corresponding package selected below, click the Next button to start the installation. (Note: Below is my post-installation interface, click on the same location, the following icons may not be the same OH)

Search for GCC first

Then PHP

It's pcre-devel.

Last autoconf

Finally, the next step is to install the line.

2 Installing Swoole

Unzip Swoole source program to Cygwin home directory, open Cygwin software (note: If your Cygwin is also installed in the C drive, then you have to pay attention to the installation of swoole when there may be an error, the solution is to right-click the administrator to open the Cygwin)

1 at this time the environment is like a Linux terminal, and the root directory is the Cygwin installation directory, the interface input command: CD/HOME/SWOOLE-SRC, wherein SWOOL-SRC is the source of the decompression program

2 at this time the environment is like a Linux terminal, and the root directory is the Cygwin installation directory, the interface input command: CD/HOME/SWOOLE-SRC, wherein SWOOL-SRC is the source of the decompression program

3 input command: phpize, generate compiled configuration file configure

4 input command:./configure && make && make install


Configure, compile, and compile the installation Swoole

(PS: Execute./configure, in addition to compiling the configuration, will also detect the environment, etc.)

5 using the command: Php-i | grep php.ini, find the path to the configuration file php.ini used by the PHP CLI, modify the php.ini file, add a line to the file: extension=swoole.so, and then close the exit

6/extension Find press N to find again

7 Adding extension=swoole.so

8:wq Save exit

9 using the command: php-m, view the loaded module, if you see Swoole, then the extension added successfully, to this environment to build success!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.