Search code examples
phpmacospearpredis

Having trouble installing predis pear package osx


I am trying to install predis through pear in the osx terminal and getting this error:

$ 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

Do you know what I have to do to discover pearhub?


Solution

  • PEAR needs to know what "pearhub" means. In this case, it means "pearhub.org", a project repository. Discover like this:

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