Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
14
Help us understand the problem. What is going on with this article?
@FromAtom

RVMでruby 2.0.0をインストールしようとしてハマった

More than 5 years have passed since last update.

rvmでruby2.0.0を入れようとしたら、RubyGemsが上手く入らなかったので、その時のメモ。

まずはrvmのアップデート。rvm update方式は廃止されたようなので、

$ rvm get stable
$ rvm reload

さくっとインストールする。

$ rvm install 2.0.0

そして、さくっとエラーが吐かれる。

Error
\Error running'env GEM_PATH=/Users/atom/.rvm/gems/ruby-2.0.0-p0:/Users/atom/.rvm/gems/ruby-2.0.0-p0@global:/Users/atom/.rvm/gems/ruby-2.0.0-p0:/Users/atom/.rvm/gems/ruby-2.0.0-p0@global GEM_HOME=/Users/atom/.rvm/gems/ruby-2.0.0-p0 /Users/atom/.rvm/rubies/ruby-2.0.0-p0/bin/ruby -d /Users/atom/.rvm/src/rubygems-2.0.3/setup.rb --verbose',
please read /Users/atom/.rvm/log/ruby-2.0.0-p0/rubygems.install.log
Installation of rubygems did not complete successfully.

どうやら、RubyGemsがちゃんと入らなかったらしい。
いろいろぐぐってみると、

$ echo ${LANG:-empty}
$ export LANG=en_US.utf-8

の2つを叩けばいいらしい。1つ目のechoで、LAND=ja_JA.utf-8が返されたので、どうやらこれが原因らしい。2つ目のexportを実行して、

$ rvm install 2.0.0

をしたら無事インストールできた。

14
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
14
Help us understand the problem. What is going on with this article?