<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.28.2">
</HEAD>
<BODY>
Hi All,<BR>
<BR>
I am just a month old with Python and trying to learn CGI with Python. I was trying to install MySQLdb module in my new CentOS 5.3 box with Python 2.4.3 default install. I downloaded the tar-ball of MySQLdb module (MySQL-python-1.2.3c1). Did build as normal user and install as root. MySQL server version that I'm using is 5.1.41, if that has anything to do with the error. I then copied, libmysqlclient_r.so.16 library to /usr/lib/ folder and then I am able to import the module as root user. But cannot do this as normal user.<BR>
<BR>
Now, while doing import MySQLdb as normal user, I get the following error message. The scripts will be run as apache and hence cannot have this error. Please check the following output. Also I have attached the output while doing build and install process.<BR>
<BR>
[kurianmt@server MySQL-python-1.2.3c1]$ python<BR>
Python 2.4.3 (#1, Jan 21 2009, 01:10:13) <BR>
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2<BR>
Type "help", "copyright", "credits" or "license" for more information.<BR>
>>> import MySQLdb<BR>
/usr/lib/python2.4/site-packages/MySQL_python-1.2.3c1-py2.4-linux-i686.egg/_mysql.py:3: UserWarning: Module _mysql was already imported from /usr/lib/python2.4/site-packages/MySQL_python-1.2.3c1-py2.4-linux-i686.egg/_mysql.pyc, but /opt/downloads/py-modules/MySQL-python-1.2.3c1 is being added to sys.path<BR>
<BR>
It would be a great help if I understand what's going on!!! Thanks in advance.<BR>
<BR>
Regards,<BR>
<BR>
Kurian Mathew Thayil.
</BODY>
</HTML>