search
HomePHP FrameworkSwooleCan't swoole support winows?

Can't swoole support winows?

Dec 06, 2019 am 11:52 AM
swoole

Can't swoole support winows?

#Swoole does not originally support installation under Windows, so we need to install Cygwin to use it. I encountered a lot of pitfalls when installing Cygwin, and the documentation on Baidu's experience is not very complete, so I wrote down my own installation of Cygwin and Swoole, which is equivalent to my own precipitation.

First prepare the tools: (Recommended learning: swoole video tutorial)

Cygwin official address: http:// www.cygwin.com/

swoole Official download address: https://github.com/swoole/swoole-src/releases

1. Download Swoole and Cygwin

Cant swoole support winows?

Download Cygwin, mine is 64-bit

Cant swoole support winows?21 Install Cygwin

Cant swoole support winows?

Select the software package to install. Here you need to install gcc, php, php development tools, autoconf, pcre-devel, and other defaults. Note here that in the search bar above After searching, find the corresponding software package below, select it, and click the Next button to start the installation.

(Note: The screenshot below is the interface after I installed it. The click position is the same, but the icons behind may be different)

First search for gcc

Cant swoole support winows?

Then php

Cant swoole support winows?

is pcre-devel

Cant swoole support winows?

Finally autoconfCant swoole support winows?

In the end, just install it in the next step.

Cant swoole support winows?

2 Install Swoole

Extract the swoole source program to the Cygwin home directory. Open the Cygwin software (note: if your Cygwin is also installed on the C drive, then you have to pay attention. An error may be reported when installing swoole. The solution is to right-click and open Cygwin as administrator)

Cant swoole support winows?

1 The environment at this time is like a Linux terminal, and the root directory is the Cygwin installation directory. Enter the command in the interface: cd /home/swoole-src, where swool-src is the decompressed source program

Cant swoole support winows?

2 The environment at this time is like a Linux terminal, and the root directory is the Cygwin installation directory. Enter the command in the interface: cd /home/swoole-src, where swool -src is the decompressed source program

Cant swoole support winows?

3 Enter the command: phpize to generate the compiled configuration file configureCant swoole support winows?

4 Enter the command: ./configure && make && make install

Cant swoole support winows?

Configure, compile, compile and install swoole

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

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

Cant swoole support winows?

6 /extension Find and press n again Find

Cant swoole support winows?

7 Add extension=swoole.so

Cant swoole support winows?

8 :wq Save and exit

9 Use the command: php -m to view the loaded modules. If you see swoole, the extension is added successfully and the environment is successfully built!

Cant swoole support winows?

The above is the detailed content of Can't swoole support winows?. For more information, please follow other related articles on the PHP Chinese website!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software