无法在OS X 10.11上安装mongo-php-driver [英] Can't install mongo-php-driver on OS X 10.11

查看:64
本文介绍了无法在OS X 10.11上安装mongo-php-driver的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经阅读了所有类似的Stack Overflow问题-没有任何内容可以解决我的特定问题.我正在运行OS X 10.11(El Capitan).

I've read through all the similar Stack Overflow questions - nothing addresses my specific issue. I'm running OS X 10.11 (El Capitan).

我克隆了 mongo-php-drive存储库,这些命令成功完成:

I've cloned the mongo-php-drive repo and these commands succeed:

phpize
./configure
make

但是sudo make install失败:

(master) ~/tmp/mongo-php-driver
$ 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@39898#: Operation not permitted
make: *** [install-modules] Error 1

我知道这是一个权限问题,但我不知道如何安全地解决它.我不想放宽/usr/*之类的安全性.

I understand that it is a permissions issue but I don't know how to safely fix it. I don't want to loosen the security of something like /usr/*.

任何建议将不胜感激.

推荐答案

问题是由于OS X 10.11 El Capitan的无根功能.为了能够将扩展程序安装到/usr/lib/php/*中,我不得不暂时禁用此功能(

The problem was due to OS X 10.11 El Capitan's Rootless feature. To be able to install the extension into /usr/lib/php/* I had to temporarily disable the feature (instructions - please remember to re-enable it afterwards).

这篇关于无法在OS X 10.11上安装mongo-php-driver的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆