由于我有点强迫症,把brew下安装不认识的包都删除了,导致我pod install 报错,只能重新安装一下cocopods。
我昨天才安装好的ruby2.7.2,由于我删除了不认识的包导致不能正常工作,于是我就想删除这个包,rvm remove 2.7.2就报如下错误。
Error running '__rvm_rm_rf /Users/adong/.rvm/rubies/ruby-2.7.2',
please read /Users/adong/.rvm/log/1623484874_ruby-2.7.2/remove.rubies.log
最终使用sudo rvm remove 2.7.2就可以了,又开始了ruby 2.7.2的重安装之路。
安装又报错了,无奈之下我又卸载了RVM,重新安装VM,我滴个天啊!
adong@adong ~ % 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/adong/.rvm/log/1623489816_ruby-2.7.2/update_system.log
Requirements installation failed with status: 1.
最后搜索到一个救命帖
运行了rvm autolibs read-only命令,再安装就成功了。
adong@adong ~ % 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.
Missing required packages: autoconf automake libtool pkg-config coreutils libyaml libksba readline zlib
Certificates bundle '/usr/local/etc/openssl@1.1/cert.pem' is already up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/adong/.rvm/rubies/ruby-2.7.2, this may take a while depending on your cpu(s)...
ruby-2.7.2 - #downloading ruby-2.7.2, this may take a while depending on your connection...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 14.0M 100 14.0M 0 0 30522 0 0:08:01 0:08:01 --:--:-- 29090
ruby-2.7.2 - #extracting ruby-2.7.2 to /Users/adong/.rvm/src/ruby-2.7.2 - please wait
ruby-2.7.2 - #configuring - please wait
ruby-2.7.2 - #post-configuration - please wait
ruby-2.7.2 - #compiling - please wait
ruby-2.7.2 - #installing - please wait
ruby-2.7.2 - #making binaries executable - please wait
Installed rubygems 3.1.4 is newer than 3.0.9 provided with installed ruby, skipping installation, use --force to force installation.
ruby-2.7.2 - #gemset created /Users/adong/.rvm/gems/ruby-2.7.2@global
ruby-2.7.2 - #importing gemset /Users/adong/.rvm/gemsets/global.gems - please wait
ruby-2.7.2 - #generating global wrappers - please wait
ruby-2.7.2 - #gemset created /Users/adong/.rvm/gems/ruby-2.7.2
ruby-2.7.2 - #importing gemsetfile /Users/adong/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.7.2 - #generating default wrappers - please wait
ruby-2.7.2 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
Install of ruby-2.7.2 - #complete
Ruby was built without documentation, to build it run: rvm docs generate-ri
网友评论