mac 下安装redis扩展一直目录没权限,那么php扩展如何指定位置安装?
zhangsandeMacBook-Pro:phpredis-master zhangsan$ sudo make install
Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20121212/
cp: /usr/lib/php/extensions/no-debug-non-zts-20121212/#INST@10110#: Operation not permitted
make: * [install-modules] Error 1
楼主可以去了解一下brew,mac上面安装php版本,和扩展十分方便
同推荐 brew