Help with Ruby Gems

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

Sue, try doing the following Rubygems:

sudo gem update --system

Furthermore, you should install all your gems using the following:

sudo gem install

Good luck,

-Conrad

Sent from my iPhone

On Jun 14, 2009, at 2:17 PM, Sue Lee <rails-mailing-list@andreas-

Conrad T. wrote:

Sue, try doing the following Rubygems:

sudo gem update --system

Furthermore, you should install all your gems using the following:

sudo gem install

Good luck,

-Conrad

Sent from my iPhone

On Jun 14, 2009, at 2:17 PM, Sue Lee <rails-mailing-list@andreas-

Thanks for answering.
Which Gem would I need to install if Webrick isn’t working?

Macintosh:~ sue$ sudo gem update --system
Updating RubyGems
Nothing to update
Macintosh:~ sue$ cd Desktop
Macintosh:Desktop sue$ cd rails_projects
Macintosh:rails_projects sue$ rails contactlist
exists
exists app/controllers
exists app/helpers
exists app/models
exists app/views/layouts
exists config/environments
exists config/initializers
exists config/locales
exists db
exists doc
exists lib
exists lib/tasks
exists log
exists public/images
exists public/javascripts
exists public/stylesheets
exists script/performance
exists test/fixtures
exists test/functional
exists test/integration
exists test/performance
exists test/unit
exists vendor
exists vendor/plugins
exists tmp/sessions
exists tmp/sockets
exists tmp/cache
exists tmp/pids
identical Rakefile
identical README
identical app/controllers/application_controller.r…
identical app/helpers/application_helper.rb
identical config/database.yml
identical config/routes.rb
identical config/locales/en.yml
identical config/initializers/backtrace_silencers…
identical config/initializers/inflections.rb
identical config/initializers/mime_types.rb
identical config/initializers/new_rails_defaults.r…
overwrite config/initializers/session_store.rb? (enter “h” for help)
[Ynaqdh] Y
force config/initializers/session_store.rb
identical config/environment.rb
identical config/boot.rb
identical config/environments/production.rb
identical config/environments/development.rb
identical config/environments/test.rb
identical script/about
identical script/console
identical script/dbconsole
identical script/destroy
identical script/generate
identical script/runner
identical script/server
identical script/plugin
identical script/performance/benchmarker
identical script/performance/profiler
identical test/test_helper.rb
identical test/performance/browsing_test.rb
identical public/404.html
identical public/422.html
identical public/500.html
identical public/index.html
identical public/favicon.ico
identical public/robots.txt
identical public/images/rails.png
identical public/javascripts/prototype.js
identical public/javascripts/effects.js
identical public/javascripts/dragdrop.js
identical public/javascripts/controls.js
identical public/javascripts/application.js
identical doc/README_FOR_APP
identical log/server.log
identical log/production.log
identical log/development.log
identical log/test.log
Macintosh:rails_projects sue$ cd contactlist
Macintosh:contactlist sue$ ruby script/server Webrick
Rails requires RubyGems >= . Please install RubyGems and try again:
http://rubygems.rubyforge.org

Sorry, the current version of rubygems is 1.3.4. You can adjust the
commands I suggested from 1.3.1 to 1.3.4.

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:

curl -O
http://rubyforge.iasi.roedu.net/files/rubygems/rubygems-1.3.1.tgz
tar xzvf rubygems-1.3.1.tgz
cd rubygems-1.3.1
sudo /usr/bin/ruby setup.rb

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:

sudo /usr/local/bin/ruby setup.rb

Hope this helps.

On Sun, Jun 14, 2009 at 7:04 PM, Sue Lee
[email protected]wrote:

Good luck,

exists app/views/layouts
exists public/stylesheets
exists tmp/cache
identical config/initializers/mime_types.rb
identical script/console
identical public/404.html
identical public/javascripts/application.js
Posted via http://www.ruby-forum.com/.

Sue, Webrick should have been installed with the Ruby installation.
Also,
you
should be able to do the following:

cd contactlist
ruby script/server webrick

Note: The ‘w’ in Webrick above should be in lower case when invoking on
the
command line.

Good luck,

-Conrad