pip を使用して rpy2 をインストールしようとしています:
$ sudo pip install rpy2
エラーで終了します:
gcc-4.0 -fno-strict-aliasing -fno-common -dynamic -arch ppc -arch i386 -g -O2 -DNDEBUG -g -O3 -DR_INTERFACE_PTRS=1 -DHAVE_POSIX_SIGJMP=1 -DCSTACK_DEFNS=1 -DRIF_HAS_RSIGHAND=1 -I./rpy/rinterface -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -I/opt/local/lib/R/include/x86_64 -I/opt/local/lib/R/include -c ./rpy/rinterface/_rinterface.c -o build/temp.macosx-10.3-fat-2.7/./rpy/rinterface/_rinterface.o
unable to execute gcc-4.0: No such file or directory
error: command 'gcc-4.0' failed with exit status 1
macports で rpy2 もインストールしようとしましたが、インストールは完了しましたが、rpy2 はインポートされませんでした。XCode、バージョン 4.0.2 ビルド 4A2002a をインストールしました。gcc がインストールされています。
$ which gcc
戻り値:
/usr/bin/gcc
と
$ gcc
戻り値:
i686-apple-darwin10-gcc-4.2.1: no input files
古いバージョンの gcc を探しているようで、正しい場所を指す方法がわかりません。どんな助けでも大歓迎です。