Mac OSX : python packages failed to build because of gcc issues

前端 未结 3 588
抹茶落季
抹茶落季 2021-01-24 17:41

I am trying to install MySQL-python package with the following error:

cc1: error: unrecognized command line option \"-arch\"
cc1: error: unrecogni         


        
3条回答
  •  不思量自难忘°
    2021-01-24 18:34

    I restored the gcc that comes with Mac and that removed the first error which is

    cc1: error: unrecognized command line option "-arch"  
    

    for the second one, I removed the option from /Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/config/Makefile
    from BASECFLAGS and added the following to my ~/.bashrc

    export C_INCLUDE_PATH=/Developer/SDKs/MacOSX10.5.sdk/usr/include
    export LIBRARY_PATH=/Developer/SDKs/MacOSX10.5.sdk/usr/lib  
    

    and that removed the error

    cc1: error: unrecognized command line option "-Wno-long-double"
    

提交回复
热议问题