Install Redis & PHP-Redis Extension on OSX Catalina

Installing Redis locally using brew for mac OSX Catalina

brew install redis
brew services start redis

Confirm that everything is working ok.


Then install PHP Redis Extension using PECL

pecl install redis

If you have trouble installing check if you have xcode tools install

xcode-select --install

Then open XCode just to make sure that everything is running smoothly.

Probably you will need another library in my case was libzstd -> zstd which I installed using `brew``

brew install zstd

After all this I was able to install successfully using PHP-Redis

pecl install redis

Victor Yoalli

This is me.