On Jan 9, 4:15 pm, Daniel Amsterdam <[email protected]> wrote:
>
>
> ------------
>
> 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?

It usually means that rails couldn't load the connection adapter. You
should get a more specific error if you open an irb session and
require ruby gems and then mysql2. You want to make sure that you have
the right version of mysql (the x86-64 version if you have anything
but one of the very first intel machines)

Fred
>
> 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.

Reply via email to