我想在我的macbook 上安装twisted。
System version: Mac OS X Lion 10.7.4
Xcode version: Version 4.3.3 (4E3002)
蟒蛇版本:
Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
当我运行这个:
sudo easy_install twisted
它失败了:
Processing Twisted-12.1.0.tar.bz2
Running Twisted-12.1.0/setup.py -q bdist_egg --dist-dir /tmp/easy_installdtZ7Lk/Twisted-12.1.0/egg-dist-tmp-NUWexg
unable to execute gcc-4.2: No such file or directory
...
error: Setup script exited with error: command 'gcc-4.2' failed with exit status 1
但我确实安装了 gcc:
gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
任何人都可以帮助我吗?
帖子:问题由此解决:
which gcc
/usr/bin/gcc
cd /usr/bin
ln gcc gcc-4.2