Okay so I’m new to ruby and rails. This is probably a very easy
question. So, I’m trying to run Webrick but it tells me that I need to
install gems.
This is what I keep getting:
Macintosh:contactlist sue$ ruby script/server Webrick
Rails requires RubyGems >= . Please install RubyGems and try again: http://rubygems.rubyforge.org
So I keep trying to update/ install ruby. I think the problem is that it
is not installing the Installing rubygems-1.3.4 ri into
/Library/Ruby/Gems/1.8/doc/rubygems-1.3.4/ri stuff. I honestly have no
clue. Please help:
Installing rubygems-1.3.4 rdoc into
/Library/Ruby/Gems/1.8/doc/rubygems-1.3.4/rdoc
Macintosh:~ sue$ sudo gem install rubygems-update
Password:
Successfully installed rubygems-update-1.3.4
1 gem installed
Installing ri documentation for rubygems-update-1.3.4…
Installing RDoc documentation for rubygems-update-1.3.4…
Macintosh:~ sue$ sudo update_rubygems
Macintosh:~ sue$ sudo update_rubygems
Installing RubyGems 1.3.4
Installing RubyGems
Installing gem executable
Removing old source_cache files
Removing old RubyGems RDoc and ri
Installing rubygems-1.3.4 ri into
/Library/Ruby/Gems/1.8/doc/rubygems-1.3.4/ri
Installing rubygems-1.3.4 rdoc into
/Library/Ruby/Gems/1.8/doc/rubygems-1.3.4/rdoc
Oh-no! Unable to find release notes!
RubyGems installed the following executables:
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/gem
Try typing the following to determine which version of rubygems you
have installed:
gem -v
The current version is 1.3.1
I suspect you might have competing versions of rubygems or ruby
installed. You can find out which path is being used for each by
typing:
which ruby
which gem
Depending upon what you find, you may need to re-install rubygems from
scratch. If your gem path and ruby path vary (for example, ruby is /
usr/bin/ruby and rubygems are /usr/local/bin/gem) then I’d suggest
reinstalling rubygems like so:
That last line should mirror the full path to the ruby executable. So
if when you typed ‘which ruby’ it returned /usr/local/bin/ruby, then
you’d want to use that instead: