natty

ปัญหา 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/_mysql.so, 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/_mysql.so
  Reason: image not found

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

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

แล้วก็ Work เลย
อ้างอิงจาก http://www.blog.bridgeutopiaweb.com/post/how-to-fix-mysql-load-issues-on-mac-os-x/

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

%d bloggers like this: