35

Compile Error on Mac Big Sur with PHP 8 · Issue #3926 · swoole/swoole-src · GitH...

 3 years ago
source link: https://github.com/swoole/swoole-src/issues/3926
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Comments

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a simple script for reproducing the error.
    Install swoole pecl install swoole

  2. What did you expect to see?
    swoole pecl extension

  3. What did you see instead?
    Compile termination error

In file included from /private/tmp/pear/temp/swoole/ext-src/php_swoole.cc:21:
/usr/local/Cellar/php/8.0.0_1/include/php/ext/pcre/php_pcre.h:23:10: fatal error: 'pcre2.h' file not found
#include "pcre2.h"
         ^~~~~~~~~
1 error generated.
make: *** [ext-src/php_swoole.lo] Error 1
ERROR: `make' failed
  1. What version of Swoole are you using (show your php --ri swoole)?
pecl install swoole
downloading swoole-4.5.9.tgz ...
Starting to download swoole-4.5.9.tgz (1,552,445 bytes)
..................................................................................................................................................................................................................................................................................................................done: 1,552,445 bytes
351 source files, building
running: phpize
Configuring for:
PHP Api Version:         20200930
Zend Module Api No:      20200930
Zend Extension Api No:   420200930
  1. What is your machine environment used (show your uname -a & php -v & gcc -v) ?

Darwin Kernel Version 20.1.0: Sat Oct 31 00:07:11 PDT 2020; root:xnu-7195.50.7~2/RELEASE_X86_64 x86_6

PHP 8.0.0 (cli) (built: Nov 30 2020 13:51:52) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.0-dev, Copyright (c) Zend Technologies
with Zend OPcache v8.0.0, Copyright (c), by Zend Technologies


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK