安装cocoapods时出现错误“ sudo gem install cocoapods”; MacOs卡塔利娜 [英] Error installing cocoapods "sudo gem install cocoapods" MacOs Catalina
本文介绍了安装cocoapods时出现错误“ sudo gem install cocoapods”; MacOs卡塔利娜的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图在我的mac系统中安装 cocoapods
,但由于以下错误而无法安装。
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
推荐答案
似乎您无权访问usr / bin目录。我去过那里!!
Seems like you don't have access to usr/bin directory. i have been there!!
请尝试以下命令。
sudo gem install -n /usr/local/bin cocoapods
这应该可行。谢谢!!
this should work. Thanks!!
请参考此发布有关访问权限的更多信息。
Please refer this post more information about access rights.
这篇关于安装cocoapods时出现错误“ sudo gem install cocoapods”; MacOs卡塔利娜的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文