php 安装扩展 event
本地环境php8.1,然后我想安装event扩展,找了找资料,直接一句话
sudo pecl install event
然后执行的过程中提示这些
configure.ac:165: the top level Enable internal debugging in Event [no] : Enable sockets support in Event [yes] : libevent installation prefix [/usr] : Include libevent's pthreads library and enable thread safety support in Event [no] : Include libevent protocol-specific functionality support including HTTP, DNS, and RPC [yes] : Include libevent OpenSSL support [yes] : PHP Namespace for all Event classes [no] : openssl installation prefix [yes] : building in /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8
我一路enter,然后提示了这个
checking whether to enable sockets support in Event... yes checking PHP version... PHP 8.x checking for include/event2/event.h... not found configure: error: Please reinstall the event library, or provide the installation prefix via --with-event-libevent-dir option ERROR: `/tmp/pear/temp/event/configure --with-php-config=/usr/bin/php-config --enable-event-debug=no --enable-event-sockets=yes --with-event-libevent-dir=/usr --with-event-pthreads=no --with-event-extra --with-event-openssl --with-event-ns=no --with-openssl-dir' failed
这时候我一头雾水,按错误去找资料,发现有个人这么说 点击跳转
我根据他说的 看看我安装没有
sudo apt list |grep libevent
得到结果
dlang-libevent/jammy,jammy 2.0.16.1~really2.0.2-0.2 all libev-libevent-dev/jammy,jammy 1:4.33-1 all libevent-2.1-7/jammy,now 2.1.12-stable-1build3 amd64 [installed] libevent-2.1-7/jammy 2.1.12-stable-1build3 i386 libevent-core-2.1-7/jammy,now 2.1.12-stable-1build3 amd64 [installed,automatic] libevent-core-2.1-7/jammy 2.1.12-stable-1build3 i386 libevent-dev/jammy 2.1.12-stable-1build3 amd64 libevent-dev/jammy 2.1.12-stable-1build3 i386 libevent-distributor-perl/jammy,jammy 0.06-1 all libevent-execflow-perl/jammy,jammy 0.64-0ubuntu3 all libevent-extra-2.1-7/jammy 2.1.12-stable-1build3 amd64 libevent-extra-2.1-7/jammy 2.1.12-stable-1build3 i386 libevent-openssl-2.1-7/jammy 2.1.12-stable-1build3 amd64 libevent-openssl-2.1-7/jammy 2.1.12-stable-1build3 i386 libevent-perl/jammy 1.28-1build1 amd64 libevent-pthreads-2.1-7/jammy,now 2.1.12-stable-1build3 amd64 [installed,automatic] libevent-pthreads-2.1-7/jammy 2.1.12-stable-1build3 i386 libevent-rpc-perl/jammy,jammy 1.10-1 all libverto-libevent1/jammy 0.3.1-1ubuntu3 amd64 libverto-libevent1/jammy 0.3.1-1ubuntu3 i386
这说明我已经安装了 libevent-2.1-7 但是没有安装 devel
于是我又执行了命令
sudo apt install libevent-dev
安装得到结果
Reading package lists... Done Building dependency tree... Done Reading state information... Done The following additional packages will be installed: libevent-extra-2.1-7 libevent-openssl-2.1-7 The following NEW packages will be installed: libevent-dev libevent-extra-2.1-7 libevent-openssl-2.1-7 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. Need to get 359 kB of archives. After this operation, 2,011 kB of additional disk space will be used. Do you want to continue? [Y/n] y Get:1 http://cn.archive.ubuntu.com/ubuntu jammy/main amd64 libevent-extra-2.1-7 amd64 2.1.12-stable-1build3 [65.4 kB] Get:2 http://cn.archive.ubuntu.com/ubuntu jammy/main amd64 libevent-openssl-2.1-7 amd64 2.1.12-stable-1build3 [15.8 kB] Get:3 http://cn.archive.ubuntu.com/ubuntu jammy/main amd64 libevent-dev amd64 2.1.12-stable-1build3 [278 kB] Fetched 359 kB in 2s (170 kB/s) Selecting previously unselected package libevent-extra-2.1-7:amd64. (Reading database ... 326840 files and directories currently installed.) Preparing to unpack .../libevent-extra-2.1-7_2.1.12-stable-1build3_amd64.deb ... Unpacking libevent-extra-2.1-7:amd64 (2.1.12-stable-1build3) ... Selecting previously unselected package libevent-openssl-2.1-7:amd64. Preparing to unpack .../libevent-openssl-2.1-7_2.1.12-stable-1build3_amd64.deb ... Unpacking libevent-openssl-2.1-7:amd64 (2.1.12-stable-1build3) ... Selecting previously unselected package libevent-dev. Preparing to unpack .../libevent-dev_2.1.12-stable-1build3_amd64.deb ... Unpacking libevent-dev (2.1.12-stable-1build3) ... Setting up libevent-extra-2.1-7:amd64 (2.1.12-stable-1build3) ... Setting up libevent-openssl-2.1-7:amd64 (2.1.12-stable-1build3) ... Setting up libevent-dev (2.1.12-stable-1build3) ... Processing triggers for libc-bin (2.35-0ubuntu3.1) ...
再次执行
sudo pecl install event
然后执行过程那些选项还是一路enter
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update downloading event-3.0.8.tgz ... Starting to download event-3.0.8.tgz (199,567 bytes) .........................................done: 199,567 bytes 76 source files, building running: phpize Configuring for: PHP Api Version: 20210902 Zend Module Api No: 20210902 Zend Extension Api No: 420210902 configure.ac:22: warning: $as_echo is obsolete; use AS_ECHO(["message"]) instead build/php.m4:2111: PHP_CONFIG_NICE is expanded from... configure.ac:22: the top level config.m4:276: warning: AC_CHECK_HEADERS($phpincludedir/ext/sockets/php_sockets.h): you should use literals ./lib/autoconf/headers.m4:217: AC_CHECK_HEADERS is expanded from... config.m4:276: 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 internal debugging in Event [no] : Enable sockets support in Event [yes] : libevent installation prefix [/usr] : Include libevent's pthreads library and enable thread safety support in Event [no] : Include libevent protocol-specific functionality support including HTTP, DNS, and RPC [yes] : Include libevent OpenSSL support [yes] : PHP Namespace for all Event classes [no] : openssl installation prefix [yes] : building in /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8 running: /tmp/pear/temp/event/configure --with-php-config=/usr/bin/php-config --enable-event-debug=no --enable-event-sockets=yes --with-event-libevent-dir=/usr --with-event-pthreads=no --with-event-extra --with-event-openssl --with-event-ns=no --with-openssl-dir 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/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib checking for PHP extension directory... /usr/lib/php/20210902 checking for PHP installed headers prefix... /usr/include/php/20210902 checking if debug is enabled... no checking if zts is enabled... no checking for gawk... gawk checking for Event core support... yes, shared checking for Event thread safety support... no checking for Event extra functionality support... yes checking for OpenSSL support in Event... yes checking for custom PHP namespace in Event... no checking for OpenSSL installation prefix... yes checking whether Event debugging support enabled... no checking whether to enable sockets support in Event... yes checking PHP version... PHP 8.x checking for include/event2/event.h... found in /usr checking for libevent version... ok checking for event_free in -levent_core... yes checking for evdns_base_free in -levent_extra... yes checking for openssl >= 1.0.1... yes checking for bufferevent_openssl_get_ssl in -levent_openssl... yes 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 /usr/include/php/20210902/ext/sockets/php_sockets.h... yes 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 %s\n checking for ar... ar checking for archiver @FILE support... @ checking for strip... strip checking for ranlib... ranlib checking for gawk... (cached) gawk 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 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-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/php_event.c -o php8/php_event.lo -MMD -MF php8/php_event.dep -MT php8/php_event.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/php_event.c -MMD -MF php8/php_event.dep -MT php8/php_event.lo -fPIC -DPIC -o php8/.libs/php_event.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/src/util.c -o php8/src/util.lo -MMD -MF php8/src/util.dep -MT php8/src/util.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/src/util.c -MMD -MF php8/src/util.dep -MT php8/src/util.lo -fPIC -DPIC -o php8/src/.libs/util.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/src/fe.c -o php8/src/fe.lo -MMD -MF php8/src/fe.dep -MT php8/src/fe.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/src/fe.c -MMD -MF php8/src/fe.dep -MT php8/src/fe.lo -fPIC -DPIC -o php8/src/.libs/fe.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/src/pe.c -o php8/src/pe.lo -MMD -MF php8/src/pe.dep -MT php8/src/pe.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/src/pe.c -MMD -MF php8/src/pe.dep -MT php8/src/pe.lo -fPIC -DPIC -o php8/src/.libs/pe.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/event.c -o php8/classes/event.lo -MMD -MF php8/classes/event.dep -MT php8/classes/event.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/event.c -MMD -MF php8/classes/event.dep -MT php8/classes/event.lo -fPIC -DPIC -o php8/classes/.libs/event.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/base.c -o php8/classes/base.lo -MMD -MF php8/classes/base.dep -MT php8/classes/base.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/base.c -MMD -MF php8/classes/base.dep -MT php8/classes/base.lo -fPIC -DPIC -o php8/classes/.libs/base.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/event_config.c -o php8/classes/event_config.lo -MMD -MF php8/classes/event_config.dep -MT php8/classes/event_config.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/event_config.c -MMD -MF php8/classes/event_config.dep -MT php8/classes/event_config.lo -fPIC -DPIC -o php8/classes/.libs/event_config.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/buffer_event.c -o php8/classes/buffer_event.lo -MMD -MF php8/classes/buffer_event.dep -MT php8/classes/buffer_event.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/buffer_event.c -MMD -MF php8/classes/buffer_event.dep -MT php8/classes/buffer_event.lo -fPIC -DPIC -o php8/classes/.libs/buffer_event.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/buffer.c -o php8/classes/buffer.lo -MMD -MF php8/classes/buffer.dep -MT php8/classes/buffer.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/buffer.c -MMD -MF php8/classes/buffer.dep -MT php8/classes/buffer.lo -fPIC -DPIC -o php8/classes/.libs/buffer.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/event_util.c -o php8/classes/event_util.lo -MMD -MF php8/classes/event_util.dep -MT php8/classes/event_util.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/event_util.c -MMD -MF php8/classes/event_util.dep -MT php8/classes/event_util.lo -fPIC -DPIC -o php8/classes/.libs/event_util.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/dns.c -o php8/classes/dns.lo -MMD -MF php8/classes/dns.dep -MT php8/classes/dns.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/dns.c -MMD -MF php8/classes/dns.dep -MT php8/classes/dns.lo -fPIC -DPIC -o php8/classes/.libs/dns.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/listener.c -o php8/classes/listener.lo -MMD -MF php8/classes/listener.dep -MT php8/classes/listener.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/listener.c -MMD -MF php8/classes/listener.dep -MT php8/classes/listener.lo -fPIC -DPIC -o php8/classes/.libs/listener.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/http.c -o php8/classes/http.lo -MMD -MF php8/classes/http.dep -MT php8/classes/http.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/http.c -MMD -MF php8/classes/http.dep -MT php8/classes/http.lo -fPIC -DPIC -o php8/classes/.libs/http.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/http_request.c -o php8/classes/http_request.lo -MMD -MF php8/classes/http_request.dep -MT php8/classes/http_request.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/http_request.c -MMD -MF php8/classes/http_request.dep -MT php8/classes/http_request.lo -fPIC -DPIC -o php8/classes/.libs/http_request.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/http_connection.c -o php8/classes/http_connection.lo -MMD -MF php8/classes/http_connection.dep -MT php8/classes/http_connection.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/http_connection.c -MMD -MF php8/classes/http_connection.dep -MT php8/classes/http_connection.lo -fPIC -DPIC -o php8/classes/.libs/http_connection.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=compile cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/ssl_context.c -o php8/classes/ssl_context.lo -MMD -MF php8/classes/ssl_context.dep -MT php8/classes/ssl_context.lo libtool: compile: cc -I. -I/tmp/pear/temp/event -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -g -O2 -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/event/php8/classes/ssl_context.c -MMD -MF php8/classes/ssl_context.dep -MT php8/classes/ssl_context.lo -fPIC -DPIC -o php8/classes/.libs/ssl_context.o /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=link cc -shared -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/include -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/main -I/tmp/pear/temp/event -I/usr/include/php/20210902 -I/usr/include/php/20210902/main -I/usr/include/php/20210902/TSRM -I/usr/include/php/20210902/Zend -I/usr/include/php/20210902/ext -I/usr/include/php/20210902/ext/date/lib -I/php8 -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/src -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8/classes -I/tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/php8 -DHAVE_CONFIG_H -g -O2 -o event.la -export-dynamic -avoid-version -prefer-pic -module -rpath /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/modules php8/php_event.lo php8/src/util.lo php8/src/fe.lo php8/src/pe.lo php8/classes/event.lo php8/classes/base.lo php8/classes/event_config.lo php8/classes/buffer_event.lo php8/classes/buffer.lo php8/classes/event_util.lo php8/classes/dns.lo php8/classes/li stener.lo php8/classes/http.lo php8/classes/http_request.lo php8/classes/http_connection.lo php8/classes/ssl_context.lo -levent_openssl -levent_extra -levent_core -lssl -lcrypto libtool: link: cc -shared -fPIC -DPIC php8/.libs/php_event.o php8/src/.libs/util.o php8/src/.libs/fe.o php8/src/.libs/pe.o php8/classes/.libs/event.o php8/classes/.libs/base.o php8/classes/.libs/event_config.o php8/classes/.libs/buffer_event.o php8/classes/.libs/buffer.o php8/classes/.libs/event_util.o php8/classes/.libs/dns.o php8/classes/.libs/listener.o php8/classes/.libs/http.o php8/classes/.libs/http_request.o php8/classes/.libs/http_connection.o php8/classes/.libs/ssl_context.o -levent_openssl -levent_extra -levent_core -lssl -lcrypto -g -O2 -Wl,-soname -Wl,event.so -o .libs/event.so libtool: link: ( cd ".libs" && rm -f "event.la" && ln -s "../event.la" "event.la" ) /bin/bash /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/libtool --mode=install cp ./event.la /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/modules libtool: install: cp ./.libs/event.so /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/modules/event.so libtool: install: cp ./.libs/event.lai /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/modules/event.la libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin:/sbin" ldconfig -n /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/modules ---------------------------------------------------------------------- Libraries have been installed in: /tmp/pear/temp/pear-build-rootWxOzBF/event-3.0.8/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the '-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the 'LD_RUN_PATH' environment variable during linking - use the '-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to '/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. running: make INSTALL_ROOT="/tmp/pear/temp/pear-build-rootWxOzBF/install-event-3.0.8" install Installing shared extensions: /tmp/pear/temp/pear-build-rootWxOzBF/install-event-3.0.8/usr/lib/php/20210902/ running: find "/tmp/pear/temp/pear-build-rootWxOzBF/install-event-3.0.8" | xargs ls -dils 8657685 4 drwxr-xr-x 3 root root 4096 3月 29 10:12 /tmp/pear/temp/pear-build-rootWxOzBF/install-event-3.0.8 8657916 4 drwxr-xr-x 3 root root 4096 3月 29 10:12 /tmp/pear/temp/pear-build-rootWxOzBF/install-event-3.0.8/usr 8657917 4 drwxr-xr-x 3 root root 4096 3月 29 10:12 /tmp/pear/temp/pear-build-rootWxOzBF/install-event-3.0.8/usr/lib 8657918 4 drwxr-xr-x 3 root root 4096 3月 29 10:12 /tmp/pear/temp/pear-build-rootWxOzBF/install-event-3.0.8/usr/lib/php 8657919 4 drwxr-xr-x 2 root root 4096 3月 29 10:12 /tmp/pear/temp/pear-build-rootWxOzBF/install-event-3.0.8/usr/lib/php/20210902 8657915 844 -rwxr-xr-x 1 root root 863968 3月 29 10:12 /tmp/pear/temp/pear-build-rootWxOzBF/install-event-3.0.8/usr/lib/php/20210902/event.so Build process completed successfully Installing '/usr/lib/php/20210902/event.so' install ok: channel://pecl.php.net/event-3.0.8 configuration option "php_ini" is not set to php.ini location You should add "extension=event.so" to php.ini
好了,这回安装成功了 然后到php.ini文件里面去补充一句
extension=event
之后再运行
$ php -m|grep event PHP Warning: PHP Startup: Unable to load dynamic library 'event' (tried: /usr/lib/php/20210902/event (/usr/lib/php/20210902/event: cannot open shared object file: No such file or directory), /usr/lib/php/20210902/event.so (/usr/lib/php/20210902/event.so: undefined symbol: socket_ce)) in Unknown on line 0
发现有提示错误 说这个动态库加载不出来
查了一下 发现说是 sockets 要先于 event 加载才行,然后我看了php.ini 发现这一行是注释的
那也就是说它是直接在conf.d里面就加载了,于是我看了一下这里 /etc/php/8.1/cli/conf.d
ll /etc/php/8.1/cli/conf.d|grep socket
发现了这个
lrwxrwxrwx 1 root root 39 9月 9 2022 20-sockets.ini -> /etc/php/8.1/mods-available/sockets.ini
于是我就复制了一个
sudo cp /etc/php/8.1/mods-available/sockets.ini /etc/php/8.1/mods-available/event.ini
然后编辑它
sudo gedit /etc/php/8.1/mods-available/event.ini
改为这样
下面是文本版本的
; configuration for php common module ; priority=30 extension=event.so
然后在/etc/php/8.1/cli/conf.d里面创建一个软链接引用它
sudo ln -s /etc/php/8.1/mods-available/event.ini 30-event.ini
然后它就能自动加载了.既然能自动加载 那么我们就要去php.ini里面把它拿掉或者注释掉
;extension=event
现在执行这个命令 php -m |grep event 就没问题了
得到
event
这说明我们的event扩展已经成功安装了
然后你到浏览器那边去访问发现还是没有扩展,这是为什么呢?因为你刚复制的动态链接库只是在cli文件夹里面,apache2文件夹没有,于是来到 /etc/php/8.1/apache2/conf.d 文件夹下如发炮制,再复制一个
sudo ln -s /etc/php/8.1/mods-available/event.ini 30-event.ini
然后重启apache,结果发现phpinfo()还是没有event扩展,此时我发现我用了fpm在运行
ps -ef |grep fpm
得到结果
root 470959 1 0 10:06 ? 00:00:00 php-fpm: master process (/etc/php/8.1/fpm/php-fpm.conf) www-data 470960 470959 0 10:06 ? 00:00:00 php-fpm: pool www www-data 470961 470959 0 10:06 ? 00:00:00 php-fpm: pool www zhaoyao 494622 489728 0 10:52 pts/6 00:00:00 grep --color=auto fpm
好,那我知道了,fpm也要复制一份出来,于是我来到 /etc/php/8.1/fpm/conf.d 又复制了一次
sudo ln -s /etc/php/8.1/mods-available/event.ini 30-event.ini
然后我重启一下fpm服务总可以了吧,这回看到phpinfo()得到的结果了
好了,这说明我们的扩展给 cli apache2 fpm都能用了.