skip to Main Content

I want to install ext-openswoole on my machine that running ZorinOS 17.1 Core based from Ubuntu 22.04. I was try to run sudo apt install php8.3-openswoole but it says:

E: Unable to locate package php8.3-openswoole
E: Couldn't find any package by glob 'php8.3-openswoole'

I was add PPA with running command sudo add-apt-repository ppa:openswoole/ppa -y but still getting the error. Try installing with sudo pecl install openswoole-22.1.2 I get this long output:

WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading openswoole-22.1.2.tgz ...
Starting to download openswoole-22.1.2.tgz (1,252,932 bytes)...done: 1,252,932 bytes
485 source files, building
running: phpize
Configuring for:
PHP Api Version:         20230831
Zend Module Api No:      20230831
Zend Extension Api No:   420230831
config.m4:327: warning: The macro `AC_PROG_CC_C99' is obsolete.
config.m4:327: You should run autoupdate.
./lib/autoconf/c.m4:1659: AC_PROG_CC_C99 is expanded from...
config.m4:327: the top level
configure.ac:165: warning: The macro `AC_PROG_LIBTOOL' is obsolete.
configure.ac:165: You should run autoupdate.
build/libtool.m4:99: AC_PROG_LIBTOOL is expanded from...
configure.ac:165: the top level
enable coroutine sockets? [no] : 
enable openssl support? [no] : yes
enable http2 protocol? [no] : yes
enable coroutine mysqlnd? [no] : yes
enable coroutine curl? [no] : yes
enable coroutine postgres? [no] : 
building in /tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2
running: /tmp/pear/temp/openswoole/configure --with-php-config=/usr/bin/php-config --enable-sockets=no --enable-openssl=yes --enable-http2=yes --enable-mysqlnd=yes --enable-hook-curl=yes --with-postgres=no
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for cc... cc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether the compiler supports GNU C... yes
checking whether cc accepts -g... yes
checking for cc option to enable C11 features... none needed
checking how to run the C preprocessor... cc -E
checking for icc... no
checking for suncc... no
checking for system library directory... lib
checking if compiler supports -Wl,-rpath,... yes
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for PHP prefix... /usr
checking for PHP includes... -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib
checking for PHP extension directory... /usr/lib/php/20230831
checking for PHP installed headers prefix... /usr/include/php/20230831
checking if debug is enabled... no
checking if zts is enabled... no
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking enable debug log... no
checking enable trace log... no
checking enable sockets support... no
checking enable openssl support... yes
checking enable HTTP2 support... yes
checking openswoole support... yes, shared
checking enable mysqlnd support... yes
checking enable PostgreSQL support... no
checking enable c-ares support... no
checking dir of openssl... no
checking dir of jemalloc... no
checking enable asan... no
checking if compiling with clang... no
checking for pthread_mutexattr_setrobust in -lpthread... yes
checking for pthread_mutex_consistent in -lpthread... yes
checking for ares_gethostbyname in -lcares... no
checking for gzgets in -lz... no
checking for BrotliEncoderCreateInstance in -lbrotlienc... no
checking for cpu affinity... yes
checking for socket REUSEPORT... yes
checking for ucontext... yes
checking for g++... g++
checking whether the compiler supports GNU C++... yes
checking whether g++ accepts -g... yes
checking for g++ option to enable C++11 features... none needed
checking for valgrind... no
checking for stdio.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for strings.h... yes
checking for sys/stat.h... yes
checking for sys/types.h... yes
checking for unistd.h... yes
checking for struct cmsghdr... yes
checking for hstrerror... yes
checking for socketpair... yes
checking for if_nametoindex... yes
checking for if_indextoname... yes
checking for netdb.h... yes
checking for netinet/tcp.h... yes
checking for sys/un.h... yes
checking for sys/sockio.h... no
checking for field ss_family in struct sockaddr_storage... yes
checking if getaddrinfo supports AI_V4MAPPED... yes
checking if getaddrinfo supports AI_ALL... yes
checking if getaddrinfo supports AI_IDN... yes
checking if gethostbyname2_r is supported... yes
checking for valgrind... no
checking for clock_gettime in -lrt... yes
checking openssl fallback dir... checking for SSL_connect in -lssl... yes
checking openswoole coverage... enabled
checking whether the compiler supports GNU C++... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking for g++ option to enable C++11 features... (cached) none needed
checking how to run the C++ preprocessor... g++ -E
checking how to print strings... printf
checking for a sed that does not truncate output... (cached) /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by cc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %sn
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking for gawk... (cached) nawk
checking command to parse /usr/bin/nm -B output from cc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if cc supports -fno-rtti -fno-exceptions... no
checking for cc option to produce PIC... -fPIC -DPIC
checking if cc PIC flag -fPIC -DPIC works... yes
checking if cc static flag -static works... yes
checking if cc supports -c -o file.o... yes
checking if cc supports -c -o file.o... (cached) yes
checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/ld -m elf_x86_64
checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
configure: patching config.h.in
configure: creating ./config.status
config.status: creating config.h
config.status: executing libtool commands
running: make
/bin/bash /tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/libtool --tag=CXX --mode=compile g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis  -DHAVE_CONFIG_H  -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11    -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/php_swoole.cc -o ext-src/php_swoole.lo  -MMD -MF ext-src/php_swoole.dep -MT ext-src/php_swoole.lo
libtool: compile:  g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/php_swoole.cc -MMD -MF ext-src/php_swoole.dep -MT ext-src/php_swoole.lo  -fPIC -DPIC -o ext-src/.libs/php_swoole.o
/bin/bash /tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/libtool --tag=CXX --mode=compile g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis  -DHAVE_CONFIG_H  -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11    -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/php_swoole_cxx.cc -o ext-src/php_swoole_cxx.lo  -MMD -MF ext-src/php_swoole_cxx.dep -MT ext-src/php_swoole_cxx.lo
libtool: compile:  g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/php_swoole_cxx.cc -MMD -MF ext-src/php_swoole_cxx.dep -MT ext-src/php_swoole_cxx.lo  -fPIC -DPIC -o ext-src/.libs/php_swoole_cxx.o
/bin/bash /tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/libtool --tag=CXX --mode=compile g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis  -DHAVE_CONFIG_H  -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11    -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_atomic.cc -o ext-src/swoole_atomic.lo  -MMD -MF ext-src/swoole_atomic.dep -MT ext-src/swoole_atomic.lo
libtool: compile:  g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_atomic.cc -MMD -MF ext-src/swoole_atomic.dep -MT ext-src/swoole_atomic.lo  -fPIC -DPIC -o ext-src/.libs/swoole_atomic.o
/bin/bash /tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/libtool --tag=CXX --mode=compile g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis  -DHAVE_CONFIG_H  -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11    -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_channel_coro.cc -o ext-src/swoole_channel_coro.lo  -MMD -MF ext-src/swoole_channel_coro.dep -MT ext-src/swoole_channel_coro.lo
libtool: compile:  g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_channel_coro.cc -MMD -MF ext-src/swoole_channel_coro.dep -MT ext-src/swoole_channel_coro.lo  -fPIC -DPIC -o ext-src/.libs/swoole_channel_coro.o
/bin/bash /tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/libtool --tag=CXX --mode=compile g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis  -DHAVE_CONFIG_H  -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11    -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_client.cc -o ext-src/swoole_client.lo  -MMD -MF ext-src/swoole_client.dep -MT ext-src/swoole_client.lo
libtool: compile:  g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_client.cc -MMD -MF ext-src/swoole_client.dep -MT ext-src/swoole_client.lo  -fPIC -DPIC -o ext-src/.libs/swoole_client.o
/bin/bash /tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/libtool --tag=CXX --mode=compile g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis  -DHAVE_CONFIG_H  -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11    -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_client_coro.cc -o ext-src/swoole_client_coro.lo  -MMD -MF ext-src/swoole_client_coro.dep -MT ext-src/swoole_client_coro.lo
libtool: compile:  g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_client_coro.cc -MMD -MF ext-src/swoole_client_coro.dep -MT ext-src/swoole_client_coro.lo  -fPIC -DPIC -o ext-src/.libs/swoole_client_coro.o
In file included from /usr/include/php/20230831/Zend/zend.h:30,
  from /usr/include/php/20230831/main/php.h:31,
  from /tmp/pear/temp/openswoole/php_openswoole.h:18,
  from /tmp/pear/temp/openswoole/ext-src/php_swoole_private.h:25,
  from /tmp/pear/temp/openswoole/ext-src/php_swoole_cxx.h:19,
  from /tmp/pear/temp/openswoole/ext-src/swoole_client_coro.cc:17:
/tmp/pear/temp/openswoole/ext-src/swoole_client_coro.cc: In function ‘void zim_swoole_client_coro_peek(zend_execute_data*, zval*)’:
/usr/include/php/20230831/Zend/zend_alloc.h:100:16: warning: comparison of integer expressions of different signedness: ‘zend_long’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
  100 |         ((size <= ZEND_MM_MAX_LARGE_SIZE) ? _emalloc_large(size) : _emalloc_huge(size)) 
/usr/include/php/20230831/Zend/zend_alloc.h:105:17: note: in expansion of macro ‘ZEND_ALLOCATOR’
  105 |               ZEND_ALLOCATOR(size) 
      |                 ^~~~~~~~~~~~~~
/usr/include/php/20230831/Zend/zend_alloc.h:151:65: note: in expansion of macro ‘_emalloc’
  151 | #define emalloc(size)                                           _emalloc((size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_CC)
      |                                                                 ^~~~~~~~
/tmp/pear/temp/openswoole/ext-src/swoole_client_coro.cc:740:20: note: in expansion of macro ‘emalloc’
  740 |     buf = (char *) emalloc(buf_len + 1);
      |                    ^~~~~~~
/bin/bash /tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/libtool --tag=CXX --mode=compile g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis  -DHAVE_CONFIG_H  -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11    -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_coroutine.cc -o ext-src/swoole_coroutine.lo  -MMD -MF ext-src/swoole_coroutine.dep -MT ext-src/swoole_coroutine.lo
libtool: compile:  g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_coroutine.cc -MMD -MF ext-src/swoole_coroutine.dep -MT ext-src/swoole_coroutine.lo  -fPIC -DPIC -o ext-src/.libs/swoole_coroutine.o
/tmp/pear/temp/openswoole/ext-src/swoole_coroutine.cc: In function ‘void zim_swoole_coroutine_select(zend_execute_data*, zval*)’:
/tmp/pear/temp/openswoole/ext-src/swoole_coroutine.cc:1315:18: warning: variable ‘key’ set but not used [-Wunused-but-set-variable]
 1315 |     zend_string *key;
      |                  ^~~
/tmp/pear/temp/openswoole/ext-src/swoole_coroutine.cc: At global scope:
/tmp/pear/temp/openswoole/ext-src/swoole_coroutine.cc:72:26: warning: ‘zend_vm_interrupt’ defined but not used [-Wunused-variable]
   72 | static zend_atomic_bool *zend_vm_interrupt = nullptr;
      |                          ^~~~~~~~~~~~~~~~~
/bin/bash /tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/libtool --tag=CXX --mode=compile g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis  -DHAVE_CONFIG_H  -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11    -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_coroutine_scheduler.cc -o ext-src/swoole_coroutine_scheduler.lo  -MMD -MF ext-src/swoole_coroutine_scheduler.dep -MT ext-src/swoole_coroutine_scheduler.lo
libtool: compile:  g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_coroutine_scheduler.cc -MMD -MF ext-src/swoole_coroutine_scheduler.dep -MT ext-src/swoole_coroutine_scheduler.lo  -fPIC -DPIC -o ext-src/.libs/swoole_coroutine_scheduler.o
/bin/bash /tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/libtool --tag=CXX --mode=compile g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis  -DHAVE_CONFIG_H  -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11    -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_coroutine_system.cc -o ext-src/swoole_coroutine_system.lo  -MMD -MF ext-src/swoole_coroutine_system.dep -MT ext-src/swoole_coroutine_system.lo
libtool: compile:  g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_coroutine_system.cc -MMD -MF ext-src/swoole_coroutine_system.dep -MT ext-src/swoole_coroutine_system.lo  -fPIC -DPIC -o ext-src/.libs/swoole_coroutine_system.o
/bin/bash /tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/libtool --tag=CXX --mode=compile g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis  -DHAVE_CONFIG_H  -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11    -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_curl.cc -o ext-src/swoole_curl.lo  -MMD -MF ext-src/swoole_curl.dep -MT ext-src/swoole_curl.lo
libtool: compile:  g++ -I. -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/include -I/tmp/pear/temp/pear-build-rootZfDe2U/openswoole-22.1.2/main -I/tmp/pear/temp/openswoole -I/usr/include/php/20230831 -I/usr/include/php/20230831/main -I/usr/include/php/20230831/TSRM -I/usr/include/php/20230831/Zend -I/usr/include/php/20230831/ext -I/usr/include/php/20230831/ext/date/lib -I/tmp/pear/temp/openswoole -I/tmp/pear/temp/openswoole/include -I/tmp/pear/temp/openswoole/ext-src -I/tmp/pear/temp/openswoole/thirdparty/hiredis -DHAVE_CONFIG_H -g -O2 -Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -std=c++11 -DENABLE_PHP_SWOOLE -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/openswoole/ext-src/swoole_curl.cc -MMD -MF ext-src/swoole_curl.dep -MT ext-src/swoole_curl.lo  -fPIC -DPIC -o ext-src/.libs/swoole_curl.o
In file included from /tmp/pear/temp/openswoole/ext-src/swoole_curl.cc:17:
/tmp/pear/temp/openswoole/ext-src/php_swoole_curl.h:25:10: fatal error: curl/curl.h: No such file or directory
   25 | #include <curl/curl.h>
      |          ^~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:248: ext-src/swoole_curl.lo] Error 1
ERROR: `make' failed

At the end it says ‘make’ failed.
Is openswoole doesn’t support PHP8.3 ?

I was restarting my machine several times but the error still exist. I also try to run composer require openswoole/core but this library require the ext-openswoole. Hope someone help me

2

Answers


  1. Add the OpenSwoole PPA

     sudo add-apt-repository ppa:openswoole/ppa
    

    Update Your Package List

    sudo apt update
    

    Install PHP OpenSwoole Extension

    sudo apt install php8.3-swoole
    

    Verify Installation

    php -m | grep swoole
    

    Alternative Installation Method (Using PECL)

    sudo pecl install openswoole-22.1.2
    
    Login or Signup to reply.
  2. Installing openswoole using pecl require libcurl-dev package.

    Install libcurl-dev package first

    sudo apt-get install libcurl4-openssl-dev
    

    Then install openswoole

    sudo pecl install openswoole
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search