sudo gem list returns the following: *** LOCAL GEMS *** > > actionmailer (2.2.2, 2.1.1, 1.3.6) > actionpack (2.2.2, 2.1.1, 1.13.6) > actionwebservice (1.2.6) > activerecord (2.2.2, 2.1.1, 1.15.6) > activeresource (2.2.2, 2.1.1) > activesupport (2.2.2, 2.1.1, 1.4.4) > acts_as_ferret (0.4.3, 0.4.1) > capistrano (2.5.2, 2.5.0, 2.0.0) > cgi_multipart_eof_fix (2.5.0, 2.2) > daemons (1.0.10, 1.0.9, 1.0.7) > dnssd (0.7.0, 0.6.0) > fastthread (1.0.1, 1.0) > fcgi (0.8.7) > ferret (0.11.6, 0.11.4) > gem_plugin (0.2.3, 0.2.2) > highline (1.5.0, 1.4.0, 1.2.9) > hoe (1.8.2, 1.7.0) > hpricot (0.6.164, 0.6.161, 0.6) > image_science (1.1.3) > libxml-ruby (0.9.5, 0.8.3, 0.3.8.4) > mongrel (1.1.5, 1.1.4, 1.0.1) > mysql (2.7) > needle (1.3.0) > net-scp (1.0.1) > net-sftp (2.0.1, 1.1.0) > net-ssh (2.0.4, 1.1.2) > net-ssh-gateway (1.0.0) > rails (2.2.2, 2.1.1, 1.2.6) > rake (0.8.3, 0.7.3) > RedCloth (4.1.1, 4.0.4, 3.0.4) > ruby-openid (2.1.2, 1.1.4) > ruby-yadis (0.3.4) > rubyforge (1.0.1, 1.0.0) > rubygems-update (1.3.1, 1.3.0) > RubyInline (3.8.1, 3.7.0) > rubynode (0.1.5, 0.1.3) > sqlite3-ruby (1.2.4, 1.2.1) > termios (0.9.4) > thoughtbot-factory_girl (1.1.3) > ZenTest (3.11.0) >
On Tue, Dec 16, 2008 at 12:26 PM, Bradly <[email protected]> wrote: > You may have installed the rails gem for your user, but your app isn't > being ran by that user so it isn't seeing the gem. Try doing a sudo gem list > and see if the rails gem is listed. > > Brad Feeley > http://www.bradlyfeeley.com > > > > On Tue, Dec 16, 2008 at 11:53 AM, Kristopher Schlesser < > [email protected]> wrote: > >> I pasted the result from running "gem env" below. >> >> Honestly, I'm not sure if I'm running the default installed Ruby or >> MacPorts. How can I tell? >> >> At one point I tried using MacPorts to install/administer some other >> stuff, but I ran into all sorts of issues, so I uninstalled MacPorts and >> have been trying to get everything back to the default. I've suspected for >> some time that my brief stint w/ MacPorts might be the source of my heart >> ache. >> >> >>> RubyGems Environment: >>> - RUBYGEMS VERSION: 1.3.1 >>> - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] >>> - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 >>> - RUBY EXECUTABLE: >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby >>> - EXECUTABLE DIRECTORY: /usr/bin >>> - RUBYGEMS PLATFORMS: >>> - ruby >>> - universal-darwin-9 >>> - GEM PATHS: >>> - /Library/Ruby/Gems/1.8 >>> - /Users/josh/.gem/ruby/1.8 >>> - >>> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 >>> - GEM CONFIGURATION: >>> - :update_sources => true >>> - :verbose => true >>> - :benchmark => false >>> - :backtrace => false >>> - :bulk_threshold => 1000 >>> - REMOTE SOURCES: >>> - http://gems.rubyforge.org/ >>> >> >> >> On Tue, Dec 16, 2008 at 11:41 AM, Ryan Felton <[email protected]>wrote: >> >>> What does running "gem env" give you? >>> Are u using the default installed Ruby or MacPorts ? >>> >>> Ryan >>> >>> On Dec 16, 2008, at 12:16 PM, Kristopher Schlesser wrote: >>> >>> Hi everyone, >>> >>> I've been having some painful issues w/ my local Rails environment, which >>> is running on a Mac Pro OSX 10.5.5 >>> >>> Specifically, I'm trying to create a database by running rake db:create. >>> When I try to run that command I get the following error: >>> >>> Missing the Rails gem. Please `gem install -v= 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've done the gem install -v=rails for v.2.2.2. And I even tried >>> installing v.2.1.1 (just to see if that would work). And I tried commenting >>> out RAILS_GEM_VERSION, but no dice. I keep getting the same error. >>> >>> Has anyone ever had this problem and/or have an idea as to how to resolve >>> it? Any help is greatly appreciated. >>> >>> Happy Holidays to all, >>> >>> Kris >>> >>> >>> >>> >>> >>> >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
