Note that there are some explanatory texts on larger screens.

plurals
  1. POi'm not using rvm correctly - 'forgets' information on new session
    primarykey
    data
    text
    <p>I had to reinstall RVM this afternoon and am still struggling with the following problem - when I load a new terminal window (<code>iTerm2 Build 1.0.0.20130624</code> with <code>zsh 4.3.9 (i386-apple-darwin10.0)</code>), rvm 'forgets' my gemset data. </p> <p>This is a fairly common issue, but everything I've tried hasn't worked. I've done <a href="https://stackoverflow.com/a/8670219/2128691">this</a> (omitting the <code>create</code> as the gemset was already made): </p> <pre><code>rvm use --default 2.0.0@&lt;gemset_name&gt; </code></pre> <p>and <a href="https://stackoverflow.com/a/13239818/2128691">this</a> obviously doesn't work since I'm using ZSH: </p> <pre><code>Command: /bin/bash --login </code></pre> <p>so then i tried <a href="https://coderwall.com/p/lovd-g" rel="nofollow noreferrer">this</a>, specifically for ZSH, but that didn't work either - upon opening iTerm I got the following error:</p> <pre><code>## exec failed ## argpath=/usr/local/bin/zsh error=No such file or directory </code></pre> <p>I changed the command in iTerm preferences to </p> <pre><code>~/.zlogin -l </code></pre> <p>since I had added this to <code>.zlogin</code></p> <pre><code>[[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; source "$HOME/.rvm/scripts/rvm" </code></pre> <p>that also didn't work, throwing this error: </p> <pre><code>## exec failed ## argpath=/Users/&lt;username&gt;/.zlogin error=Permission denied </code></pre> <p>So I switched the 'Login Shell' back to <code>""</code> in iTerm preferences (so it would load without errors) and tried this in the command line:</p> <pre><code>$ source $HOME/.rvm/scripts/rvm </code></pre> <p>which gave me</p> <pre><code>source: no such file or directory: /Users/&lt;username&gt;/.rvm/scripts/rvm </code></pre> <p>so now I'm really confused. why is there no .rvm in my <code>~</code> directory?</p> <p>Finally, here's the result of <code>rvm info</code> upon reopening iTerm:</p> <pre><code>system: system: uname: "Darwin &lt;users&gt;-MacBook-Pro.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386" system: "osx/10.6/i386" bash: "/bin/bash =&gt; GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin10.0)" zsh: "/bin/zsh =&gt; zsh 4.3.9 (i386-apple-darwin10.0)" rvm: version: "rvm 1.21.16 () by Wayne E. Seguin &lt;wayneeseguin@gmail.com&gt;, Michal Papis &lt;mpapis@gmail.com&gt; [https://rvm.io/]" updated: "3 hours 33 minutes 38 seconds ago" path: "/usr/local/rvm" homes: gem: "not set" ruby: "/usr/local/rvm/rubies/ruby-2.0.0-p247" binaries: ruby: "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/ruby" irb: "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/irb" gem: "/usr/local/rvm/rubies/ruby-2.0.0-p247/bin/gem" rake: "/usr/local/rvm/gems/ruby-2.0.0-p247@global/bin/rake" environment: PATH: "/usr/local/rvm/gems/ruby-2.0.0-p247@&lt;gemset&gt;/bin:/usr/local/rvm/gems/ruby-2.0.0-p247@global/bin:/usr/local/rvm/rubies/ruby-2.0.0-p247/bin:/usr/local/rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/Users/&lt;username&gt;/.rvm/bin" GEM_HOME: "" GEM_PATH: "" MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-2.0.0-p247" IRBRC: "/usr/local/rvm/rubies/ruby-2.0.0-p247/.irbrc" RUBYOPT: "" gemset: "" </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload