0

I'm trying to install Alamo-fire library in my project. But I'm getting the following error:

ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied - /Library/Ruby/Site/2.0.0/rubygems

How can i resolve this?

Eric Aya
  • 69,473
  • 35
  • 181
  • 253
swati
  • 57
  • 11
  • Compare with https://stackoverflow.com/questions/17550903/why-do-i-get-a-permission-denied-error-while-installing-a-gem and https://stackoverflow.com/questions/18320621/gem-install-rails-error-while-executing-gem-errnoeacces – Ahmad F Jul 03 '17 at 06:04
  • Where is your ruby installed?? – Akshay Jul 03 '17 at 06:04
  • 1
    try this : **sudo rm -rf ~/.cocoapods/repos/master** and then just **pod setup**. – KKRocks Jul 03 '17 at 06:05
  • ruby installed in the "Users" folder in my system..@Akshay – swati Jul 03 '17 at 06:07
  • Make sure you have write privileges. – vishless Jul 03 '17 at 06:07
  • Hi, I have successfully installed the pod file by using the following commands: gem update --system sudo gem install -V -n /usr/local/bin cocoapods pod install – swati Jul 03 '17 at 07:50

0 Answers0