<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Rbenv on 答えを知りたい</title><link>https://hack.ironsand.net/tags/rbenv/</link><description>Recent content in Rbenv on 答えを知りたい</description><generator>Hugo -- 0.147.9</generator><language>en-US</language><lastBuildDate>Fri, 04 Apr 2014 16:11:27 +0000</lastBuildDate><atom:link href="https://hack.ironsand.net/tags/rbenv/index.xml" rel="self" type="application/rss+xml"/><item><title>rbenvのインストール方法と入れとくと便利なプラグイン</title><link>https://hack.ironsand.net/2014/rbenv-and-plugins-install/</link><pubDate>Fri, 04 Apr 2014 16:11:27 +0000</pubDate><guid>https://hack.ironsand.net/2014/rbenv-and-plugins-install/</guid><description>&lt;p>git は便利なんだけど、リポジトリ名が長くて暗記できなのがツラい所ですよね。&lt;/p>
&lt;p>忘れて毎回プラグインのリンクを探すのがめんどくさいのでいつも入れるものをメモっておきます。&lt;/p></description></item><item><title>rbenv: version `2.0.0′ is not installed の対処法</title><link>https://hack.ironsand.net/2014/rbenv-version-2-0-0-is-not-installed/</link><pubDate>Thu, 20 Mar 2014 05:15:06 +0000</pubDate><guid>https://hack.ironsand.net/2014/rbenv-version-2-0-0-is-not-installed/</guid><description>&lt;p>&amp;ldquo;Everyday Rails Testing with RSpec&amp;quot;を購入して読んでると&lt;/p>
&lt;p>サンプルプロジェクトが紹介されてたので&lt;code>git clone&lt;/code>でダウンロードしてきて &lt;code>bundle install&lt;/code> をすると&lt;/p>
&lt;p>&lt;code>rbenv: version '2.0.0' is not installed&lt;/code>&lt;/p>
&lt;p>と出ちゃって困る。しかも &lt;code>ruby -v&lt;/code> と確認しようと思ったら再び&lt;/p>
&lt;p>&lt;code>rbenv: version '2.0.0' is not installed&lt;/code>&lt;/p>
&lt;p>？？？？？？&lt;/p>
&lt;p>「まさか rbenv が壊れた！？」と思って調べてたら、どうやらカレントディレクトリに&lt;code>.ruby-version&lt;/code>があるとそのバージョンの Ruby を参照しようとするために起きるらしい。&lt;/p>
&lt;h3 id="対策">対策&lt;/h3>
&lt;p>自分の場合は&lt;code>2.0.0.p247&lt;/code>が入っているので該当のディレクトリで&lt;code>rbenv local&lt;/code>すると&lt;code>.ruby-version&lt;/code>の中身が書き換えられて上手く動くようになりました。&lt;/p>
&lt;p>Version 自体が異なる場合は上手く動かないと困るので該当のバージョンの ruby を&lt;code>rbenv install 2.x.x&lt;/code>でインストールしましょう。&lt;/p></description></item></channel></rss>