Hi I have following problem using command C:\myApp\rake db:create. If any one can helpe me. thank you in advance regards (in C:/myApp) uninitialized constant Encoding C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependenci es.rb:443:in `load_missing_constant'' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependenci es.rb:80:in `const_missing'' C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependenci es.rb:92:in `const_missing'' C:/ruby/lib/ruby/gems/1.8/gems/sqlite3-0.0.6/lib/sqlite3/encoding.rb:9:in `find'' C:/ruby/lib/ruby/gems/1.8/gems/sqlite3-0.0.6/lib/sqlite3/database.rb:69:in `init ialize'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/sqlite3_adapter.rb:13:in `new'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/sqlite3_adapter.rb:13:in `sqlite3_connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/abstract/connection_pool.rb:223:in `send'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/abstract/connection_pool.rb:223:in `new_connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/abstract/connection_pool.rb:245:in `checkout_new_connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/abstract/connection_pool.rb:188:in `checkout'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/abstract/connection_pool.rb:184:in `loop'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/abstract/connection_pool.rb:184:in `checkout'' C:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/abstract/connection_pool.rb:183:in `checkout'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/abstract/connection_pool.rb:98:in `connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/abstract/connection_pool.rb:326:in `retrieve_connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/abstract/connection_specification.rb:123:in `retrieve_connection'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a dapters/abstract/connection_specification.rb:115:in `connection'' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/databases.rake:43:in `creat e_database'' C:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/databases.rake:31 C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_c hain'' C:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_c hain'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exceptio n_handling'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exceptio n_handling'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'' C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 C:/ruby/bin/rake:19:in `load'' C:/ruby/bin/rake:19 Couldn''t create database for {"adapter"=>"sqlite3", "timeout"=>5000, "database">"db/development.sqlite3", "pool"=>5} -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I think you might have the sqlite gem but not the actual sqlite libraries installed. On Thu, Feb 18, 2010 at 9:52 AM, Bhupendra Mishra <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> Hi I have following problem using command C:\myApp\rake db:create. > If any one can helpe me. > thank you in advance > regards > > (in C:/myApp) > uninitialized constant Encoding > > C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependenci > es.rb:443:in `load_missing_constant'' > > C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependenci > es.rb:80:in `const_missing'' > > C:/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependenci > es.rb:92:in `const_missing'' > C:/ruby/lib/ruby/gems/1.8/gems/sqlite3-0.0.6/lib/sqlite3/encoding.rb:9:in > `find'' > > C:/ruby/lib/ruby/gems/1.8/gems/sqlite3-0.0.6/lib/sqlite3/database.rb:69:in > `init > ialize'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/sqlite3_adapter.rb:13:in `new'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/sqlite3_adapter.rb:13:in `sqlite3_connection'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/abstract/connection_pool.rb:223:in `send'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/abstract/connection_pool.rb:223:in `new_connection'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/abstract/connection_pool.rb:245:in `checkout_new_connection'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/abstract/connection_pool.rb:188:in `checkout'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/abstract/connection_pool.rb:184:in `loop'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/abstract/connection_pool.rb:184:in `checkout'' > C:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/abstract/connection_pool.rb:183:in `checkout'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/abstract/connection_pool.rb:98:in `connection'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/abstract/connection_pool.rb:326:in `retrieve_connection'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/abstract/connection_specification.rb:123:in > `retrieve_connection'' > > C:/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.5/lib/active_record/connection_a > dapters/abstract/connection_specification.rb:115:in `connection'' > C:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/databases.rake:43:in > `creat > e_database'' > C:/ruby/lib/ruby/gems/1.8/gems/rails-2.3.5/lib/tasks/databases.rake:31 > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in > `invoke_with_call_c > hain'' > C:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in > `invoke_with_call_c > hain'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in > `invoke_task'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in > `top_level'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in > `top_level'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exceptio > n_handling'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in > `top_level'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in > `standard_exceptio > n_handling'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'' > C:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 > C:/ruby/bin/rake:19:in `load'' > C:/ruby/bin/rake:19 > Couldn''t create database for {"adapter"=>"sqlite3", "timeout"=>5000, > "database"> >"db/development.sqlite3", "pool"=>5} > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ben Wiseley wrote:> I think you might have the sqlite gem but not the actual sqlite > libraries > installed.I m trying to intall as.. ---- C:\ruby\bin>ruby gem install sqlite3 Building native extensions. This could take a while... ERROR: Error installing sqlite3: ERROR: Failed to build gem native extension. C:/ruby/bin/ruby.exe extconf.rb checking for rb_thread_blocking_region()... no creating extconf.h creating Makefile make ''make'' is not recognized as an internal or external command, operable program or batch file. Gem files will remain installed in C:/ruby/lib/ruby/gems/1.8/gems/ffi-0.6.2 for inspection. Results logged to C:/ruby/lib/ruby/gems/1.8/gems/ffi-0.6.2/ext/ffi_c/gem_make.ou t -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Sorry - can''t be of more help - I''m a Mac user - I just ran into a similar error when setting up my new mac until I installed sqlite3 On Thu, Feb 18, 2010 at 10:03 AM, Bhupendra Mishra <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote:> Ben Wiseley wrote: > > I think you might have the sqlite gem but not the actual sqlite > > libraries > > installed. > > > I m trying to intall as.. > ---- > C:\ruby\bin>ruby gem install sqlite3 > Building native extensions. This could take a while... > ERROR: Error installing sqlite3: > ERROR: Failed to build gem native extension. > > C:/ruby/bin/ruby.exe extconf.rb > checking for rb_thread_blocking_region()... no > creating extconf.h > creating Makefile > > make > ''make'' is not recognized as an internal or external command, > operable program or batch file. > > > Gem files will remain installed in > C:/ruby/lib/ruby/gems/1.8/gems/ffi-0.6.2 for > inspection. > Results logged to > C:/ruby/lib/ruby/gems/1.8/gems/ffi-0.6.2/ext/ffi_c/gem_make.ou > t > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
try this gem gem install sqlite3-ruby -v=1.2.3 On Thu, Feb 18, 2010 at 12:06 PM, ben wiseley <wiseleyb-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sorry - can''t be of more help - I''m a Mac user - I just ran into a similar > error when setting up my new mac until I installed sqlite3 > > > On Thu, Feb 18, 2010 at 10:03 AM, Bhupendra Mishra <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org>wrote: > >> Ben Wiseley wrote: >> > I think you might have the sqlite gem but not the actual sqlite >> > libraries >> > installed. >> >> >> I m trying to intall as.. >> ---- >> C:\ruby\bin>ruby gem install sqlite3 >> Building native extensions. This could take a while... >> ERROR: Error installing sqlite3: >> ERROR: Failed to build gem native extension. >> >> C:/ruby/bin/ruby.exe extconf.rb >> checking for rb_thread_blocking_region()... no >> creating extconf.h >> creating Makefile >> >> make >> ''make'' is not recognized as an internal or external command, >> operable program or batch file. >> >> >> Gem files will remain installed in >> C:/ruby/lib/ruby/gems/1.8/gems/ffi-0.6.2 for >> inspection. >> Results logged to >> C:/ruby/lib/ruby/gems/1.8/gems/ffi-0.6.2/ext/ffi_c/gem_make.ou >> t >> -- >> Posted via http://www.ruby-forum.com/. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.