当前位置:网站首页>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
边栏推荐
- Emnlp2021 𞓜 a small number of data relation extraction papers of deepblueai team were hired
- 27. Remove elements
- Reverse thinking: making cartoon photos real
- About custom comparison methods of classes and custom methods of sort functions
- Opencv learning path (2-2) -- Deep parsing namedwindow function
- Carrier coordinate system inertial coordinate system world coordinate system
- The central rural work conference has released important signals. Ten ways for AI technology to help agriculture can be expected in the future
- Section II: structural composition characteristics of asphalt pavement (2) structural layer and performance requirements
- How to apply for free idea with official documents
- NVIDIA SMI has failed because it could't communicate with the NVIDIA driver
猜你喜欢

在未来,机器人或 AI 还有多久才能具备人类的创造力?

Overview of self attention acceleration methods: Issa, CCNET, cgnl, linformer

Zed2 camera manual

Paper reproduction: pare

初步了解多任务学习
![[aaai 2021 timing action nomination generation] detailed interpretation of bsn++ long article](/img/28/d69a7583036a2076facffcf9098d7e.jpg)
[aaai 2021 timing action nomination generation] detailed interpretation of bsn++ long article

(十五)红外通信
![[NIPS2021]MLP-Mixer: An all-MLP Architecture for Vision](/img/89/66c30ea8d7969fef76785da1627ce5.jpg)
[NIPS2021]MLP-Mixer: An all-MLP Architecture for Vision

JVM tuning 6: GC log analysis and constant pool explanation

22、生成括号
随机推荐
使用acme.sh自动申请免费SSL证书
Zed2 camera manual
Sealem finance builds Web3 decentralized financial platform infrastructure
Bert knowledge distillation
Tencent X5 kernel initialization failed tbsreaderview not support by:***
[go deep into kotlin] - flow advanced
袋鼠云数栈基于CBO在Spark SQL优化上的探索
Minimize maximum
Maximum number of points on the line ----- hash table solution
袋鼠雲數棧基於CBO在Spark SQL優化上的探索
[entry level basics] node basic knowledge summary
49. grouping of acronyms
1.使用阿里云对象OSS(初级)
[opencv learning problems] 1 Namedwindow() and imshow() show two windows in the picture
JS promise, async, await simple notes
自定义View基础之Layout
Recommend a free intranet penetration open source software that can be used in the local wechat official account under test
Leetcode 161 Editing distance of 1 (2022.06.10)
String sorting times --- bubble sorting deformation
js promise,async,await简单笔记
