I'm trying to install OAuth version 1.2.3 locally with pecl install (running PHP 5.6.10 on Mac OSX El Capitan). Running the following in command prompt:
sudo pecl install oauth-1.2.3
Installation starts fine and runs without errors up until build is done. Then I get this error:
Build process completed successfully
Installing '/usr/lib/php/extensions/no-debug-non-zts-20121212/oauth.so'
ERROR: failed to write /usr/lib/php/extensions/no-debug-non-zts-`20121212/oauth.so
(copy(/usr/lib/php/extensions/no-debug-non-zts-20121212/oauth.so):
failed to open stream: Operation not permitted)`
ls shows no oauth.so in folder no-debug-non-zts-20121212, but other than that, folder looks fine.
Things I've tried: - updating pear and pecl - updating MAMP - restarting webserver - restarting computer
Am running out of ideas of things to try. Anyone who's heard of this issue before?