Note that there are some explanatory texts on larger screens.

plurals
  1. POCannot launch Rails console
    primarykey
    data
    text
    <p>Rails console doesn't work on my production server. Here is what happens:</p> <pre><code>root@myapp:/webapps/myapp/current# rails c /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- rails/cli (LoadError) from /usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from /usr/local/rvm/gems/ruby-1.9.2-p180@rails/gems/rails-3.0.5/bin/rails:8:in `rescue in &lt;main&gt;' from /usr/local/rvm/gems/ruby-1.9.2-p180@rails/gems/rails-3.0.5/bin/rails:3:in `&lt;main&gt;' </code></pre> <p>Previously I was getting Readline related error, explained here: <a href="https://stackoverflow.com/questions/4498919/problems-with-the-rails-console-rvm-and-readline">Problems with the rails console, RVM and readline</a></p> <p>I tried the propsoed fix, and now I'm not getting readline error. Still the console won't launch.</p> <p>Here is the rvm info output:</p> <pre><code>ruby-1.9.3-p194: system: uname: "Linux 111items 2.6.38-linode31 #1 SMP Mon Mar 21 21:22:33 UTC 2011 i686 GNU/Linux" bash: "/bin/bash =&gt; GNU bash, version 4.1.5(1)-release (i486-pc-linux-gnu)" zsh: " =&gt; not installed" rvm: version: "rvm 1.13.4 () by Wayne E. Seguin &lt;wayneeseguin@gmail.com&gt;, Michal Papis &lt;mpapis@gmail.com&gt; [https://rvm.io/]" updated: "53 minutes 38 seconds ago" ruby: interpreter: "ruby" version: "1.9.3p194" date: "2012-04-20" platform: "i686-linux" patchlevel: "2012-04-20 revision 35410" full_version: "ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux]" homes: gem: "/usr/local/rvm/gems/ruby-1.9.3-p194" ruby: "/usr/local/rvm/rubies/ruby-1.9.3-p194" binaries: ruby: "/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby" irb: "/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/irb" gem: "/usr/local/rvm/rubies/ruby-1.9.3-p194/bin/gem" rake: "/usr/local/rvm/gems/ruby-1.9.3-p194@global/bin/rake" environment: PATH: "/usr/local/rvm/gems/ruby-1.9.3-p194/bin:/usr/local/rvm/gems/ruby-1.9.3-p194@global/bin:/usr/local/rvm/rubies/ruby-1.9.3-p194/bin:/usr/local/rvm/bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" GEM_HOME: "/usr/local/rvm/gems/ruby-1.9.3-p194" GEM_PATH: "/usr/local/rvm/gems/ruby-1.9.3-p194:/usr/local/rvm/gems/ruby-1.9.3-p194@global" MY_RUBY_HOME: "/usr/local/rvm/rubies/ruby-1.9.3-p194" IRBRC: "/usr/local/rvm/rubies/ruby-1.9.3-p194/.irbrc" RUBYOPT: "" gemset: "" </code></pre> <p>Locally I was always able to launch rails console, but on the remote machine something is different.</p> <p>upd: My best guess so far is that Rails is missing correct path to "rails/cli". Have to research and see how this can be fixed.</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