Error in installing the mysql-python-1.2.3.tar.gz

Hi,

I followed the step written in README.
It got some error message when I type " #python setup.py build"

running build
running build_py
copying MySQLdb/release.py -> build/lib.solaris-2.11-i86pc-2.4/MySQLdb
running build_ext
building '_mysql' extension
/usr/lib/python2.4/pycc -DNDEBUG -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/mysql/include -I/usr/include/python2.4 -c _mysql.c -o build/temp.solaris-2.11-i86pc-2.4/_mysql.o -m32 -KPIC -g -mt -fsimple=1 -ftrap=%%none -nofstore -xbuiltin=%%all -xlibmil -xlibmopt -xtarget=generic
gcc: warning: `-x target=generic' after last input file has no effect
gcc: unrecognized option `-KPIC'
gcc: unrecognized option `-nofstore'
cc1: error: invalid option `t'
cc1: error: unrecognized command line option "-fsimple=1"
cc1: error: unrecognized command line option "-ftrap=%%none"
error: command '/usr/lib/python2.4/pycc' failed with exit status 1

I don't what does it mean? Can you please tell me what's wrong with this? and how can I solve it?

---------- Post updated 04-27-11 at 04:58 AM ---------- Previous update was 04-26-11 at 08:42 PM ----------

please help me~~

Seem like the wrong version of GCC. Look into the prerequisites. For many products, the ./configure pre-run discovers if you have a compatible compiler. SourceForge.net: MySQL for Python: Topic: problem building on Solaris 2.9 (SunOS 5.9)

Thanks. I get it, but how can I fix it?