Expected behaviour
Actual behaviour
I'm seeing this behaviour on
OS: Mac OS 12.1
Redis:6.2.6
PHP:8.1
phpredis:5.3.5
$ pecl install igbinary // 3.2.7
$ pecl install zstd
$ pecl install redis
Steps to reproduce, backtrace or example script
[13-Jan-2022 20:34:31] NOTICE: PHP message:
PHP Warning: PHP Startup: Unable to load dynamic library 'redis.so' (tried: `/usr/local/lib/php/pecl/20210902/redis.so` (dlopen(/usr/local/lib/php/pecl/20210902/redis.so, 0x0009): symbol not found in flat
名称空间‘'/usr/local/lib/php/pecl/20210902/redis.so.so’‘),/usr/local/lib/php/php/20210902/redis.so.so(没有这样的文件):’/usr/local/lib/php/pecl/20210902/redis.so.so‘(没有这样的文件),'/usr/local/lib/redis.so.so’(没有这样的文件),在第0行中未知
发布于 2022-04-26 05:39:20
guys i used this other option for things to work
cd /tmp
git clone https://github.com/phpredis/phpredis.git
cd phpredis
phpize
./configure
make && make install
run this to find the directory -> php-config --extension-dir
then edit your php.ini file
extension=redis.so
this worked like charm
https://stackoverflow.com/questions/72003347
复制