当前位置:网站首页>Cocoapods installation error
Cocoapods installation error
2022-06-11 05:29:00 【Always happy old pea】
Preface
CocoaPods Installation error
The information is as follows :
Fetching cocoapods-deintegrate-1.0.5.gem
Fetching ffi-1.15.5.gem
Fetching ethon-0.15.0.gem
Fetching typhoeus-1.4.0.gem
Fetching public_suffix-4.0.6.gem
Fetching fuzzy_match-2.0.4.gem
Fetching concurrent-ruby-1.1.9.gem
Fetching json-2.6.1.gem
Fetching httpclient-2.8.3.gem
Fetching algoliasearch-1.27.5.gem
Fetching addressable-2.8.0.gem
Fetching zeitwerk-2.5.4.gem
Fetching tzinfo-2.0.4.gem
Fetching minitest-5.15.0.gem
Fetching cocoapods-1.11.2.gem
Fetching i18n-1.10.0.gem
Fetching activesupport-6.1.4.6.gem
Fetching cocoapods-core-1.11.2.gem
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory.
solve :
The premise is that I have added sudo, On going
sudo gem install -n /usr/local/bin cocoapods
It was originally a permission issue , According to the normal operation, it should use sudo Or adding a path should solve the problem , But after many attempts, it still failed , In desperation, it was renewed gem and ruby,
to update :ruby
- Check out the current version :

- List known ruby Version of

curl -L https://get.rvm.io | bash -s stable


load RVM Environmental Science
source ~/.rvm/scripts/rvm
Check RVM Is the installation successful ( see RVM edition )
Continue to list known ruby edition 
install ruby
rvm install 2.7

install rvm Times wrong :
[email protected] levacp % rvm install 2.7.2
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.15/x86_64/ruby-2.7.2.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Installing requirements for osx.
Updating system - please wait
Failed to update Homebrew, follow instructions at
https://docs.brew.sh/Common-Issues
and make sure `brew update` works before continuing.
Error running 'requirements_osx_brew_update_system ruby-2.7.2',
please read /Users/cunweizhao/.rvm/log/1646018359_ruby-2.7.2/update_system.log
Requirements installation failed with status: 1.
1、 to update brew
brew update

Prompt or no permission , I've added sudo, Go directly to the current directory to add information :
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/lib/ruby/gems/2.6.0 directory.

I don't think so , Then continue to search Baidu to see 

Last Add the following code to one line
export PATH="/usr/local/opt/ruby/bin:$PATH"

echo 'export PATH="/usr/local/opt/ruby/bin:$PATH"' >> ~/.zshrc
success
边栏推荐
- Convert result set of SQL to set
- The programmers of a large factory after 95 were dissatisfied with the department leaders, and were sentenced for deleting the database and running away
- Opencv learning path (2-4) -- Deep parsing cvtcolor function
- es-ik 安装报错
- 创建酷炫的 CollectionViewCell 转换动画
- Technology | image motion drive interpretation of first order motion model
- WinForm (I) introduction to WinForm and use of basic controls
- Section I: classification and classification of urban roads
- Get the full link address of the current project request URL
- 高斯白噪声(white Gaussian noise,WGN)
猜你喜欢

22、生成括号

MySQL string to array, merge result set, and convert to array

袋鼠雲數棧基於CBO在Spark SQL優化上的探索

点击图标不灵敏咋整?

自定义View之基础篇
![[entry level basics] node basic knowledge summary](/img/91/39aff1ade1f37f54b61a454e32d487.jpg)
[entry level basics] node basic knowledge summary

Paper reproduction: pare

es-ik 安装报错

Target detection - personal understanding of RCNN series

Cascade EF gan: local focus progressive facial expression editing
随机推荐
深度学习分布式训练
jvm调优五:jvm调优工具和调优实战
工具类ObjectUtil常用的方法
Using keras to build the basic model yingtailing flower
Vins fusion GPS fusion part
【深入kotlin】 - 初识 Flow
BERT知识蒸馏
[go deep into kotlin] - flow advanced
String sorting times --- bubble sorting deformation
AAAI2022-ShiftVIT: When Shift Operation Meets Vision Transformer
Bert knowledge distillation
Convert result set of SQL to set
MySQL string to array, merge result set, and convert to array
How to apply for free idea with official documents
Carrier coordinate system inertial coordinate system world coordinate system
PageHelper page 2 collections in the same interface
Preliminary understanding of DFS and BFS
Emnlp2021 𞓜 a small number of data relation extraction papers of deepblueai team were hired
微信小程序,购买商品属性自动换行,固定div个数,超出部分自动换行
Combination sum Ⅳ -- leetcode exercise
