#68 ✓resolved
Nick Plante

DoRb MySQL Bus Error On Leopard

Reported by Nick Plante | November 24th, 2007 @ 01:47 PM

Even when I have the ARCH env variable set correctly. Have also tried recompiling the do_mysql source on my local machine, to the same effect (of course, in that case, I'm probably just doing something wrong).

sudo env ARCHFLAGS="-arch i386" gem install do_mysql -- --with-mysql-config=/opt/local/bin/mysql_config5
Building native extensions.  This could take a while...
Successfully installed do_mysql-0.2.2
Installing ri documentation for do_mysql-0.2.2...
Installing RDoc documentation for do_mysql-0.2.2...

irb(main):001:0> require 'lib/data_mapper'
=> true
irb(main):002:0> 
irb(main):003:0* DataMapper::Database.setup({
irb(main):004:2*   :adapter => 'mysql',
irb(main):005:2*   :username => 'root',
irb(main):006:2*   :password => '',
irb(main):007:2*   :database => 'data_mapper_1'
irb(main):008:2> })

/opt/local/lib/ruby/gems/1.8/gems/do_mysql-0.2.2/lib/mysql_c.bundle: [BUG] Bus Error
ruby 1.8.6 (2007-03-13) [i686-darwin8.9.1]

Comments and changes to this ticket

  • Nick Plante

    Nick Plante November 24th, 2007 @ 01:52 PM

    • State changed from “new” to “open”

    if I do an explicit require 'mysql_c' everything works fine.

  • Nick Plante

    Nick Plante November 24th, 2007 @ 02:29 PM

    Btw, require 'do_mysql' generates the same bus error.

  • Sam Smoot

    Sam Smoot December 5th, 2007 @ 01:51 PM

    • Assigned user set to “Yehuda Katz”

    wycats?

  • Ben

    Ben December 11th, 2007 @ 09:29 PM

    I get the same error as the OP, and require 'mysql_c' generates the bus error for me as well.

  • Nick Plante

    Nick Plante December 11th, 2007 @ 11:21 AM

    I should note that this is no longer happening for me. After re-installing the gem again (same version, even) everything seems to work fine. Mysterious, but resolved. At least for me.

  • Ben

    Ben December 11th, 2007 @ 11:56 AM

    I reinstalled the do_mysql gem, also using different options/instruction from this page

    (google cache) ("original":http://blog.heimidal.net/2007/10/30/installing-datamapper-on-leopard)

    Here's a trace of the errors I'm getting:

    sudo rake --trace ADAPTER=mysql

    /opt/local/bin/rake:17:Warning: require_gem is obsolete. Use gem instead.

    (in /opt/local/lib/ruby/gems/1.8/gems/datamapper-0.2.4)

    ** Invoke default (first_time)

    ** Invoke dm:spec (first_time)

    ** Execute dm:spec

    /opt/local/lib/ruby/gems/1.8/gems/do_mysql-0.2.2/lib/mysql_c.bundle: [BUG] Bus Error

    ruby 1.8.6 (2007-03-13) [i686-darwin8.11.1]

    rake aborted!

    Command ruby -I"/opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib" "/opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/bin/spec" "spec/active_record_impersonation_spec.rb" "spec/acts_as_tree_spec.rb" "spec/associations_spec.rb" "spec/attributes_spec.rb" "spec/auto_migrations_spec.rb" "spec/base_spec.rb" "spec/callbacks_spec.rb" "spec/coersion_spec.rb" "spec/column_spec.rb" "spec/conditions_spec.rb" "spec/count_command_spec.rb" "spec/dataobjects_spec.rb" "spec/delete_command_spec.rb" "spec/dependency_spec.rb" "spec/embedded_value_spec.rb" "spec/legacy_spec.rb" "spec/load_command_spec.rb" "spec/magic_columns_spec.rb" "spec/natural_key_spec.rb" "spec/paranoia_spec.rb" "spec/property_spec.rb" "spec/query_spec.rb" "spec/save_command_spec.rb" "spec/schema_spec.rb" "spec/serialization_spec.rb" "spec/serialize_spec.rb" "spec/single_table_inheritance_spec.rb" "spec/support_spec.rb" "spec/symbolic_operators_spec.rb" "spec/table_spec.rb" "spec/validates_confirmation_of_spec.rb" "spec/validates_format_of_spec.rb" "spec/validates_length_of_spec.rb" "spec/validates_uniqueness_of_spec.rb" "spec/validations_spec.rb" --format specdoc --colour failed

    /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/rake/spectask.rb:166:in `define'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:823:in `verbose'

    /opt/local/lib/ruby/gems/1.8/gems/rspec-1.0.8/lib/spec/rake/spectask.rb:138:in `define'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `call'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `each'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:392:in `execute'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:362:in `invoke'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:369:in `invoke_prerequisites'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `send'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1003:in `each'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:368:in `invoke_prerequisites'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:361:in `invoke'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `synchronize'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:355:in `invoke'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `each'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1739:in `top_level'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1733:in `top_level'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1711:in `run'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1761:in `standard_exception_handling'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake.rb:1708:in `run'

    /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.3/bin/rake:7

    /opt/local/bin/rake:18:in `load'

    /opt/local/bin/rake:18

  • Ben

    Ben December 11th, 2007 @ 11:59 AM

    Oh, and I totally forgot to mention, I'm on OS X Tiger (10.4.11), so it's not just a Leopard problem.

  • Sam Smoot

    Sam Smoot December 27th, 2007 @ 10:46 AM

    • Milestone cleared.
    • Assigned user changed from “Yehuda Katz” to “Sam Smoot”

    I'll try and fix this today by releasing a new do_mysql gem without the .o file.

  • Sam Smoot

    Sam Smoot January 13th, 2008 @ 11:46 PM

    • State changed from “open” to “resolved”

    This is resolved in do_mysql 0.2.3.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages