Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't seem to "use" the RVM Ruby install
    primarykey
    data
    text
    <p>I'm getting this error when I try to invoke rails, <code>rails -v</code> or <code>rails -c</code>:</p> <pre><code>/usr/lib/ruby/site_ruby/1.8/rubygems.rb:779:in `report_activate_error': Could not find RubyGem rails (&gt;= 0) (Gem::LoadError) from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:214:in `activate' from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1082:in `gem' from /usr/bin/rails:18 </code></pre> <p>I installed RVM, used it to install Ruby 1.9.3, and switched to it <code>rvm use 1.9.3 --default</code>.</p> <p>When I <code>ruby -v</code>:</p> <pre><code>ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux] </code></pre> <p>I also <code>gem install rails --no-rdoc --no-ri</code> and checked...<code>ls ~/ruby/gems/gems/</code>:</p> <pre><code>actionmailer-3.2.8/ journey-1.0.4/ rake-0.9.2.2/ actionpack-3.2.8/ json-1.7.5/ rdoc-3.12/ activemodel-3.2.8/ mail-2.4.4/ rubygems-bundler-1.0.7/ activerecord-3.2.8/ mime-types-1.19/ rvm-1.11.3.5/ activeresource-3.2.8/ multi_json-1.3.6/ sprockets-2.1.3/ activesupport-3.2.8/ polyglot-0.3.3/ sprockets-2.4.5/ arel-3.0.2/ rack-1.4.1/ thor-0.16.0/ builder-3.0.0/ rack-cache-1.2/ tilt-1.3.3/ bundler-1.1.5/ rack-ssl-1.3.2/ treetop-1.4.10/ erubis-2.7.0/ rack-test-0.6.1/ tzinfo-0.3.33/ hike-1.2.1/ rails-3.2.8/ i18n-0.6.0/ railties-3.2.8/ </code></pre> <p>And if I <code>echo $GEM_PATH</code>:</p> <pre><code>/home/flackend/.rvm/gems/ruby-1.9.3-p194:/home/flackend/.rvm/gems/ruby-1.9.3-p194@global </code></pre> <p><code>echo $PATH</code>:</p> <pre><code>/home/flackend/.rvm/gems/ruby-1.9.3-p194/bin:/home/flackend/.rvm/gems/ruby-1.9.3-p194@global/bin:/home/flackend/.rvm/rubies/ruby-1.9.3-p194/bin:/home/flackend/.rvm/bin:/usr/local/jdk/bin:/home/flackend/perl5/bin:/usr/kerberos/bin:/usr/lib/courier-imap/bin:/usr/lib64/ccache:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/X11R6/bin:/home/flackend/.rvm/bin:/home/flackend/bin </code></pre> <p><code>cat ~/.bashrc</code>:</p> <pre><code># .bashrc # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # User specific aliases and functions PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting </code></pre> <p><code>cat ~/.bash_profile</code>:</p> <pre><code># .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH [[ -s "$HOME/.rvm/scripts/rvm" ]] &amp;&amp; source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* </code></pre> <p>So somewhere something has a path that says to look at the system Ruby install. Any ideas? Thanks!</p> <hr> <h2>EDIT</h2> <p>Okay, also, If i switch back to the system Ruby, <code>rvm use system</code>, and <code>rails -v</code>, I get:</p> <pre><code>Rails 2.3.8 </code></pre> <p>So I have no idea at all what this error is indicating.</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