Build up error in python using mysq

Mac os x version 10.5 / Leapord
February 9, 2009 at 01:55:13
Specs: Macintosh , Intel Core 2 Duo
I'm doing a small project work on MAC OS X using python and MySQL. I have downloaded the pyhton from and mysql from I have also downloaded mysql-python 1.2.2from have modified and _mysql.c as given in the net. When I was restarted it shows an error.
Administrator:MySQL-python-1.2.2 administrator$ sudo python install
running install
running bdist_egg
running egg_info
writing MySQL_python.egg-info/PKG-INFO
writing top-level names to MySQL_python.egg-info/top_level.txt
writing dependency_links to MySQL_python.egg-info/dependency_links.txt
reading manifest file 'MySQL_python.egg-info/SOURCES.txt'
reading manifest template ''
writing manifest file 'MySQL_python.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.3-fat/egg
running install_lib
running build_py
copying MySQLdb/ -> build/lib.macosx-10.3-fat-2.5/MySQLdb
running build_ext
building '_mysql' extension
gcc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -O3 -Dversion_info=(1,2,2,'final',0) -D__version__=1.2.2 -I/usr/local/mysql/include -I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c _mysql.c -o build/temp.macosx-10.3-fat-2.5/_mysql.o -g -Os -arch i386 -fno-common -D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL
unable to execute gcc: No such file or directory
error: command 'gcc' failed with exit status 1
Please suggest me how to go further.
Thanks in advance for help me.
Warm Regards,

See More: Build up error in python using mysq

Report •

February 11, 2009 at 02:54:50
I solved the problem of gcc error.
Follow the steps.
1)first install the gcc 4.0, developer from xcode.
2)then download the pyshell from
3)extract the pyshell
4)copy the pyshell into Library->Frameworks-
5) open and close it.
Mysqldb was installed on your mac...

Thank You,
Warm Regards...


Report •
Related Solutions

Ask Question