# NB 6.5, OS/X, Rails Gem Version error

**URL:** <https://www.ruby-forum.com/t/nb-6-5-os-x-rails-gem-version-error/160043>\
**Category:** Rails\
**Created:** [February 11, 2009, 10:00am UTC](https://www.ruby-forum.com/t/nb-6-5-os-x-rails-gem-version-error/160043 "2009-02-11T10:00:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elmo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e480ec/32.png) [@elmo](https://www.ruby-forum.com/u/elmo)\
**Post date:** [February 11, 2009, 10:00am UTC](https://www.ruby-forum.com/t/nb-6-5-os-x-rails-gem-version-error/160043/1 "2009-02-11T10:00:10Z")

</div>

I am getting the following error message when I attempt to start  
WEBRick:

Missing the Rails 2.1.1 gem. Please `gem install -v=2.1.1 rails`,  
update your RAILS\_GEM\_VERSION setting in config/environment.rb for the  
Rails version you do have installed, or comment out RAILS\_GEM\_VERSION  
to use the latest version installed.

I tried commenting out the RAILS\_GEM\_VERSION and it doesn’t do  
_anything_ at all. The problem is that I can start the application via  
the command line just fine. I am not using jRuby, but instead compiled  
and installed my own version of Ruby, Gem, and Rails into /usr/local/  
and am using that pathing for all the tools (at least on commandline -  
I don’t know if Netbeans is ignoring the PATH).

On my Linux box the same source tree works fine and runs WEBRick. I  
saw the following message in this google group, BUT where is ruby2/  
rake\_tasks\_info.rb I only have an executable file on the Mac:  
[http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/66e1d63500831760](http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/66e1d63500831760)

---

<div class="post-metadata">

**Author:** ![elmo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/e480ec/32.png) [@elmo](https://www.ruby-forum.com/u/elmo)\
**Post date:** [February 11, 2009, 11:30am UTC](https://www.ruby-forum.com/t/nb-6-5-os-x-rails-gem-version-error/160043/2 "2009-02-11T11:30:07Z")

</div>

well.  
Do as the error tells you to  
You need to install a specific version of rails…version 2.1.1

This is done by:  
gem install -v=2.1.1 rails

🙂
