Jump to content

The ultimate community for Ruby on Rails developers.


Photo

RVM Noob Headaches Please Help

rvm gems gemset gem install

  • Please log in to reply
No replies to this topic

#1 marsters256

marsters256

    Passenger

  • Members
  • 1 posts

Posted 11 April 2014 - 12:40 PM

I'm trying to set up a gemset using RVM for use with Site5, which I chose because they have reseller hosting.

I'm having that though again where the biggest downside to laptop computers is that you could quite easily pick them up and hurl them at a wall in about half a second flat.

Here's the problem:

I need to use ruby-1.8.7 and so therefore rails -v 3... (???)

$ rvm gemset create site5
$ rvm use ruby-1.8.7-p374@site5
$ gem install rails -v 3.0.0

So far so good, rails -v outputs rails 3.0.0

so...

$ rails new site5
$ cd site5

Here is where the issues begin...

$ pwd
/home/jak/Documents/rails/site5
$ rails -v 
/home/jak/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55:in `gem_original_require': no such file to load -- rubygems/format (LoadError)
    from /home/jak/.rvm/rubies/ruby-1.8.7-p374/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /home/jak/.rvm/gems/ruby-1.8.7-p374@site5/gems/bundler-1.0.22/lib/bundler/source.rb:5
    from /home/jak/.rvm/gems/ruby-1.8.7-p374@site5/gems/bundler-1.0.22/lib/bundler/dsl.rb:14:in `initialize'
    from /home/jak/.rvm/gems/ruby-1.8.7-p374@site5/gems/bundler-1.0.22/lib/bundler/dsl.rb:6:in `new'
    from /home/jak/.rvm/gems/ruby-1.8.7-p374@site5/gems/bundler-1.0.22/lib/bundler/dsl.rb:6:in `evaluate'
    from /home/jak/.rvm/gems/ruby-1.8.7-p374@site5/gems/bundler-1.0.22/lib/bundler/definition.rb:17:in `build'
    from /home/jak/.rvm/gems/ruby-1.8.7-p374@site5/gems/bundler-1.0.22/lib/bundler.rb:138:in `definition'
    from /home/jak/.rvm/gems/ruby-1.8.7-p374@site5/gems/bundler-1.0.22/lib/bundler.rb:126:in `load'
    from /home/jak/.rvm/gems/ruby-1.8.7-p374@site5/gems/bundler-1.0.22/lib/bundler.rb:110:in `setup'
    from /home/jak/Documents/rails/site5/config/boot.rb:8
    from script/rails:5:in `require'
    from script/rails:5

So what on earth is going on?
Things I've tried:

  • Messing around with $ rvm gemset empty <gemset> and re-installing gems
  • $ gem install rails -v 3.0.0 again
  • $ bundle install

Can't help but think I'm doing something fundamentally wrong here so please guys end my frustration and give me a clue I've spent 2 hours on this now.

 

Attached Thumbnails

  • whyGodWhy.png






Also tagged with one or more of these keywords: rvm, gems, gemset, gem install

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users