在MacOSX中使用RSPython

时间:2009-09-08 09:09:11

标签: python r install

我正在尝试安装 我在Mac OS X 10.4.11上使用R版本2.7.2(2008-08-25)和来自fink的python 2.6.2 R/SPlus - Python Interface (RSPython)

例程:

sudo R CMD INSTALL -c RSPython_0.7-1.tar.gz

产生了此错误消息:

* Installing to library '/Library/Frameworks/R.framework/Resources/library'
* Installing *source* package 'RSPython' ...
checking for python... /sw/bin/python
Python version 2.6
Using threads
checking for gcc... gcc
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
ERROR: configuration failed for package 'RSPython'
** Removing '/Library/Frameworks/R.framework/Versions/2.7/Resources/library/RSPython'

我的系统没有创建config.log。

作者的联系电子邮件地址不再起作用,所以我希望有人在这里尝试过相同的内容,或者可以给我一个在python中运行R例程的替代方案。

致以最诚挚的问候,

西蒙

3 个答案:

答案 0 :(得分:1)

尝试运行R CMD CHECK RSPython_0.7-1.tar.gz 这应该至少产生一堆RSPython.Rcheck文件夹中的日志

你可能会在那里得到一些线索。

更新--- 如果你可以让其他一个包上班,我推荐它。在我的系统上(使用/ usr / bin / python中的系统python(2.6)的R 2.9.1),安装有效,但由于其.First.lib函数内部存在问题,RSPython无法运行。我希望你需要大量破解这些资源才能让它发挥作用。

答案 1 :(得分:1)

要调试它,只需自己解压缩tar文件(tar xzvf RSPython_0.7-1.tar.gz)并在创建的目录中运行./configure。你应该得到一个可以检查的config.log文件。

答案 2 :(得分:0)

我找到了rpyrpy2软件包,并尝试将其作为旧版RSPython的替代方案。

rpy2包含在fink不稳定的发行版中......好吧,它运作正常。