./script/console returns the following: 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. >
"type rake" returns the following: rake is hashed (/usr/local/bin/rake) > On Tue, Dec 16, 2008 at 1:36 PM, John Parker <[email protected]> wrote: > > From the paths listed in your "gem env" output (/System/Library/...), > I'd say you're using the version installed with OS X rather than a > MacPorts install. > > Do you run into this error when not using rake, e.g., can you run > ./script/console successfully? > > Also, what is the path of your rake executable? (Run "type rake" to see). > > -John > > 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 > >> > >> > >> > >> > >> > > > > > > > > > > > > > -- > John Parker > [email protected] > > > > --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
