在我的mac上安装python包(ffnet,spacepy)时找不到-lbundle1.o的库

时间:2013-11-08 21:34:18

标签: python gfortran osx-mavericks anaconda

我的mac(10.9)上安装了anaconda python发行版。我正在尝试安装ffnet软件包和SpacePy软件包,但这样做有问题。这是我在做sudo easy_install ffnet时遇到的错误:

ld: library not found for -lbundle1.o
collect2: erreur: ld a retourné 1 code d'état d'exécution
ld: library not found for -lbundle1.o
collect2: erreur: ld a retourné 1 code d'état d'exécution
error: Setup script exited with error: Command "/usr/local/bin/gfortran -Wall -m64 -Wall -undefined dynamic_lookup -bundle build/temp.macosx-10.5-x86_64-2.7/build/src.macosx-10.5-x86_64-2.7/ffnet/fortran/_ffnetmodule.o build/temp.macosx-10.5-x86_64-2.7/build/src.macosx-10.5-x86_64-2.7/fortranobject.o build/temp.macosx-10.5-x86_64-2.7/src/fortran/ffnet.o build/temp.macosx-10.5-x86_64-2.7/build/src.macosx-10.5-x86_64-2.7/ffnet/fortran/_ffnet-f2pywrappers.o -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin13/4.8.2 -lgfortran -o build/lib.macosx-10.5-x86_64-2.7/ffnet/fortran/_ffnet.so" failed with exit status 1
/Users/nau/anaconda/lib/python2.7/site-packages/numpy/distutils/misc_util.py:252: RuntimeWarning: Parent module 'numpy.distutils' not found while handling absolute import
  from numpy.distutils import log

尝试安装spacepy软件包时,我遇到了“找不到-lbundle1.o的库”错误。

我的mac上有以下文件:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/bundle1.o

我试图建立一个符号链接:

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/libbundle1.o -> bundle1.o

如果-lbundle1.o正在寻找libbundle1.o而不是bundle1.o并且有相同的错误

1 个答案:

答案 0 :(得分:7)

我使用命令重新安装了开发工具:

xcode-select --install

我找到了here

我在将山狮更新为小牛之前安装了Xcode,我猜错了或者众所周知,在升级到Mavericks之后必须重新安装开发者工具....无论如何都可以解决问题。< / p>