okee, i've reinstalled the gem, usr/local/mysql/bin/mysql_config is the correct path.
---------------- $ gem install mysql2 -- --with-mysql-config=/usr/local/mysql/bin/ mysql_config Fetching: mysql2-0.2.6.gem (100%) Building native extensions. This could take a while... Successfully installed mysql2-0.2.6 1 gem installed Installing ri documentation for mysql2-0.2.6... Enclosing class/module 'mMysql2' for class Client not known Enclosing class/module 'mMysql2' for class Result not known Installing RDoc documentation for mysql2-0.2.6... Enclosing class/module 'mMysql2' for class Client not known Enclosing class/module 'mMysql2' for class Result not known daniels-macbook:rails_mysql daniel$ rake db:migrate (in /Users/daniel/Sites/rails_mysql) rake aborted! Please install the mysql2 adapter: `gem install activerecord-mysql2- adapter` (no such file to load -- active_record/connection_adapters/ mysql2_adapter) (See full trace by running task with --trace) daniels-macbook:rails_mysql daniel$ gem install activerecord-mysql2- adapter ERROR: Could not find a valid gem 'activerecord-mysql2-adapter' (>= 0) in any repository ERROR: Possible alternatives: activerecord-jdbch2-adapter, activerecord-jdbcmysql-adapter, activerecord-postgis-adapter, activerecord-jdbcmssql-adapter, activerecord-nulldb-adapter $ gem install activerecord-mysql2-adapter ERROR: Could not find a valid gem 'activerecord-mysql2-adapter' (>= 0) in any repository ERROR: Possible alternatives: activerecord-jdbch2-adapter, activerecord-jdbcmysql-adapter, activerecord-postgis-adapter, activerecord-jdbcmssql-adapter, activerecord-nulldb-adapter ------------ When i google the error Please install the mysql2 adapter: `gem install activerecord-mysql2-adapter` (no such file to load -- active_record/connection_adapters/mysql2_adapter) people say: 'try the mysql2 gem' i don't understand why it has to be so difficult getting rails 3 to work with mysql... it looks like a lot of people having trouble to make it work. Any ideas? Thank you very much! On 9 jan, 16:33, Frederick Cheung <[email protected]> wrote: > On Jan 9, 2:15 pm, Daniel Amsterdam <[email protected]> wrote: > > > Thx Frederick, > > > You where right about the syntax error in the database.yml... think i > > used tabs. So the scaffold command works now but if it try to run: $ > > rake db:migrate > > (in /Users/daniel/Sites/rails_mysql) > > dyld: lazy symbol binding failed: Symbol not found: _mysql_init > > Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.6/lib/mysql2/ > > mysql2.bundle > > Expected in: flat namespace > > > dyld: Symbol not found: _mysql_init > > Referenced from: /Library/Ruby/Gems/1.8/gems/mysql2-0.2.6/lib/mysql2/ > > mysql2.bundle > > Expected in: flat namespace > > > Trace/BPT trap > > > Can you help me out with this one? > > Something's buggered with your mysql2 gem. I'd check what architecture > mysql2.bundle is (use lipo -detailed_info), compare that with the ruby > executable and the mysql libraries > You might want to reinstall it, telling the install to use the > mysql_config program, so that it picks up the right compile settings > (something like gem install mysql2 -- --with-mysql-config=/usr/local/ > mysql/bin/mysql_config (obviously adjusting to where your mysql_config > binary actually is) > > Fred -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

