首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >无法在Ubuntu 11.04中安装R包

无法在Ubuntu 11.04中安装R包
EN

Stack Overflow用户
提问于 2011-10-14 17:10:55
回答 1查看 76.7K关注 0票数 133

我是Linux和R的新手。

我在Ubuntu 11.04中安装了R2.12。今天我尝试安装一个新的包,所以我运行了以下命令:

代码语言:javascript
复制
install.packages('XML')

但安装失败,并提供了以下信息:

代码语言:javascript
复制
* installing *source* package ‘XML’ ...
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
No ability to remove finalizers on externalptr objects in this verison of R
checking for sed... /bin/sed
checking for pkg-config... /usr/bin/pkg-config
checking for xml2-config... no
Cannot find xml2-config
ERROR: configuration failed for package ‘XML’
* removing ‘/home/spirit/R/i686-pc-linux-gnu-library/2.12/XML’

The downloaded packages are in
    ‘/tmp/RtmpoZYxnv/downloaded_packages’
Warning message:
In install.packages("XML") :
  installation of package 'XML' had non-zero exit status

我也试过了:

代码语言:javascript
复制
sudo install.packages('XML')

但是它给出了相同的错误信息。

有人能给我什么建议吗?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7765429

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档