You, nailed it. I checked out my .bash_login file and it had everything looking to usr/local/bin, so i added the following line to the bottom of it:
export PATH="/usr/bin:$PATH" Now the .bash_login file looks like this: export PATH="/usr/local/bin:/usr/local/sbin:$PATH" export NETCDFHOME=/Users/josh/GMT/netcdf-3.6.1 export GMTHOME=/Users/josh/GMT/GMT4.1.3 export PATH=/Users/josh/GMT/GMT4.1.3/bin:$PATH export PATH=/opt/local/bin:/opt/local/sbin:$PATH export DISPLAY=:0.0 #export GEM_PATH=/opt/local/lib/ruby/gems/1.8 #export GEM_HOME=/opt/local/lib/ruby/gems/1.8 export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH" export PATH="/usr/bin:$PATH" And balance has been restored to The Force! Thanks, everyone for helping me slay this demon! - Kris On Tue, Dec 16, 2008 at 5:57 PM, John Parker <[email protected]> wrote: > > I think the path for your rake explain the problem. If you do a "type > ruby" I think you will find similar results (/usr/local/bin/ruby). Was > your MacPorts installation installing into /usr/local by any chance? > > You should see a rake executable (and ruby, irb, etc.) in /usr/bin. > Those versions are going to use the system version of rubygems which, > based on your prior posting of the "gem env" output, is the version of > rubygems you've been using to install rails. But /usr/local/bin > probably appears in your PATH before /usr/bin, which means the version > of rake (and ruby, irb, etc.) you are using doesn't use the same > version of rubygems that you've been using. > > Try setting aside the rake (and ruby) executables in /usr/local/bin. > After doing so, run "type rake" to make sure you will be using > /usr/bin/rake. Then try running your rake tasks, script/console, etc. > > -John > > On Tue, Dec 16, 2008 at 4:01 PM, Kristopher Schlesser > <[email protected]> wrote: > > ./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] > >> > >> > > > > > > > > > > > > > -- > John Parker > [email protected] > > > > --~--~---------~--~----~------------~-------~--~----~ SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby -~----------~----~----~----~------~----~------~--~---
