无法安装 XML 包 [英] Can Not Install XML Package

查看:32
本文介绍了无法安装 XML 包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法安装最新的 XML 包 V3.9-4.我手动将它安装在 RGui 中,输入:

I can not install the latest XML package V3.9-4. I mannually install it in RGui by typing:

install.packages("LOCALDIR/XML_3.6-0.tar.gz", repos=NULL, type="source")

但是得到一些错误信息:

But get some error message:

* installing *source* package 'XML' ...
Please define LIB_XML (and LIB_ZLIB, LIB_ICONV)
ERROR: configuration failed for package 'XML'
* removing 'LOCALDIR/R/win-library/2.12/XML'
* restoring previous 'LOCALDIR/R/win-library/2.12/XML'

有人知道吗?

谢谢!

推荐答案

您是 Windows 用户(至少您的路径表明是这样)并且使用标准 二进制安装.所以我看到你已经尝试过 source,smart 但是有些部分没有 rtools 和一些神奇的伏都教就无法编译.所以你有两个选择:

You're a windows user (at least your path indicates so) and XML is not available for that OS using the standard binary install. So I see you've tried source, smart but there are pieces that can't compile without rtools and some magic voodoo. So you got two choices:

  1. 学习神奇的伏都教以使其正确安装
  2. 前往 CRAN网站和阅读我的文件,它告诉你教授里普利有在此处将它们放在一起.很高兴知道这一点,因为RCurl 也在那里.要直接下载软件包,请单击这里.
  1. Learn the magic voodoo to make it install correctly
  2. Go to the CRAN site and the read me file, which tells you Professor Ripley has put them together for you here. This is good to know because RCurl is there too. For a direct download of the package click HERE.

我无法帮助您解决巫毒教问题,因为我选择了第二个选择 :)

I can't help you with the voodoo as I opted for the second choice :)

这篇关于无法安装 XML 包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆