如何在 PHP 集成环境里安装 Redis 扩展


在 OSX 系统里,使用的是第三方 PHP 集成环境 MAMP,如何安装 Redis 扩展。
根据 https://github.com/nicolasff/phpredis 的安装方法,执行到 make && make install 返回错误

Build complete.
Don't forget to run 'make test'.

Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20090626/
cp: /usr/lib/php/extensions/no-debug-non-zts-20090626/#INST@3299#: Permission denied
make: *** [install-modules] Error 1

phpredis Redis php-extension nosql

55666 10 years, 3 months ago

这是说你权限不够,加上 sudo 就可以了

sudo make install
天心阁吴克 answered 10 years, 3 months ago

Your Answer