On Sun, Jan 10, 2010 at 2:21 PM, Devin McCabe <[email protected]> wrote:
> OK, I was somehow able to resolve this error by reinstalling both rake > and rails. Now I get a different error: > > $ rake db:migrate > (in /Users/devin/Sites/test) > dyld: lazy symbol binding failed: Symbol not found: _mysql_init > Referenced from: > /usr/local/lib/ruby/gems/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle > Expected in: flat namespace > > dyld: Symbol not found: _mysql_init > Referenced from: > /usr/local/lib/ruby/gems/1.8/gems/mysql-2.8.1/lib/mysql_api.bundle > Expected in: flat namespace > > Trace/BPT trap > > ------------- > > MySQL does work fine, but rails isn't seeing it: > > irb(main):001:0> require 'mysql' > LoadError: no such file to load -- mysql > from (irb):1:in `require' > from (irb):1 > In the above, you haven't loaded the Rails environment. You'll have to navigate to the root of a Rails application and perform the following action: script/console Next, if you're upgrading to Snow Leopard, then I would recommending reading the following: http://weblog.rubyonrails.org/2009/8/30/upgrading-to-snow-leopard However, I would recommend installing MySQL database server via MacPorts because the maintainer keeps this port relatively current: a) install the latest version of MacPorts Snow Leopard<http://distfiles.macports.org/MacPorts/MacPorts-1.8.2-10.6-SnowLeopard.dmg> b) update your PATH environment variable in .profile to look like the following: export PATH=/opt/local/bin:/opt/local/sbin:${PATH} c) open up a new terminal window d) install the MySQL5 database server sudo port install mysql5-server Note: Please following the instructions that appear on the screen for post installation. e) configure RubyGems sudo gem update --system f) install some basic gems sudo gem install rails mysql sqlite3-ruby rack Good luck, -Conrad -- > Posted via http://www.ruby-forum.com/. > > -- > 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]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > >--
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.

