1

我正在尝试在我的 Ubuntu 12.04 桌面上安装 R 库 BRugs。

> sessionInfo()
R version 2.15.1 (2012-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)

但我收到以下错误:

* installing *source* package ‘BRugs’ ...
** package ‘BRugs’ successfully unpacked and MD5 sums checked
checking for prefix by checking for OpenBUGS... /usr/bin/OpenBUGS
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/tmp/RtmpnNLTG1/R.INSTALL488b7635d4c0/BRugs':
configure: error: C compiler cannot create executables
See `config.log' for more details
ERROR: configuration failed for package ‘BRugs’
* removing ‘/home/myuser/lib/R/BRugs’
Warning in install.packages("BRugs") :
  installation of package ‘BRugs’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/Rtmp2ytOWn/downloaded_packages’

这是config.log的链接。很难判断错误是什么,除了错误以 . 开头gcc: error: unrecognized option '-V'

我怎样才能绕过这个错误(并安装 BRugs)?

4

1 回答 1

1

根据包装说明:

在 Linux 和 Windows 下的 64 位 R 上运行的版本处于“测试”状态,效率较低。

看起来configure正在尝试使用 32 位可执行文件构建包(注意-m32标志)。最好联系包维护者并询问他们如何在 64 位 Ubuntu 下构建 32 位可执行文件。

于 2012-08-22T18:29:22.987 回答