Computing.Net > Forums > Programming > Build up error in python using mysq

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Build up error in python using mysq

Reply to Message Icon

Name: Srinivasa007
Date: February 9, 2009 at 01:55:13 Pacific
OS: Macintosh
CPU/Ram: Intel Core 2 Duo
Product: Mac os x version 10.5 / Leapord
Subcategory: Batch
Comment:

Hi,
I'm doing a small project work on MAC OS X using python and MySQL. I have downloaded the pyhton from python.org and mysql from mysql.com. I have also downloaded mysql-python 1.2.2from sourceforge.net.I have modified thesetup_posix.py 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 setup.py install
Password:
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 'MANIFEST.in'
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/release.py -> 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,
Srinivas




Response Number 1
Name: Srinivasa007
Date: February 11, 2009 at 02:54:50 Pacific
+1
Reply:

Hi,
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 sourceforge.net
3)extract the pyshell
4)copy the pyshell into Library->Frameworks-
>Python.framework...
5) open pyshell.py and close it.
Mysqldb was installed on your mac...

Thank You,
Warm Regards...

Srinivas


Reply to Message Icon

Related Posts

See More


Count comma in each line ... Installing SMS2003 with a...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Google Ads



Results for: Build up error in python using mysq

Button problem in Python/Tkinter www.computing.net/answers/programming/button-problem-in-pythontkinter/10542.html

operate several files in python? www.computing.net/answers/programming/operate-several-files-in-python/14508.html

opening an image in python www.computing.net/answers/programming/opening-an-image-in-python/14922.html