MacOS – Error configuring mcrypt after upgrading to El Capitan

apachemacossip

I am facing the following issue after upgrading to El Capitan. It says:

Installing shared extensions: /usr/lib/php/extensions/no-debug-non-zts-20121212/
cp: /usr/lib/php/extensions/no-debug-non-zts-20121212/#INST@826#: Operation not permitted

while running sudo make install in mcrypt/php-5.6.13/ext/mcrypt folder.
I think this is due to SIP but what is the other way round.

What is SIP and how do I know if it's causing this error?

Best Answer

Yes, this is due to SIP. So the two options you have are

  • disable SIP entirely
  • raise a defect/support request against mcrypt to use /usr/local instead of /usr for installation