search

Home  >  Q&A  >  body text

nosql - 如何在 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
怪我咯怪我咯2841 days ago712

reply all(1)I'll reply

  • 迷茫

    迷茫2017-04-21 10:58:40

    This means you don’t have enough permissions, just add sudo and it will be fine

    sudo make install

    reply
    0
  • Cancelreply