georgiev / rubyfb

ruby/rails Firebird db access library
Other
16 stars 5 forks source link

dyld: lazy symbol binding failed: Symbol not found: _isc_attach_database #8

Closed vitamino closed 12 years ago

vitamino commented 12 years ago

Trying to solve this issue I tested another configuration:

rails 3.1 activerecord 3.1.0 ruby 1.8.7 / 1.9.2 rubyfb 0.6.2

The adaptor is found but on the connection I get this error (using both ruby versions):

ruby-1.9.2-p290 :001 > ActiveRecord::Base.establish_connection(:firebird)
 => #<ActiveRecord::ConnectionAdapters::ConnectionPool:0x00000102dfe140 @spec=#<ActiveRecord::Base::ConnectionSpecification:0x00000102dfe280 @config={:adapter=>"rubyfb", :database=>"d:\\database\\mydatabase.gdb", :username=>"sysdba", :password=>"xxxxxxx", :host=>"123.456.789.000"}, @adapter_method="rubyfb_connection">, @reserved_connections={}, @connection_mutex=#<Monitor:0x00000102dfdec0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000102dfdd80>>, @queue=#<MonitorMixin::ConditionVariable:0x00000102dfdce0 @monitor=#<Monitor:0x00000102dfdec0 @mon_owner=nil, @mon_count=0, @mon_mutex=#<Mutex:0x00000102dfdd80>>, @cond=#<ConditionVariable:0x00000102dfdc90 @waiters=[], @waiters_mutex=#<Mutex:0x00000102dfdc18>>>, @timeout=5, @size=5, @connections=[], @checked_out=[], @automatic_reconnect=true, @tables={}, @visitor=nil, @columns={}, @columns_hash={}, @column_defaults={}, @primary_keys={}> 
ruby-1.9.2-p290 :002 > class Item < ActiveRecord::Base
ruby-1.9.2-p290 :003?>   set_table_name "items"
ruby-1.9.2-p290 :004?>   end
dyld: lazy symbol binding failed: Symbol not found: _isc_attach_database
  Referenced from: /Users/xx/.rvm/gems/ruby-1.9.2-p290/gems/rubyfb-0.6.2/lib/rubyfb_lib.bundle
  Expected in: flat namespace

dyld: Symbol not found: _isc_attach_database
  Referenced from: /Users/xx/.rvm/gems/ruby-1.9.2-p290/gems/rubyfb-0.6.2/lib/rubyfb_lib.bundle
  Expected in: flat namespace

Trace/BPT trap
georgiev commented 12 years ago

Ok - now it looks like we may have flat vs. two-level namespace problem

georgiev commented 12 years ago

See issue #7 discussion for details and resolution