PHP72 的 Redis 扩展安装问题?

本机环境是用homebrew安装的,
PHP 7.2.4怎么添加redis扩展?
file

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《L03 构架 API 服务器》
你将学到如 RESTFul 设计风格、PostMan 的使用、OAuth 流程,JWT 概念及使用 和 API 开发相关的进阶知识。
最佳答案

brew install php72-redis 裝不了嗎

6年前 评论
讨论数量: 5

參考 https://github.com/phan/phan/wiki/Getting-...
因 homebrew/php 已在 1.5 版併入 homebrew/core
所以須先移除舊版,安裝新版後,再用 pecl 安裝擴展,具體作法如下,我已經操作過沒碰到問題:

brew update; # updates local brew meta data
# removes old homebrew php TAP, now php is in homebrew core
brew untap homebrew/php;
brew uninstall php; # or brew uninstall php72 if you had that before
brew upgrade; # make sure all the other libs are up to date
brew cleanup; # cleanup old files
brew prune; # cleanup old symlinks
brew install autoconf; # Required by pecl
brew install php;
pecl install redis;
6年前 评论

brew install php72-redis 裝不了嗎

6年前 评论

@leochien 对,装不了,homebrew移除了php72-redis。

6年前 评论

參考 https://github.com/phan/phan/wiki/Getting-...
因 homebrew/php 已在 1.5 版併入 homebrew/core
所以須先移除舊版,安裝新版後,再用 pecl 安裝擴展,具體作法如下,我已經操作過沒碰到問題:

brew update; # updates local brew meta data
# removes old homebrew php TAP, now php is in homebrew core
brew untap homebrew/php;
brew uninstall php; # or brew uninstall php72 if you had that before
brew upgrade; # make sure all the other libs are up to date
brew cleanup; # cleanup old files
brew prune; # cleanup old symlinks
brew install autoconf; # Required by pecl
brew install php;
pecl install redis;
6年前 评论

pecl install redis + 1

4年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!