MySQL2 error with RubyMine - ruby-on-rails-3

This is the error message:
/Users/JasonJiang/.rvm/rubies/ruby-1.9.2-p290/bin/ruby -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) /Users/JasonJiang/RubymineProjects/untitled6/script/rails server -b 0.0.0.0 -p 3000 -e development
/Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.7/lib/mysql2.rb:9:in `require': dlopen(/Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib (LoadError)
Referenced from: /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle
Reason: image not found - /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.7/lib/mysql2/mysql2.bundle
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/mysql2-0.3.7/lib/mysql2.rb:9:in `<top (required)>'
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/runtime.rb:68:in `require'
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/runtime.rb:66:in `each'
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/runtime.rb:66:in `block in require'
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/runtime.rb:55:in `each'
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler/runtime.rb:55:in `require'
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/bundler-1.1.rc/lib/bundler.rb:128:in `require'
from /Users/JasonJiang/RubymineProjects/untitled6/config/application.rb:7:in `<top (required)>'
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:52:in `require'
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:52:in `block in <top (required)>'
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:49:in `tap'
from /Users/JasonJiang/.rvm/gems/ruby-1.9.2-p290/gems/railties-3.1.1/lib/rails/commands.rb:49:in `<top (required)>'
from /Users/JasonJiang/RubymineProjects/untitled6/script/rails:6:in `require'
from /Users/JasonJiang/RubymineProjects/untitled6/script/rails:6:in `<top (required)>'
from -e:1:in `load'
from -e:1:in `<main>'
Process finished with exit code 1
Thanks all!

I solved this by opening up my project in the terminal using the /usr/local/bin/mine command. e.g.
mine .
For some reason, RubyMine isn't using the same environment one uses when just running 'rake test' from the command line (even though it uses the right .rvm version).

Related

Ruby On Rails server initiation errors

I have been following the tutorial on how to learn Ruby On Rails basics. I have installed the latest 2.2.3 version and ran "gem install rails". I have successfully created a new project, but I have got an error when tried to run a server with "rails server" command. I received these errors:
C:\Users\Kothas\Desktop\rubyonrails\myproject>rails server
c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x64-mingw32/lib/sqlite3.r:6:in `require': cannot load such file -- sqlite3/sqlite3_native (LoadError)
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x64-mingw32/ib/sqlite3.rb:6:in `rescue in <top (required)>'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/sqlite3-1.3.10-x64-mingw32/lib/sqlite3.rb:2:in `<top (required)>'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/
untime.rb:76:in `require'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/
untime.rb:76:in `block (2 levels) in require'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/
untime.rb:72:in `each'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/
untime.rb:72:in `block in require'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/
untime.rb:61:in `each'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler/
untime.rb:61:in `require'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/bundler-1.10.6/lib/bundler.
b:134:in `require'
from C:/Users/Kothas/Desktop/rubyonrails/myproject/config/application.r
:7:in `<top (required)>'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/co
mands/commands_tasks.rb:78:in `require'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/co
mands/commands_tasks.rb:78:in `block in server'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/co
mands/commands_tasks.rb:75:in `tap'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/co
mands/commands_tasks.rb:75:in `server'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/co
mands/commands_tasks.rb:39:in `run_command!'
from c:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/railties-4.2.3/lib/rails/co
mands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
How can I fix these problems and start my application?
EDIT
I managed to fix sqlite3 errors, but the new ones showed
"cannot load such file -- nokogirl (LoadError)"
It looks like your application is having difficulty accessing your sqlite installation through the sqlite3 gem - try this answer: cannot load such file -- sqlite3/sqlite3_native (LoadError) on ruby on rails

Error on db:migrate

I am trying to modify a rails app built on an another computer ,I ran bundle install
and all gems got installed.But when I run rake db:migrate ,it throws down a bunch of errors ,I am new to rail and cant understand what those error messages
rake aborted!
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so: undefined symbol: ruby_current_thread - /home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug-base19-0.11.25/lib/ruby_debug.so
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in `require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug-base19-0.11.25/lib/ruby-debug-base.rb:1:in `<top (required)>'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:5:in `require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/ruby-debug19-0.11.6/cli/ruby-debug.rb:5:in `<top (required)>'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `each'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `block in require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `each'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#global/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
/home/diadara/hw3_rottenpotatoes/config/application.rb:13:in `<top (required)>'
/home/diadara/hw3_rottenpotatoes/Rakefile:5:in `require'
/home/diadara/hw3_rottenpotatoes/Rakefile:5:in `<top (required)>'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/bin/rake:19:in `<main>'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/bin/ruby_noexec_wrapper:14:in `eval'
/home/diadara/.rvm/gems/ruby-1.9.3-p374#saasrails3.1/bin/ruby_noexec_wrapper:14:in `<main>'
it looks like you did not properly install ruby-debug in your project. remove it from the gemfile if it is not needed or have a look at this answer to fix it: Cannot use ruby-debug19 with 1.9.3-p0?

PostgreSQL installation with existing Ruby on Rails app

I am on Mac OSX lion and am new to Ruby on Rails programming, so bear with me.
I'm trying to work on a teammates' Ruby on Rails app, but it requires that I have PostgreSQL installed. I installed it with Postgres.app (version 9.2.2). However, when I run rails server, I get the following error.
/Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require': dlopen(/Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/pg-0.14.1/lib/pg_ext.bundle, 9): Library not loaded: /usr/lib/libpq.5.dylib (LoadError)
Referenced from: /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/pg-0.14.1/lib/pg_ext.bundle
Reason: image not found - /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/pg-0.14.1/lib/pg_ext.bundle
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `block in require'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:236:in `load_dependency'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/activesupport-3.2.11/lib/active_support/dependencies.rb:251:in `require'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/pg-0.14.1/lib/pg.rb:4:in `<top (required)>'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `require'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.3/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `each'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.3/lib/bundler/runtime.rb:66:in `block in require'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `each'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.3/lib/bundler/runtime.rb:55:in `require'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/bundler-1.2.3/lib/bundler.rb:128:in `require'
from /Users/kevin/Documents/photowhoa/config/application.rb:13:in `<top (required)>'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.11/lib/rails/commands.rb:53:in `require'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.11/lib/rails/commands.rb:53:in `block in <top (required)>'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.11/lib/rails/commands.rb:50:in `tap'
from /Users/kevin/.rvm/gems/ruby-1.9.3-p125/gems/railties-3.2.11/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
I've already tried uninstalling and reinstalling the PG gem. If anyone can help me, that would be extremely appreciated.
Same problem. Rake can't find Postgres library.
This fixes the problem:
export DYLD_LIBRARY_PATH=/Library/PostgreSQL/9.2/lib
Adjust path to lib to match yours.

Running bundle exec cucumber is fine, but just running cucumber doesn't work

I'm using cucumber 1.0 installed with cucumber-rails on Rails 3. I'd like to use autotest, but it seems autotest invokes cucumber with just cucumber and not bundle exec cucumber . bundle exec cucumber works fine for me, but when I run it with just cucumber, I get:
Using the default profile...
uninitialized constant Diff::ReadableDiffer (NameError)
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/rake-0.9.2/lib/rake/ext/module.rb:36:in `const_missing'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/test-unit-2.3.0/lib/test/unit/ui/console/testrunner.rb:336:in `<module:Console>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/test-unit-2.3.0/lib/test/unit/ui/console/testrunner.rb:17:in `<module:UI>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/test-unit-2.3.0/lib/test/unit/ui/console/testrunner.rb:16:in `<module:Unit>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/test-unit-2.3.0/lib/test/unit/ui/console/testrunner.rb:15:in `<module:Test>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/test-unit-2.3.0/lib/test/unit/ui/console/testrunner.rb:14:in `<top (required)>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/redgreen-1.2.2/lib/redgreen.rb:2:in `<top (required)>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `require'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `each'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:66:in `block in require'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `each'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler/runtime.rb:55:in `require'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/bundler-1.0.15/lib/bundler.rb:120:in `require'
/Users/Mike/Projects/exlab/config/application.rb:7:in `<top (required)>'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
/Users/Mike/Projects/exlab/config/environment.rb:2:in `<top (required)>'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in `require'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-rails-1.0.2/lib/cucumber/rails.rb:5:in `<top (required)>'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `require'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:58:in `rescue in require'
/Users/Mike/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
/Users/Mike/Projects/exlab/features/support/env.rb:7:in `<top (required)>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/rb_support/rb_language.rb:143:in `load'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/rb_support/rb_language.rb:143:in `load_code_file'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime/support_code.rb:176:in `load_file'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime/support_code.rb:78:in `block in load_files!'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime/support_code.rb:77:in `each'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime/support_code.rb:77:in `load_files!'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime.rb:137:in `load_step_definitions'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/runtime.rb:39:in `run!'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/cli/main.rb:43:in `execute!'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/lib/cucumber/cli/main.rb:20:in `execute'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/gems/cucumber-1.0.1/bin/cucumber:14:in `<top (required)>'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/bin/cucumber:19:in `load'
/Users/Mike/.rvm/gems/ruby-1.9.2-p180#rails3/bin/cucumber:19:in `<main>'
Any clues?
It might be a problem with TestUnit being replaced by MiniTest in Ruby1.9. You could solve it adding this to your Gemfile:
group :development do
gem 'test-unit', '~> 2.0.0'
end

Rails error: `rescue in <top (required)>': uninitialized constant Bundler (NameError)

Earlier today I updated gems on my system with:
gem update
It updated few gems but after that I can't start my rails server, I get this error:
/Users/gugguson/rubys/my_rails_app/config/boot.rb:9:in `rescue in <top (required)>': uninitialized constant Bundler (NameError)
from /Users/gugguson/rubys/my_rails_app/config/boot.rb:5:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from script/rails:5:in `<main>'
If I create a new app with:
rails new test99
... and then go into the folder and run rails server s I get this error:
[~/rubys/test99] rails s
<internal:gem_prelude>:168:in `load_full_rubygems_library': undefined local variable or method `path' for Gem::QuickLoader:Module (NameError)
from /Users/gugguson/.rvm/gems/ruby-head/gems/bundler-1.0.10/lib/bundler/rubygems_ext.rb:5:in `<top (required)>'
from /Users/gugguson/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/gugguson/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/gugguson/.rvm/gems/ruby-head/gems/bundler-1.0.10/lib/bundler.rb:11:in `<top (required)>'
from /Users/gugguson/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/gugguson/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/gugguson/.rvm/gems/ruby-head/gems/bundler-1.0.10/lib/bundler/setup.rb:4:in `<top (required)>'
from /Users/gugguson/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:53:in `require'
from /Users/gugguson/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:53:in `rescue in require'
from /Users/gugguson/.rvm/rubies/ruby-head/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from /Users/gugguson/rubys/test99/config/boot.rb:6:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from script/rails:5:in `<main>'
Any ideas?
Thanks,
Johann
As lebreeze said, try updating rubygems with gem update --system. Looks like there were some issues and that they were fixed in recent versions.