Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 25-08-2008
Member
 
Join Date: Apr 2008
Posts: 29
Error with Rake

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.
__________________
"I'd rather be riding my bike thinking about God than sitting in church thinking about my bike"
Reply With Quote
  #2  
Old 25-08-2008
Member
 
Join Date: May 2008
Posts: 2,293
I found the following solution to this problem:

Fire up the Terminal then type
Code:
cd /usr/local/mysql/lib
sudo mkdir mysql
Password: *************
cd mysql/
sudo ln -s ../libmysqlclient.15.0.0.dylib libmysqlclient.15.0.0.dylib
sudo ln -s ../libmysqlclient.15.0.0.dylib libmysqlclient.15.dylib
sudo ln -s ../libmysqlclient.15.0.0.dylib libmysqlclient.dylib
This will create some symbolic links from the expected location of these files to the current location.

This seems to be related to a change in the directory structure of the current mysql releases?! But I did not investigate any further.
Reply With Quote
  #3  
Old 25-08-2008
Member
 
Join Date: Apr 2008
Posts: 29
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.
__________________
"I'd rather be riding my bike thinking about God than sitting in church thinking about my bike"
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags:



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Error with Rake"
Thread Thread Starter Forum Replies Last Post
Getting Error message ?Northbridge Error, node 2<0>K8 ECC error.? in CentOS 5.5 Pawna Operating Systems 5 04-05-2011 10:50 AM
error “shmget (lowmem) error: Unknown error 999” on linux -Wamil- Operating Systems 6 12-11-2010 11:37 PM
Server Error: 451, Socket Error: 10053, Error Number: 0x800CCC0F Eigenberg Windows XP Support 3 03-06-2008 04:13 PM
Error displaying page error [Error number: 0x80090305] shai Windows Update 3 21-07-2005 01:07 AM


All times are GMT +5.5. The time now is 01:01 PM.