Note that there are some explanatory texts on larger screens.

plurals
  1. PODefault Ruby version set with RVM not recognized by system
    primarykey
    data
    text
    <p>I'm trying to get the system to use the Ruby version I've set with RVM. The following commands produce this output:</p> <pre><code>$ rvm use 1.9.2 --default Using /usr/share/ruby-rvm/gems/ruby-1.9.2-p180 $ rvm current ruby-1.9.2-p180 $ ruby --version ruby 1.8.7 (2011-06-30 patchlevel 352) [x86_64-linux] </code></pre> <p>Here's the contents of my PATH:</p> <pre><code>PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games </code></pre> <p>Also:</p> <pre><code>$ whereis ruby ruby: /usr/bin/ruby /usr/bin/ruby1.8 /usr/lib/ruby /usr/share/man/man1/ruby.1.gz $ whereis rvm rvm: /usr/bin/rvm /usr/share/man/man1/rvm.1.gz </code></pre> <p>I assume this is an issue of environmental variables, but I don't really know what to do beyond that.</p> <p>I've tried <code>rvm system</code>, then <code>rvm list</code> and <code>rvm current</code> only list 1.9.2 with <code>ruby --version</code> listing 1.8.7 still.</p> <p>I've also tried adding <code>export PATH=/usr/share/ruby-rvm/gems/ruby-1.9.2-p180:$PATH</code> to .bashrc, then restarting and still, the wrong version of RVM. After doing that, my path says:</p> <pre><code>$ echo $PATH /usr/share/ruby-rvm/gems/ruby-1.9.2-p180/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games </code></pre> <p>But if I navigate to <code>/usr/share/ruby-rvm/gems/ruby-1.9.2-p180/bin</code>, the only executable in the directory is rake. So I figured it just wasn't installed right, so I ran <code>rvm install 1.9.2</code> and the directory is still the same.</p>
    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.
 

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