Installation issues with Mac OS/X 10.7.5 and MAMP 2.1.1

Help
2013-07-11
2013-07-11
  • Scott McBride
    Scott McBride
    2013-07-11

    Hello all,

    I am attempting to install MySQL-python-1.2.4b4 and/or MySQL-python-1.2.3 on my MacBook Pro that is running the following:

    Python 2.7.5
    MAMP 2.1.1
    MySQL 5.5.9

    I have read many posts about missing MySQL headers and mysql_config path being set correctly and figured that I had it all done correctly, but still no luck.

    Here is the output from my attempt at installing MySQL-python-1.2.4b4 and then MySQL-python-1.2.3

    Needless to say any words of wisdom will be greatly appreciated.

    Cheers!!

    ..scoTT

    scott-mcbrides-macbook-pro-5:Python smcbride$ sudo easy_install MySQL-python-1.2.4b4
    Processing MySQL-python-1.2.4b4
    Writing /Users/smcbride/Desktop/Installs/Python/MySQL-python-1.2.4b4/setup.cfg
    Running setup.py -q bdist_egg --dist-dir /Users/smcbride/Desktop/Installs/Python/MySQL-python-1.2.4b4/egg-dist-tmp-IpLZf4
    In file included from _mysql.c:44:
    /Applications/MAMP/Library/include/mysql/my_config.h:329:1: warning: "SIZEOF_SIZE_T" redefined
    In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:9,
                     from _mysql.c:29:
    /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:56:1: warning: this is the location of the previous definition
    In file included from _mysql.c:44:
    /Applications/MAMP/Library/include/mysql/my_config.h:422:1: warning: "HAVE_WCSCOLL" redefined
    In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:8,
                     from _mysql.c:29:
    /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h:902:1: warning: this is the location of the previous definition
    In file included from _mysql.c:44:
    /Applications/MAMP/Library/include/mysql/my_config.h:621:1: warning: "SIZEOF_TIME_T" redefined
    In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:9,
                     from _mysql.c:29:
    /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:57:1: warning: this is the location of the previous definition
    In file included from _mysql.c:44:
    /Applications/MAMP/Library/include/mysql/my_config.h:329:1: warning: "SIZEOF_SIZE_T" redefined
    In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:9,
                     from _mysql.c:29:
    /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:43:1: warning: this is the location of the previous definition
    In file included from _mysql.c:44:
    /Applications/MAMP/Library/include/mysql/my_config.h:422:1: warning: "HAVE_WCSCOLL" redefined
    In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:8,
                     from _mysql.c:29:
    /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h:902:1: warning: this is the location of the previous definition
    ld: library not found for -lmysqlclient_r
    collect2: ld returned 1 exit status
    ld: library not found for -lmysqlclient_r
    collect2: ld returned 1 exit status
    lipo: can't open input file: /var/tmp//cc5Sz8ko.out (No such file or directory)
    error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1
    scott-mcbrides-macbook-pro-5:Python smcbride$ sudo easy_install MySQL-python-1.2.3
    Processing MySQL-python-1.2.3
    Writing /Users/smcbride/Desktop/Installs/Python/MySQL-python-1.2.3/setup.cfg
    Running setup.py -q bdist_egg --dist-dir /Users/smcbride/Desktop/Installs/Python/MySQL-python-1.2.3/egg-dist-tmp-lUOqmu
    warning: no files found matching 'MANIFEST'
    warning: no files found matching 'ChangeLog'
    warning: no files found matching 'GPL'
    In file included from _mysql.c:36:
    /Applications/MAMP/Library/include/mysql/my_config.h:329:1: warning: "SIZEOF_SIZE_T" redefined
    In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:9,
                     from pymemcompat.h:10,
                     from _mysql.c:29:
    /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:56:1: warning: this is the location of the previous definition
    In file included from _mysql.c:36:
    /Applications/MAMP/Library/include/mysql/my_config.h:422:1: warning: "HAVE_WCSCOLL" redefined
    In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:8,
                     from pymemcompat.h:10,
                     from _mysql.c:29:
    /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h:902:1: warning: this is the location of the previous definition
    In file included from _mysql.c:36:
    /Applications/MAMP/Library/include/mysql/my_config.h:621:1: warning: "SIZEOF_TIME_T" redefined
    In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:9,
                     from pymemcompat.h:10,
                     from _mysql.c:29:
    /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:57:1: warning: this is the location of the previous definition
    In file included from _mysql.c:36:
    /Applications/MAMP/Library/include/mysql/my_config.h:329:1: warning: "SIZEOF_SIZE_T" redefined
    In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:9,
                     from pymemcompat.h:10,
                     from _mysql.c:29:
    /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pymacconfig.h:43:1: warning: this is the location of the previous definition
    In file included from _mysql.c:36:
    /Applications/MAMP/Library/include/mysql/my_config.h:422:1: warning: "HAVE_WCSCOLL" redefined
    In file included from /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/Python.h:8,
                     from pymemcompat.h:10,
                     from _mysql.c:29:
    /Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/pyconfig.h:902:1: warning: this is the location of the previous definition
    ld: library not found for -lmysqlclient_r
    collect2: ld returned 1 exit status
    ld: library not found for -lmysqlclient_r
    collect2: ld returned 1 exit status
    lipo: can't open input file: /var/tmp//cczzLZwU.out (No such file or directory)
    error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1