Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3959546
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:44:37+00:00 2026-05-20T02:44:37+00:00

During an operation (rspec related) that required loading rubygems (from config/boot.rb file) I got

  • 0

During an operation (rspec related) that required loading rubygems (from config/boot.rb file) I got the following error message:

~/config/boot.rb:1:in `require': no such file to load -- rubygems (LoadError)
~/config/boot.rb:1
    from ~/config/application.rb:1:in `require'
    from ~/config/application.rb:1
    from ~/config/environment.rb:2:in `require'
    from ~/config/environment.rb:2
    from ~/spec/spec_helper.rb:3:in `require'
    from ~/spec/spec_helper.rb:3
    from ~/spec/models/user_spec.rb:1:in `require'
    from ~/spec/models/user_spec.rb:1
    from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:15:in `load'
    from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:15:in `load_files'
    from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:14:in `each'
    from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:14:in `load_files'
    from /usr/lib/ruby/1.8/spec/runner/options.rb:132:in `run_examples'
    from /usr/lib/ruby/1.8/spec/runner/command_line.rb:9:in `run'
    from /usr/bin/spec:3

I looked for this error on SO and found the following topics:
ruby gem not found although it is installed and
no such file to load — rubygems (LoadError)

However they both mentionned that the problem could come from the existance of multiple versions of ruby on the machine. Actually that was the case, so I decided to run a fresh installation of ruby and rails using RVM. But I still have the same problem!

Additional information:

which ruby
/usr/local/rvm/rubies/ruby-1.9.2-p136/bin/ruby

which rails
/usr/local/rvm/gems/ruby-1.9.2-p136/bin/rails

which gem
/usr/local/rvm/rubies/ruby-1.9.2-p136/bin/gem

gem --version
1.5.0

ls /usr/lib/ruby
1.8  1.9.1  gems

Any idea?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:44:37+00:00Added an answer on May 20, 2026 at 2:44 am

    So I apparently solved my problem by using the command rspec instead of spec. If someone can explain what is actually going on behind the scene, it would be great!

    amokrane@san-francisco ~/Documents/prog/web/learning_rails/forecaster/spec $ spec models/user_spec.rb 
    /home/amokrane/Documents/prog/web/learning_rails/forecaster/config/boot.rb:1:in `require': no such file to load -- rubygems (LoadError)
        from /home/amokrane/Documents/prog/web/learning_rails/forecaster/config/boot.rb:1
        from /home/amokrane/Documents/prog/web/learning_rails/forecaster/config/application.rb:1:in `require'
        from /home/amokrane/Documents/prog/web/learning_rails/forecaster/config/application.rb:1
        from /home/amokrane/Documents/prog/web/learning_rails/forecaster/config/environment.rb:2:in `require'
        from /home/amokrane/Documents/prog/web/learning_rails/forecaster/config/environment.rb:2
        from /home/amokrane/Documents/prog/web/learning_rails/forecaster/spec/spec_helper.rb:3:in `require'
        from /home/amokrane/Documents/prog/web/learning_rails/forecaster/spec/spec_helper.rb:3
        from /home/amokrane/Documents/prog/web/learning_rails/forecaster/spec/models/user_spec.rb:1:in `require'
        from /home/amokrane/Documents/prog/web/learning_rails/forecaster/spec/models/user_spec.rb:1
        from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:15:in `load'
        from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:15:in `load_files'
        from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:14:in `each'
        from /usr/lib/ruby/1.8/spec/runner/example_group_runner.rb:14:in `load_files'
        from /usr/lib/ruby/1.8/spec/runner/options.rb:132:in `run_examples'
        from /usr/lib/ruby/1.8/spec/runner/command_line.rb:9:in `run'
        from /usr/bin/spec:3
    
    amokrane@san-francisco ~/Documents/prog/web/learning_rails/forecaster/spec $ rspec models/weather_spec.rb 
    F
    
    Failures:
    
      1) Weather should be valid
         Failure/Error: @weather = Weather.new
         ActiveRecord::StatementInvalid:
           Could not find table 'weathers'
         # ./models/weather_spec.rb:6:in `new'
         # ./models/weather_spec.rb:6:in `block (2 levels) in <top (required)>'
    
    Finished in 0.11124 seconds
    1 example, 1 failure
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Ok, so I have a window that pops up ( during normal operation of
I try to get an unique id that's not change during operation. I think
In my current situation I have a class that performs an operation synchronously. During
Obviously it gets updated during a write operation, but are there any non-destructive operations
I am using CaptureMouse() during a drag and drop operation to make sure I
Does anyone know how to get the correct mouse position during a drag-and-drop operation
During a setup program, a configuration file (log4j.properties) needs to be modified. One line
During SSL 3.0 handshaking server responses with the following serverhello message 16 03 00
During a typical day programming, I implement functions in a way that I would
I do some operation on big file (around 4Mb) I do this : 1.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.