× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

Solution for: rbenv Rails is not currently installed on this system. To get the latest version, simply type

Mehmet Beydogan
Nov 25, 2015
<h2>Mac OS X, rbenv, and rails</h2> <p>.bash_profile</p> <pre><code><span style="color:rgb(0, 0, 0)">export PATH</span><span style="color:rgb(0, 0, 0)">=</span><span style="color:rgb(128, 0, 0)">"$HOME/.rbenv/bin:/usr/local/bin:$PATH"</span><span style="color:rgb(0, 0, 0)"> eval </span><span style="color:rgb(128, 0, 0)">"$(rbenv init -)"</span></code></pre> <h3>Restart the shell</h3> <pre><code><span style="color:rgb(0, 0, 0)">exec $SHELL </span><span style="color:rgb(0, 0, 0)">-</span><span style="color:rgb(0, 0, 0)">l</span></code></pre> <h3>Check the path</h3> <pre><code><span style="color:rgb(0, 0, 0)">echo $PATH</span></code></pre> <h3>Finally</h3> <p><code><span style="color:rgb(0, 0, 0)">$ gem install rails </span></code></p> <p><code><span style="color:rgb(0, 0, 0)">$ rbenv rehash </span></code></p> <p><code><span style="color:rgb(0, 0, 0)">$ which rails </span><span style="color:rgb(0, 0, 0)">/</span><span style="color:rgb(43, 145, 175)">Users</span><span style="color:rgb(0, 0, 0)">/</span><span style="color:rgb(0, 0, 0)">palmerc</span><span style="color:rgb(0, 0, 0)">/.</span><span style="color:rgb(0, 0, 0)">rbenv</span><span style="color:rgb(0, 0, 0)">/</span><span style="color:rgb(0, 0, 0)">shims</span><span style="color:rgb(0, 0, 0)">/</span><span style="color:rgb(0, 0, 0)">rails</span></code></p> <p><code><span style="color:rgb(0, 0, 0)">Credit: </span></code>http://stackoverflow.com/a/15997662/677500</p>

Get New Tutorials Delivered to Your Inbox

New tutorials will be sent to your Inbox once a week.

comments powered by Disqus