我花了整整一周的时间试图找出如何解决这个问题,但我不知道该怎么做。我收到以下错误:
MacBook-Pro-van-Hakim:Modules MvZB$ tar zxf simuPOP-1.0.6-src.tar.gzMacBook-Pro-van-Hakim:Modules MvZB$ cd simuPOP-1.0.6MacBook-Pro-van-Hakim:simuPOP-1.0.6 MvZB$ sudo python3 setup.py installPassword:
fail to import distribute/setuptools, build the program with distutils
running install
running build
running build_py
creating build/lib.macosx-10.6-intel-3.2
copying simuOpt.py -> build/lib.macosx-10.6-intel-3.2
creating build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/__init__.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/utils.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/plotter.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/sampling.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/sandbox.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/simuPOP_std.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/simuPOP_op.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/simuPOP_la.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/simuPOP_laop.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/simuPOP_ba.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/simuPOP_baop.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
copying src/gsl.py -> build/lib.macosx-10.6-intel-3.2/simuPOP
Skipping implicit fixer: buffer
Skipping implicit fixer: idioms
Skipping implicit fixer: set_literal
Skipping implicit fixer: ws_comma
running build_ext
building 'simuPOP._gsl' extension
creating build/temp.macosx-10.6-intel-3.2
creating build/temp.macosx-10.6-intel-3.2/gsl
creating build/temp.macosx-10.6-intel-3.2/gsl/sys
creating build/temp.macosx-10.6-intel-3.2/gsl/complex
creating build/temp.macosx-10.6-intel-3.2/gsl/specfunc
creating build/temp.macosx-10.6-intel-3.2/gsl/cdf
creating build/temp.macosx-10.6-intel-3.2/src
gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -isysroot /Developer/SDKs/MacOSX10.6.sdk -arch i386 -arch x86_64 -isysroot /Developer/SDKs/MacOSX10.6.sdk -Igsl -Igsl/specfunc -Ibuild -I. -I/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m -c gsl/error.c -o build/temp.macosx-10.6-intel-3.2/gsl/error.o
unable to execute gcc-4.2: No such file or directory
error: command 'gcc-4.2' failed with exit status 1
当我第一次看到这个错误时,我的 Mac 上似乎没有安装编译器。为此,我为 Snow Leopard 安装了 Xcode 4.2,现在应该有一个 gcc 编译器。这个论坛上带有类似错误报告的帖子非常具体,这使得像我这样的新手很难从现有案例中推断出适合我的问题的解决方案。我正在使用带有 python3.2.2 64/32 位版本的 Mac OSX 10.6.8。有人可以帮我吗?我什至正在下载 Xcode 4.0 并尝试这是否会导致问题,但不知道这是否可以解决问题。
谢谢!
编辑:Xcode 4.0.1。不能解决这个问题。