In case you face an error as:
ERROR: While executing gem … (Errno::EPERM) Operation not permitted [duplicate]
while updating or installing the gem(specially in EI Capitan), then we can do the following:
- Reboot your Mac into Recovery Mode by restarting your computer and holding down Command+R until the Apple logo appears on your screen.
- Click Utilities > Terminal.
- In the Terminal window, type in csrutil disable and press Enter.
- Restart your Mac.
Comments