Pip 使用Fink Python 2.7和3.4在Mac OSX上安装Rpy2 2.4.2时出错

Pip 使用Fink Python 2.7和3.4在Mac OSX上安装Rpy2 2.4.2时出错,pip,osx-mavericks,rpy2,fink,Pip,Osx Mavericks,Rpy2,Fink,我正在使用Mac OSX 10.9.4和 gcc -v Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1 Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn) Target: x86_64-apple-darwin13.3.0 Thread model

我正在使用Mac OSX 10.9.4和

gcc -v

Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.3.0
Thread model: posix
和FinkR3.1.1/sw/Library/Frameworks/R.framework/Versions/3.1/Resources/bin/R

问题是当我这样做时:

sudo env ARCHFLAGS="-arch x86_64" /sw/bin/pip-py3.4 install rpy2 --upgrade


我在/sw/bin/pip-py2.7中遇到了相同的错误。

我停止使用Fink。
Undefined symbols for architecture x86_64:

  "_rl_basic_word_break_characters", referenced from:

      _EmbeddedR_init in _rinterface.o

  "_rl_completer_word_break_characters", referenced from:

      _EmbeddedR_init in _rinterface.o

ld: symbol(s) not found for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

error: command 'gcc' failed with exit status 1

----------------------------------------
  Rolling back uninstall of rpy2
Cleaning up...
Command /sw/bin/python2.7 -c "import setuptools, tokenize;__file__='/private/tmp/pip_build_root/rpy2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /private/tmp/pip-43Xyf6-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/tmp/pip_build_root/rpy2
Storing debug log for failure in /Users/alan/.pip/pip.log