Project

General

Profile

How to solve problem "cannot load such file -- rails/all"?

Added by Ladislav Nesnera almost 11 years ago

Hi
I'm trying to upgrade to current Redmine version (2.3.1) but command:

RAILS_ENV=production rake db:migrate --trace

reply


rake aborted!
cannot load such file -- rails/all
/usr/local/lib/redmine/config/application.rb:3:in `require'
/usr/local/lib/redmine/config/application.rb:3:in `<top (required)>'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
/usr/local/lib/redmine/Rakefile:5:in `<top (required)>'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/rake_module.rb:25:in `load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:589:in `raw_load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:89:in `block in load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:88:in `load_rakefile'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:72:in `block in run'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling'
/var/lib/gems/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
/var/lib/gems/1.9.1/gems/rake-10.0.4/bin/rake:33:in `<top (required)>'
/usr/local/bin/rake:23:in `load'
/usr/local/bin/rake:23:in `<main>'

How/where can I obtain missing file?
Thanks for advice


Replies (4)

RE: How to solve problem "cannot load such file -- rails/all"? - Added by Ladislav Nesnera almost 11 years ago

Nobody knows? :-(
I find out requirement of "rails/all" in the application.rb file which comes from stable sources http://svn.redmine.org/redmine/branches/2.3-stable/config/application.rb

RE: How to solve problem "cannot load such file -- rails/all"? - Added by Toshi MARUYAMA almost 11 years ago

Rails does not support Ruby 1.9.1.
I recommend upgrading to Ruby 1.9.3.

http://rubyonrails.org/download

We recommend Ruby 1.9.3 for use with Rails. Rails 3.2 is the last one that supports Ruby 1.8. Ruby 1.8.6 and earlier are not supported, neither is version 1.9.1.

RE: How to solve problem "cannot load such file -- rails/all"? - Added by Ladislav Nesnera almost 11 years ago

Toshi, many thank you for reply ;-)

I believe I have required versions.

gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 1.8.23
  - RUBY VERSION: 1.9.3 (2012-04-20 patchlevel 194) [x86_64-linux]
  - INSTALLATION DIRECTORY: /var/lib/gems/1.9.1
  - RUBY EXECUTABLE: /usr/bin/ruby1.9.1
  - EXECUTABLE DIRECTORY: /usr/local/bin
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /var/lib/gems/1.9.1
     - /root/.gem/ruby/1.9.1
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :benchmark => false
     - :backtrace => false
     - :bulk_threshold => 1000
  - REMOTE SOURCES:
     - http://rubygems.org/

or

ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

OS:

lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 7.0 (wheezy)
Release:    7.0
Codename:    wheezy

And finaly

gem list --local

*** LOCAL GEMS ***

actionmailer (3.2.13, 2.3.15)
actionpack (3.2.13, 2.3.15)
activemodel (3.2.13)
activerecord (3.2.13, 2.3.15)
activeresource (3.2.13, 2.3.15)
activesupport (3.2.13, 2.3.15)
arel (3.0.2)
builder (3.0.4)
bundler (1.3.5)
coderay (1.0.9, 1.0.6)
erubis (2.7.0)
hike (1.2.2)
i18n (0.6.1, 0.4.2)
journey (1.0.4)
json (1.8.0)
mail (2.5.4)
mime-types (1.23)
multi_json (1.7.3)
mysql2 (0.2.18)
net-ldap (0.3.1)
pg (0.15.1, 0.13.2)
polyglot (0.3.3)
rack (1.4.5, 1.1.6)
rack-cache (1.2)
rack-ssl (1.3.3)
rack-test (0.6.2)
rails (3.2.13, 2.3.15)
railties (3.2.13)
rake (10.0.4)
rdoc (3.12.2)
rmagick (2.13.2, 2.13.1)
ruby-openid (2.1.8)
sprockets (2.2.2)
sqlite3 (1.3.7, 1.3.6)
thor (0.18.1)
tilt (1.4.1)
treetop (1.4.12)
tzinfo (0.3.37, 0.3.33)

Am I wrong?

RE: How to solve problem "cannot load such file -- rails/all"? - Added by 1 2 about 9 years ago

have similar error today
redmine crashed on start with "cannot load such file -- rails/all"
resolve it with removing Gemfile.lock in redmine root directory, and make bundle install in ssh console
(did it, cause found Gemfile.lock in dayly incermental backup)

    (1-4/4)