freebsd下 python 连接 mysql问题..

freebsd下 python 连接 mysql问题..

我在 freebsd 6.2 下安装了 MySQL for Python

可是我import MySQLdb的时候,报了下面的错误.


Traceback (most recent call last):
  File "test.py", line 1, in  <module >
    import MySQLdb
  File "build/bdist.freebsd-6.2-RELEASE-p8-i386/egg/MySQLdb/__init__.py", line 19, in  <module >
  File "build/bdist.freebsd-6.2-RELEASE-p8-i386/egg/_mysql.py", line 7, in  <module >
  File "build/bdist.freebsd-6.2-RELEASE-p8-i386/egg/_mysql.py", line 6, in __bootstrap__
ImportError: Shared object "libmysqlclient_r.so.16" not found, required by "_mysql.so"

请问怎么解决?
我自已解决了.哈

ln -s /usr/local/lib/mysql/libmysqlclient_r.so.16 libmysqlclient_r.so.16