在OSX上使用已弃用的自制软件/php安装用于PHP 5.6的PHP扩展 [英] Install PHP Extension for PHP 5.6 on OSX with deprecated homebrew/php

查看:230
本文介绍了在OSX上使用已弃用的自制软件/php安装用于PHP 5.6的PHP扩展的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天我已经更新了Brew,现在我无法安装php56-extensions.

today I've update Brew and now I can't install the php56-extensions.

在Mac上安装了"php56",今天我需要安装"php56-redis",但是当我尝试安装此扩展程序时,Brew返回以下错误消息.

On my Mac is installed "php56" and today I had need to install, "php56-redis", but when I had try to install this extension, Brew returned the following error message.

$ brew install php56-redis

Error: No available formula with the name "php56-redis" 
==> Searching for a previously deleted formula (in the last month)...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
==> Searching local taps...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.

我在homebrew/php页面上看到不赞成使用此"tap",现在只有PHP引擎在php@5.6上迁移,但扩展名不起作用.

I see on homebrew/php page that this "tap" is deprecated and for now only PHP engine are migrated on php@5.6 but the extensions not works.

推荐答案

首先安装exolnet/homebrew弃用的

First install exolnet/homebrew-deprecated

$ brew tap exolnet/homebrew-deprecated

安装已弃用的软件包后

$ brew install php@5.6

这篇关于在OSX上使用已弃用的自制软件/php安装用于PHP 5.6的PHP扩展的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆