* installing *source* package ‘RCurl’ ... >-6ren">
gpt4 book ai didi

ubuntu - 在 Ubuntu 中为 R 安装 "devtools"包时出错

转载 作者:太空宇宙 更新时间:2023-11-03 16:50:50 24 4
gpt4 key购买 nike

有人可以帮我找到解决这个错误的方法吗?

install.packages("devtools")

  > * 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/juanchi/R/x86_64-pc-linux-gnu-library/3.0/RCurl’ Warning in install.packages : installation of package ‘RCurl’ had
> non-zero exit status ERROR: dependency ‘RCurl’ is not available for
> package ‘httr’
> * removing ‘/home/juanchi/R/x86_64-pc-linux-gnu-library/3.0/httr’ Warning in install.packages : installation of package ‘httr’ had
> non-zero exit status ERROR: dependencies ‘httr’, ‘RCurl’ are not
> available for package ‘devtools’
> * removing ‘/home/juanchi/R/x86_64-pc-linux-gnu-library/3.0/devtools’ Warning in install.packages : installation of package ‘devtools’ had
> non-zero exit status
>
> The downloaded source packages are in

打印(sessionInfo(), locale=FALSE)

R version 3.0.2 (2013-09-25) Platform: x86_64-pc-linux-gnu (64-bit)

attached base packages: [1] stats graphics grDevices utils datasets methods base

loaded via a namespace (and not attached): [1] tools_3.0.2
> ‘/tmp/RtmpDMZcfn/downloaded_packages’

最佳答案

相关行:

> ** package ‘RCurl’ successfully unpacked and MD5 sums checked checking for curl-config... no Cannot find curl-config ERROR: configuration
> failed for package ‘RCurl’

您需要为 RCurl 安装 libcurl(devtools 依赖)。

来自 http://www.omegahat.org/RCurl/FAQ.html ,假设您使用 apt-get 的 Linux 风格:

sudo apt-get install libcurl4-gnutls-dev

应该为您提供 RCurl 所需的库。

关于ubuntu - 在 Ubuntu 中为 R 安装 "devtools"包时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26445815/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com