Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Ruby Installing a Ruby Development Environment Installing a Ruby Development Environment Installing Ruby on Mac

Errors for testing Ruby install - Warning using Rubygems, upgrade to 2.1.0

Hi,

I followed the video but get the following message,

cd testapp $ bin/rails server Warning: You're using Rubygems 2.0.14 with Spring. Upgrade to at least Rubygems 2.1.0 and run gem pristine --all for better startup performance.

Could anyone tell me what to do?

Thanks!

3 Answers

Stone Preston
Stone Preston
42,016 Points

looks like thats just a warning, not an error. You could try doing what it suggests and installing a newer version of ruby gems

I am totally new to Ruby... So how would I install a newer version of ruby gems?

Thanks.

Stone Preston
Stone Preston
42,016 Points

Run the following command at the command line

gem install Rubygems

Hi Stone, thanks for your help. But I am stuck again with the following

$ gem install rubygems ERROR: Could not find a valid gem 'rubygems' (>= 0) in any repository ERROR: Possible alternatives: ruby_gem, rubydeps, ruby-rets, rubyless, rubyjams

Do I need to do a previous step first?

Thanks!

Stone Preston
Stone Preston
42,016 Points

hmm try running gem update --system that should upgrade your rubygems to the latest version

I have no idea why I have so much trouble... Maybe I should remove everything and start again?

$ gem update --system Updating rubygems-update Fetching: rubygems-update-2.2.2.gem (100%) ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

Stone Preston
Stone Preston
42,016 Points

ok try sudo gem update --system that should run the command with root privledges

Thanks,

I think it solved something! (not sure yet what any more :))

RubyGems system software updated

David Aviles
David Aviles
3,743 Points

I am having the same issue currently. I am getting the following """ /Users/David/.rbenv/versions/2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require': cannot load such file -- bundler/setup (LoadError) from /Users/David/.rbenv/versions/2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/commands.rb:33:in <module:Spring>' from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/commands.rb:4:in<top (required)>' from /Users/David/.rbenv/versions/2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Users/David/.rbenv/versions/2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:77:in preload' from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:140:inserve' from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:128:in block in run' from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:inloop' from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/application.rb:122:in run' from /Library/Ruby/Gems/2.0.0/gems/spring-1.1.3/lib/spring/application/boot.rb:18:in<top (required)>' from /Users/David/.rbenv/versions/2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Users/David/.rbenv/versions/2.1.2/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from -e:1:in `<main>' """ I have updated the system version - output "Latest version currently installed. Aborting."

Any help will be appreciated.

UPDATE: 6/26/2014

My issue was that I was on Mavericks using Homebrew. The symlinks and paths were pointing to different places. A simple uninstall of homebrew and manual update of the system versions of rails and ruby fixed the issue.

Seth Forsgren
Seth Forsgren
2,254 Points

Hey, I've tried all the above as well and still having this issue:

$ gem install Rubygems ERROR: Could not find a valid gem 'Rubygems' (>= 0) in any repository ERROR: Possible alternatives: ruby_gem, rubydeps, rubyjams, rubygems-s3, rubygame