当前位置: 首页 > 面试题库 >

“非零退出状态” R 3.0.1“ XML”和“ RCurl”

陶高峻
2023-03-14
问题内容

我在Ubuntu 13.10机器上安装XML和RCurl时遇到麻烦。我今天执行了所有sudo更新和升级。

我正在尝试将拨浪鼓用于R。我无法安装使用拨浪鼓所需的“
XML”。一年后,这里几乎是同一问题,只是操作系统不同。以下是我返回的错误消息:

> install.packages("RCurl")
Installing package into ‘/home/steven/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/RCurl_1.95-4.1.tar.gz'
Content type 'application/x-gzip' length 870915 bytes (850 Kb)
opened URL
==================================================
downloaded 850 Kb

* installing *source* package ‘RCurl’ ...
** package ‘RCurl’ successfully unpacked and MD5 sums checked
checking for curl-config... no
Cannot find curl-config
ERROR: configuration failed for package ‘RCurl’
* removing ‘/home/steven/R/x86_64-pc-linux-gnu-library/3.0/RCurl’
Warning in install.packages :
  installation of package ‘RCurl’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpUwBkbS/downloaded_packages’
> install.packages("XML")
Installing package into ‘/home/steven/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/XML_3.98-1.1.tar.gz'
Content type 'application/x-gzip' length 1582216 bytes (1.5 Mb)
opened URL
==================================================
downloaded 1.5 Mb

* installing *source* package ‘XML’ ...
** package ‘XML’ successfully unpacked and MD5 sums checked
checking for gcc... gcc
checking for C compiler default output file name... 
rm: cannot remove 'a.out.dSYM': Is a directory
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
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/steven/R/x86_64-pc-linux-gnu-library/3.0/XML’
Warning in install.packages :
  installation of package ‘XML’ had non-zero exit status

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

不太确定如何从这里继续。


问题答案:

在Ubuntu上安装curl和xml。跑

sudo apt-get install libcurl4-openssl-dev libxml2-dev

R中安装的软件包上的错误消息表示curl和xml库不存在或找不到。



 类似资料:
  • 问题内容: 这是我的python代码: 第一个工作良好,但是第二个返回此: 为什么会这样?是因为原始的shell命令而是新的软件包吗?我怎么解决这个问题? 问题答案: 您启动的命令已正确执行。它返回非零状态,这意味着在处理命令期间发生了错误。您可能想在命令中添加一些参数来解决该问题。 您的代码可能以这种方式显示此错误:

  • 问题内容: 这个问题已经在这里有了答案 : 子流程check_output返回非零退出状态1 (2个答案) 3年前关闭。 执行以下脚本… […] …导致错误: CalledProcessError:命令’[ping’,’-q’,’-c2’,’-W1’,‘10 .81.3.80’]’返回非零退出状态1 在中添加“ stderr = STDOUT”不会产生任何有用的反馈。 如何获取有关该错误的更多信息

  • ...there are dark corners in the Bourne shell, and people use all of them. Chet Ramey exit 命令一般用于结束一个脚本,就像C语言的exit一样。它也能返回一个值给父进程。 每一个命令都能返回一个退出状态(有时也看做 返回状态 ).一个命令执行成功返回0,一个执行不成功的命令则返回一个非零值,此值通常可以被解释

  • 我正在尝试在Azure Jupyter笔记本中安装插入符号包,但我收到以下警告,并以非零退出状态退出。 我试着以其他答案和论坛中列出的几种方式安装软件包,例如: 错误: 错误: 我希望在Azure Jupyter笔记本中安装插入符号库时不会出现任何错误。

  • 问题内容: 任何人都可以通过以下错误帮助我。当我清理项目时,它不会显示任何错误,但是每次我尝试运行时,都会收到此消息。 错误:任务’:app:dexDebug’的执行失败。 com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:进程’命令’C:\ Program Files