
[英]Problems installing R package "devtools" on Ubuntu 16.04 (Xenial)
[英]Error when installing “devtools” package for R in Ubuntu
有人可以帮我找出这个错误的解决方案吗?
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
print(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
所需的库。
检查你的R版本。 尝试更新此内容。 这个问题将得到解决。 我花了一天时间来完成所有的解决方案。 没有解决方案。 试试这个解决方案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.