I've read through all the similar Stack Overflow questions - nothing addresses my specific issue. I'm running OS X 10.11 (El Capitan).
I've cloned the mongo-php-drive repo and these commands succeed:
phpize
./configure
make
But sudo make install
fails:
(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
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/*
.
Any suggestions would be much appreciated.
git clone
did you then switch to a stable branch/tag? If not then you are reading off "master" which is certainly unstable. Usegit checkout
to switch to a version which is supported. – Phytosociology* master 071165f Merge branch 'v1.6'
. I'm new togit
- doesn't this mean I'm on the latest stable branch (which seems to be be v1.6). How do I switch to the right branch? (thank you for your help!) – Paralyze/usr/lib/php/extensions/
due to a permission problem. Again, I'd like to know the right/safe way to change the directory permissions so thatmake install
can succeed. – Paralyze/usr/local
). I'd be curious if it also works with mongo (I don't see why it wouldn't). https://mcmap.net/q/1630760/-error-in-mcrypt-after-upgrading-into-el-capitan-os – Benz