美文网首页
rvm 安装ruby 记录

rvm 安装ruby 记录

作者: 東玖零 | 来源:发表于2021-06-12 16:15 被阅读0次

由于我有点强迫症,把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

相关文章

  • 《Ruby~笔记》0x00

    安装 ruby 开发环境 安装 RVM 载入 RVM 环境 修改 RVM 的 Ruby 源为 Ruby China...

  • centos7 redis 集群部署

    ruby 安装 由于 redis 依赖 ruby 环境,所以首先安装好 ruby 安装 rvm 使用 rvm 方式...

  • Mac 更新Ruby

    这里使用RVM对Ruby进行升级 1、安装 RVM RVM:Ruby Version Manager,Ruby版本...

  • Cocoapods整理--如何安装Cocoapods

    一、安装Ruby 1、 安装RVM RVM(Ruby Version Manager),Ruby的版本管理器,包括...

  • 最简单的Pod安装方法

    Pod安装需要ruby,ruby需要rvm可以终端中查看rvm 安装没有 如果没有安装则按以下步骤安装 rvm安装...

  • 安装sass

    1. 安装ruby 检查本地是否安装 拓展 rvm rvm list 列出本地的ruby版本rvm list ...

  • cocoaPod安装

    一、安装rvm(ruby version manager)和检查更新ruby 安装rvm 命令 已安装 未安装 开...

  • ruby 安装记2018

    ruby 安装 官方文档 RVM 安装 (通过rvm进行安装及管理ruby) 安装前先安装:brew instal...

  • mac 安装ruby

    安装ruby首先要安装rvm 查看可安装版本信息 安装ruby 查看ruby版本 ruby rvm 常用命令 ge...

  • cocoapods卸载与安装以及遇到的问题

    一、cocoapods 卸载 二、cocoapods 安装 三、使用rvm安装Ruby(RVM:Ruby Vers...

网友评论

      本文标题:rvm 安装ruby 记录

      本文链接:https://www.haomeiwen.com/subject/edlieltx.html