Forum: Ruby on Rails Rake error

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7f48b7c94b65fa647a7f2ded76b8db00?d=identicon&s=25 Jeremy Heiler (Guest)
on 2007-05-27 03:17
(Received via mailing list)
I posted this on Ruby Talk but then I realized I probably should of
posted it here instead...

I receive this error when running a rake command:

$ rake db:migrate
(in /Users/jeremy/rails/depot)
dyld: NSLinkModule() error
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.
15.dylib
  Referenced from: /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/
mysql.bundle
  Reason: image not found
Trace/BPT trap

I'm working with the book "Agile Web Development with Rails" and even
though it discusses many possible errors, none of them relate to this
one. Also, my database.yml file seems to be correct so I don't think
that's the problem.
7f48b7c94b65fa647a7f2ded76b8db00?d=identicon&s=25 Jeremy Heiler (Guest)
on 2007-05-27 05:37
(Received via mailing list)
On May 26, 9:16 pm, Jeremy Heiler <jeremyhei...@gmail.com> wrote:
>   Referenced from: /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/
> mysql.bundle
>   Reason: image not found
> Trace/BPT trap
>
> I'm working with the book "Agile Web Development with Rails" and even
> though it discusses many possible errors, none of them relate to this
> one. Also, my database.yml file seems to be correct so I don't think
> that's the problem.

Well I discovered the diagnoses but not the cure. My "libmysqlclient.
15.dylib" file is located in "/usr/local/mysql/lib" instead of "/usr/
local/mysql/lib/mysql". I opened up the "mysql.bundle" file in vi but
it was complete chaos. I could see where to make the change but it
didn't look safe to edit the file. What do I do?
7f48b7c94b65fa647a7f2ded76b8db00?d=identicon&s=25 Jeremy Heiler (Guest)
on 2007-05-27 06:37
(Received via mailing list)
On May 26, 2007, at 11:36 PM, Jeremy Heiler wrote:

>> dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.
>
> To post to this group, send email to rubyonrails-talk@googlegroups.com
> To unsubscribe from this group, send email to rubyonrails-talk-
> unsubscribe@googlegroups.com
> For more options, visit this group at http://groups.google.com/
> group/rubyonrails-talk?hl=en
> -~----------~----~----~----~------~----~------~--~---
>
I found the answer on Google.
http://railsforum.com/viewtopic.php?pid=24070
This topic is locked and can not be replied to.