Phpredis: Operation Not Permitted in OS X

Created on 20 Nov 2018  路  5Comments  路  Source: phpredis/phpredis

I was trying to install php-redis on my mac . When i run make install it gave an error
/usr/lib/php/extensions/no-debug-non-zts-20160303/
cp: /usr/lib/php/extensions/no-debug-non-zts-20160303/#INST@79542#: Operation not permitted
make: * [install-modules] Error 1

What is the solution for this ?

Dont close this issue with an answer of
"The answer is in error message:) You should add write permissions to extensions dir or execute command under the privileged user"

cause it doesn't resolve.

workaround is
disable the "System Integrity Protection" which is very risky

give a proper solution for this please !

Most helpful comment

Solutions are:

  • disable SIP
  • try to run phpredis in VM/container
  • don't use phpredis
  • don't use macos
    :smile:

All 5 comments

AFAIK the is no way to install third party software not from app store so you need to disable SIP.

Solutions are:

  • disable SIP
  • try to run phpredis in VM/container
  • don't use phpredis
  • don't use macos
    :smile:

Hi, is this under OSX Mojave? I'm actually waiting to upgrade because we've seen similar permissions issue with Mojave before.

With luck, we'll find a solution that doesn't involve disabling SIP or not using OSX but I don't know of any.

Resolved

Was this page helpful?
0 / 5 - 0 ratings

Related issues

koleo picture koleo  路  4Comments

marius-meissner picture marius-meissner  路  5Comments

lyrixx picture lyrixx  路  4Comments

zacharyhamm picture zacharyhamm  路  3Comments

btrazzini picture btrazzini  路  6Comments