In August I published an article - Install Mcrypt and Intl Php Extensions on Mac OS X and XAMPP.
The solution was perfectly working for Mac OS X Yosemite, but with the release of El Capitan, as I’ve been informed by Sjoerd, one of the readers of my blog, “you will need to deactivate System Integrity Protection (SIP) before you can change anything from /private/ on your MAC”.
Warning: The point of SIP is to prevent malware and other unwanted modifications into system files. Consider whether or not you want to dispense with this protection.
For the following to work, you must have a proper and up to date Recovery partition on your boot drive. While that should be a given, it’s possible to clone a startup volume without Recovery installed.
So to start with you need to select Terminal from the Utilities menu in Recovery.
Follow these steps to disable SIP:
- Restart your Mac
- Before OS X starts up, hold down Command-R and keep it held down until you see an Apple icon and a progress bar. Release. This boots you into Recovery
- From the Utilities menu, select Terminal
- At the prompt type exactly the following and then press Return: csrutil disable
- Terminal should display a message that SIP was disabled
- From the menu, select Restart.
You can re-enable SIP by following the above steps, but using csrutil enable instead.
I have not tried this out but according to the feedback provided, this should resolve any issues with SIP on El Capitan.
This solution was grabbed from www.macworld.com find the link to the original article below.