I am trying to install cocoapods
in my mac system but Unfortunately not able to install due to below error.
I have already used below commands.
sudo gem install -n /usr/local/bin cocoapods --pre
export GEM_HOME=~/.gems
export PATH=$GEM_HOME/bin:$PATH
gem install cocoapods
Seems like you don't have access to usr/bin directory. i have been there!!
please try below command.
sudo gem install -n /usr/local/bin cocoapods
this should work. Thanks!!
Please refer this post more information about access rights.