# Help with Ruby Gems

**URL:** <https://www.ruby-forum.com/t/help-with-ruby-gems/170246>\
**Category:** Rails\
**Created:** [June 14, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/help-with-ruby-gems/170246 "2009-06-14T23:17:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![suelee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ea924/32.png) [@suelee](https://www.ruby-forum.com/u/suelee)\
**Post date:** [June 14, 2009, 11:17pm UTC](https://www.ruby-forum.com/t/help-with-ruby-gems/170246/1 "2009-06-14T23:17:14Z")

</div>

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](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

---

<div class="post-metadata">

**Author:** ![suelee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ea924/32.png) [@suelee](https://www.ruby-forum.com/u/suelee)\
**Post date:** [June 15, 2009, 12:26am UTC](https://www.ruby-forum.com/t/help-with-ruby-gems/170246/2 "2009-06-15T00:26:38Z")

</div>

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-

---

<div class="post-metadata">

**Author:** ![suelee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ea924/32.png) [@suelee](https://www.ruby-forum.com/u/suelee)\
**Post date:** [June 15, 2009, 4:04am UTC](https://www.ruby-forum.com/t/help-with-ruby-gems/170246/3 "2009-06-15T04:04:41Z")

</div>

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](http://rubygems.rubyforge.org)

---

<div class="post-metadata">

**Author:** ![suelee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ea924/32.png) [@suelee](https://www.ruby-forum.com/u/suelee)\
**Post date:** [June 15, 2009, 4:31am UTC](https://www.ruby-forum.com/t/help-with-ruby-gems/170246/4 "2009-06-15T04:31:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![suelee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ea924/32.png) [@suelee](https://www.ruby-forum.com/u/suelee)\
**Post date:** [June 15, 2009, 4:27am UTC](https://www.ruby-forum.com/t/help-with-ruby-gems/170246/5 "2009-06-15T04:27:39Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![suelee](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/7ea924/32.png) [@suelee](https://www.ruby-forum.com/u/suelee)\
**Post date:** [June 15, 2009, 7:53pm UTC](https://www.ruby-forum.com/t/help-with-ruby-gems/170246/6 "2009-06-15T19:53:54Z")

</div>

On Sun, Jun 14, 2009 at 7:04 PM, Sue Lee  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)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/](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
