This project is archived and is in readonly mode.
Segmentation fault on 1.8.7 patchlevel 249 on xampp
Reported by Calum MacLeod | June 24th, 2010 @ 09:37 AM
Cannot create even the most simple project. The Welcome Aboard screen shows up alright but when I try to create via Windows 7 console the following:
ruby script/generate scaffold person title:string forenames:string surname:string parish_id:string
the outcome is as shown below.
c:\xampp\htdocs\church>rake db:migrate
(in c:/xampp/htdocs/church)
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activesupport-2.3.8/lib/active_support/vend
or/i18n-0.3.7/i18n/core_ext/string/interpolate.rb:91: [BUG]
Segmentation fault
ruby 1.8.7 (2010-01-10 patchlevel 249) [i386-mingw32]
Any advice would be welcome :)
Thanks,
Calum
Comments and changes to this ticket
-
Damien MATHIEU June 24th, 2010 @ 09:39 AM
Could you provide the entire backtrace ?
You'll get it withrake db:migrate --trace
-
Calum MacLeod June 24th, 2010 @ 09:49 AM
c:\xampp\htdocs\church>rake db:migrate --trace
(in c:/xampp/htdocs/church) Invoke db:migrate (first_time) Invoke environment (first_time) Execute environment Execute db:migrate rake aborted!
Mysql::Error: query: not connected: CREATE TABLEschema_migrations
(version
varchar(255) NOT NULL) ENGINE=InnoDB
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec
tion_adapters/abstract_adapter.rb:221:inlog'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec<br/> tion_adapters/mysql_adapter.rb:323:in
execute'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec
tion_adapters/abstract/schema_statements.rb:109:increate_table'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec<br/> tion_adapters/mysql_adapter.rb:477:in
create_table'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/connec
tion_adapters/abstract/schema_statements.rb:369:ininitialize_schema_migrations<br/> _table'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat<br/> ion.rb:441:in
initialize'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat
ion.rb:401:innew'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat<br/> ion.rb:401:in
up'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/activerecord-2.3.8/lib/active_record/migrat
ion.rb:383:inmigrate'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rails-2.3.8/lib/tasks/databases.rake:112<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in
call'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:inexecute'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in
each'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:inexecute'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in
invoke_with
call_chain'
C:/xampp/ruby/lib/ruby/1.8/monitor.rb:242:insynchronize'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in
invoke_with
call_chain'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:ininvoke'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in
invoke_task
' C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in
each'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:intop_level'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
standard_ex
ception_handling'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:intop_level'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in
run'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:instandard_ex<br/> ception_handling'<br/> C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in
run'
C:/xampp/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
C:/xampp/ruby/bin/rake:19:inload'<br/> C:/xampp/ruby/bin/rake:19
-
Rohit Arondekar June 24th, 2010 @ 10:06 AM
I don't know if this is still relevant but you could try the solution provided in this blog post -> http://halyph.blogspot.com/2009/08/rails-23-migration-issues-with-m...
If it does work please update this ticket so that it can be closed.
-
Calum MacLeod June 24th, 2010 @ 10:15 AM
I downloaded the older libmySQL.dll and put it in c:\xampp\ruby\bin as advised in the post mentioned by Rohit Arondekar.
Then, I merely issued the "rake db:migrate" command once more and it worked, straight away.
Thanks, Rohit and HalypH !
Calum
This ticket should now be closed.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>