Hello,

Thanks for the reply.  I forgot to mention that both my MySQL and python
packages are compiled from source. I'm thinking that this might be a problem
with locating the correct libraries.

I have my mysql in /usr/local/mysql and the libraries are in
/usr/local/mysql/lib

I have already configured ld.so.conf and ran ldconfig.

Something else I forgot to do?

TIA

On 3/23/07, Paolo Alexis Falcone <[EMAIL PROTECTED]> wrote:

On Fri, 2007-03-23 at 06:26 +0800, Rai Ricafrente wrote:
> Hello,
>
> I'm importing MySQLdb module to my python but I can't seem to get it
> done. Whenever I import MySQLdb, I get this message:
>
>         ImportError: /root/.python-eggs/MySQL_python-
1.2.2-py2.5-linux-i686.egg-tmp/_mysql.so: undefined symbol: __pure_virtual
>
> When I installed the MySQLdb libraries, I didn't get any errors.
>
> When I searched for the error, I found something that says that
>
>         This is a problem with your C compiler; it's not a problem
>         with MySQLdb. You are linking things created with two
>         different compiler ABIs.
>
> But I don't get what it means.
>
>
> Btw, i'm running RHEL ES R3 with the following packages:
> gcc-3.2.3-20
> libgcc-3.2.3-24
> compat-gcc-7.3-2.96.128
> compat-gcc-c++-7.3-2.96.128
> gcc-c++-3.2.3-20
> compat-libgcc-296-2.96-132.7.2
> libgcc-3.2.3-24
> compat-libgcc-296-2.96-132.7.2
>
> I tried doing this on my FC6 machine and everything went well.

Install mysql-devel and python-devel RPMs, then run python setup.py
build && python setup.py install from the mysqldb source package.

--
Paolo Alexis Falcone
[EMAIL PROTECTED]

_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph




--
Fighting for Peace is Like Screwing for Virginity.
GPG Key 0x4AC2B3FE
_________________________________________________
Philippine Linux Users' Group (PLUG) Mailing List
[email protected] (#PLUG @ irc.free.net.ph)
Read the Guidelines: http://linux.org.ph/lists
Searchable Archives: http://archives.free.net.ph

Reply via email to