Mac OSXMountainLionでMySQLdbをビルドするのに問題があります。OSXLionからOSXMountainLionにアップグレードした後、Xcode4.4もダウンロードしてインストールしました。次に、[設定]> [Xcodeのダウンロード]に移動し、コマンドラインツールをインストールしました。
MySQL-pythonver。をダウンロードしました。1.2.3http ://sourceforge.net/projects/mysql-python/から
私が走るとき
python setup.py build
以下のメッセージが表示されます:
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.6-intel-2.7/MySQLdb
running build_ext
building '_mysql' extension
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -g -O2 -DNDEBUG -g -O3 -Dversion_info=(1,2,3,'final',0) -D__version__=1.2.3 -I/usr/local/mysql/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.6-intel-2.7/_mysql.o -Os -g -fno-common -fno-strict-aliasing -arch x86_64
unable to execute gcc-4.2: No such file or directory
error: command 'gcc-4.2' failed with exit status 1
ただし、gccは存在します。私が走るとき
gcc
私は得る
i686-apple-darwin11-llvm-gcc-4.2: no input files
以下は私が見つけた同様の質問ですが、その解決策は私がすでに行ったこととまったく同じですが、私にはうまくいきません。