Help with Ruby Gems...

Sue, try doing the following Rubygems:

sudo gem update --system

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

sudo gem install <name-of-the-gem>

Good luck,

-Conrad

Conrad Taylor wrote:

Sue, try doing the following Rubygems:

sudo gem update --system

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

sudo gem install <name-of-the-gem>

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

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.

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.

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