使用./configure --with--PHP-config=/usr/local/php8/bin/php-config 报错 checking whether to build shared libraries... ye
使用./configure --with--PHP-config=/usr/local/php8/bin/php-config
报错
checking whether to build shared libraries... yeschecking whether to build static libraries... nocreating libtoolappending configuration tag "CXX" to libtoolconfigure: patching config.h.inconfigure: creating ./config.statusconfig.status: creating config.hconfigure: WARNING: unrecognized options: --with--php-config
改用
./configure --enable-Redis=/usr/local/php8/bin/php-config
原因:
我的是PHP8.1 版本,需要使用适合的redis 扩展
https://github.com/phpredis/phpredis/releases
下载最新版本phpredis-5.3.7
cd phpredis-5.3.7phpize ./configure --with-php-config=/usr/local/php8/bin/php-configmake && make install修改php.ini 文件添加扩展extension=redis
来源地址:https://blog.csdn.net/lxw1844912514/article/details/129498365
--结束END--
本文标题: php8安装Redis扩展
本文链接: https://www.lsjlt.com/news/387810.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
下载Word文档到电脑,方便收藏和打印~
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
2024-02-29
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0