ปัญหา Library not loaded: libmysqlclient.18.dylib ใน Mac

In Uncategorized on November 16, 2011 at 9:31 pm

ใช้ lib MySQL-python แล้วเจอ error ประมาณว่า

ImportError: dlopen(/Users/natty/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/, 2): Library not loaded: libmysqlclient.18.dylib
  Referenced from: /Users/natty/.python-eggs/MySQL_python-1.2.3-py2.6-macosx-10.6-universal.egg-tmp/
  Reason: image not found

สำหรับ Mac เราลองแก้โดยรันคำสั่งนี้ใน command

export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/

แล้วก็ Work เลย


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: