Installing Python MySQLdb module (Unable to find GCC 4.0)
I am trying to use the Python MySQL module to access a MySQL database from XAMPP on Mac OSX. I've tried (unsuccessfully) to install the module with pip and easy_install. Both came up with various errors. Now I am trying to install a downloaded version of it through command line using python build. Here is what I'm doing:

    _______-MacBook-Pro:MySQL-python-1.2.3 ___________$ python setup.py build
    running build
    running build_py
    copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.7/MySQLdb
    running build_ext
    building '_mysql' extension
    gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -Dversion_info=
    (1,2,3,'final',0) -D__version__=1.2.3 -I/Applications/XAMPP/xamppfiles/include/mysql -
    I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o
    build/temp.macosx-10.3-fat-2.7/_mysql.o -mmacosx-version-min=10.4 -arch i386 -arch ppc -
    D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -
    DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL
    unable to execute gcc-4.0: No such file or directory
    error: command 'gcc-4.0' failed with exit status 1

After doing some research as to how to reinstall GCC, I downloaded XCode again, to no avail. I've heard that GCC 4.0 was part of XCode 3 - I can only find XCode 4.3 to download.

I'm somewhat new to StackOverflow and Python, so please tell me if you need more information.

Thanks!

MagicBard

Installing Python MySQLdb module (Unable to find GCC 4.0)
===

I am trying to use the Python MySQL module to access a MySQL database from XAMPP on Mac OSX. I've tried (unsuccessfully) to install the module with pip and easy_install. Both came up with various errors. Now I am trying to install a downloaded version of it through command line using python build. Here is what I'm doing:

    _______-MacBook-Pro:MySQL-python-1.2.3 ___________$ python setup.py build
    running build
    running build_py
    copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.7/MySQLdb
    running build_ext
    building '_mysql' extension
    gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -Dversion_info=
    (1,2,3,'final',0) -D__version__=1.2.3 -I/Applications/XAMPP/xamppfiles/include/mysql -
    I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o
    build/temp.macosx-10.3-fat-2.7/_mysql.o -mmacosx-version-min=10.4 -arch i386 -arch ppc -
    D_P1003_1B_VISIBLE -DSIGNAL_WITH_VIO_CLOSE -DSIGNALS_DONT_BREAK_READ -
    DIGNORE_SIGHUP_SIGQUIT -DDONT_DECLARE_CXA_PURE_VIRTUAL
    unable to execute gcc-4.0: No such file or directory
    error: command 'gcc-4.0' failed with exit status 1

After doing some research as to how to reinstall GCC, I downloaded XCode again, to no avail. I've heard that GCC 4.0 was part of XCode 3 - I can only find XCode 4.3 to download.

I'm somewhat new to StackOverflow and Python, so please tell me if you need more information.

Thanks!

MagicBard
