安装predis pear package osx时遇到问题

时间:2011-08-07 18:24:46

标签: php macos pear predis

我正在尝试通过osx终端中的pear安装predis并收到此错误:

$ pear install pearhub/predis
Attempting to discover channel "pearhub"...
Attempting fallback to https instead of http on channel "pearhub"...
unknown channel "pearhub" in "pearhub/predis"
invalid package name/package file "pearhub/predis"
install failed

你知道我要做些什么来发现pearhub吗?

2 个答案:

答案 0 :(得分:6)

PEAR需要知道“pearhub”的含义。在这种情况下,它意味着“pearhub.org”,一个项目存储库。发现这样:

$ pear channel-discover pearhub.org
$ pear install pearhub/predis

答案 1 :(得分:3)

Predis git repository https://github.com/nrk/predis/包含指向PEAR频道http://pear.nrk.io/的链接,并遵循以下说明:

  1. pear channel-discover pear.nrk.io
  2. pear remote-list -c nrk
  3. pear install nrk / predis