Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP8.1.1+yac-2.3.1 开启 msgpack压缩报错 #123

Open
letwang opened this issue Jan 24, 2022 · 3 comments
Open

PHP8.1.1+yac-2.3.1 开启 msgpack压缩报错 #123

letwang opened this issue Jan 24, 2022 · 3 comments

Comments

@letwang
Copy link

letwang commented Jan 24, 2022

/bin/bash /tmp/pear/temp/pear-build-defaultuser7rWXtj/yac-2.3.1/libtool --mode=compile cc -I. -I/tmp/pear/temp/yac -I/tmp/pear/temp/pear-build-defaultuser7rWXtj/yac-2.3.1/include -I/tmp/pear/temp/pear-build-defaultuser7rWXtj/yac-2.3.1/main -I/tmp/pear/temp/yac -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  -DHAVE_CONFIG_H  -g -O2    -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/yac/serializer/msgpack.c -o serializer/msgpack.lo  -MMD -MF serializer/msgpack.dep -MT serializer/msgpack.lo
libtool: compile:  cc -I. -I/tmp/pear/temp/yac -I/tmp/pear/temp/pear-build-defaultuser7rWXtj/yac-2.3.1/include -I/tmp/pear/temp/pear-build-defaultuser7rWXtj/yac-2.3.1/main -I/tmp/pear/temp/yac -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 -DHAVE_CONFIG_H -g -O2 -DZEND_COMPILE_DL_EXT=1 -c /tmp/pear/temp/yac/serializer/msgpack.c -MMD -MF serializer/msgpack.dep -MT serializer/msgpack.lo  -fPIC -DPIC -o serializer/.libs/msgpack.o
/tmp/pear/temp/yac/serializer/msgpack.c:29:10: fatal error: ext/msgpack/php_msgpack.h: No such file or directory
   29 | #include "ext/msgpack/php_msgpack.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:220: serializer/msgpack.lo] Error 1
ERROR: `make' failed

@letwang letwang changed the title PHP8.1+yac-2.3.1 开启 msgpack压缩报错 PHP8.1.1+yac-2.3.1 开启 msgpack压缩报错 Jan 24, 2022
@laruence
Copy link
Owner

你的msgpack是怎么安装的,理论上你可能需要类似msgpack-dev for php的包

@letwang
Copy link
Author

letwang commented Jan 25, 2022

大佬,我是通过PECL安装的
https://github.com/letwang/HookPHP/blob/master/Dockerfile#L85

pecl install amqp-1.11.0beta msgpack igbinary zstd yaf yaconf mongodb seaslog xhprof
pecl install -D 'enable-lzf-better-compression="no"' lzf
pecl install -D 'enable-igbinary="yes" enable-json="yes" enable-msgpack="yes"' yac

@cidosx
Copy link

cidosx commented Feb 16, 2022

msgpack 用 pecl 重装一下试试, uninstall install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants