Skip to content

Instantly share code, notes, and snippets.

@atambo
Created January 18, 2011 19:19
Show Gist options
  • Save atambo/784964 to your computer and use it in GitHub Desktop.
Save atambo/784964 to your computer and use it in GitHub Desktop.
Works on linux but NOT on windows:
source 'http://rubygems.org'
gem 'rails', '3.0.3'
gem 'activerecord-jdbcmysql-adapter'
In order to work on windows I need this:
source 'http://rubygems.org'
gem 'rails', '3.0.3'
gem 'jruby-openssl'
gem 'jdbc-mysql'
gem 'activerecord-jdbc-adapter'
gem 'activerecord-jdbcmysql-adapter'
backtrace:
C:\scrapple>rake db:create RAILS_ENV=production --trace
(in C:/scrapple)
** Invoke db:create (first_time)
** Invoke db:load_config (first_time)
** Invoke rails_env (first_time)
** Execute rails_env
** Execute db:load_config
** Execute db:create
rake aborted!
uninitialized constant Mysql::Error
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/activerecord-3.0.3/lib/active_record/railt
ies/databases.rake:64:in `create_database'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/activerecord-3.0.3/lib/active_record/railt
ies/databases.rake:35
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with
_call_chain'
c:/jruby-1.5.6/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with
_call_chain'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_tas
k'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_e
xception_handling'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_e
xception_handling'
c:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
C:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/jruby-1.5.6/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:19:in `load'
c:\jruby-1.5.6\bin\rake:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment