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