gpt4 book ai didi

r - 在 Windows 上从源代码编译 RCurl

转载 作者:行者123 更新时间:2023-12-03 22:22:23 36 4
gpt4 key购买 nike

由于 v1.95-4.3 还没有 Windows 二进制文件,我需要安装/编译 RCurl Windows 8.1 上的源代码包。 (64 位)。

谁能告诉我

  1. 哪个版本cURL我需要
  2. libcurl.dll等各种文件需要准确放置的地方

下面错误信息中提到的x64目录是否对应R安装的x64目录?

> install.packages("RCurl", type="source")
trying URL 'http://cran.rstudio.com/src/contrib/RCurl_1.95-4.3.tar.gz'
Content type 'application/x-gzip' length 879143 bytes (858 Kb)
opened URL
downloaded 858 Kb

* installing *source* package 'RCurl' ...
** package 'RCurl' successfully unpacked and MD5 sums checked
Please set LIB_CURL
cygwin warning:
MS-DOS style path detected: Q:/home
Preferred POSIX equivalent is: /cygdrive/q/home
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
cp: cannot stat `/x64/ssl/bin/*.dll': No such file or directory
cp: cannot stat `/x64/bin/libcurl-4.dll': No such file or directory
cp: cannot stat `/x64/bin/libz.dll': No such file or directory
Warning: running command 'sh ./configure.win' had status 1
ERROR: configuration failed for package 'RCurl'
* removing 'Q:/home/apps/rapptools/apps/r/R-3.1.1/library/RCurl'
Warning in install.packages :
running command '"Q:/home/apps/RAPPTO~1/apps/r/R-31~1.1/bin/x64/R" CMD INSTALL -l "Q:\home\apps\rapptools\apps\r\R-3.1.1\library" C:\Users\RAPPST~1\AppData\Local\Temp\Rtmp0MmGz8/downloaded_packages/RCurl_1.95-4.3.tar.gz' had status 1
Warning in install.packages :
installation of package ‘RCurl’ had non-zero exit status

非常感谢!

最佳答案

看起来适用于 Windows 的 RCurl v1.95-4.3 二进制文件已于今天早上上传到 CRAN。我正在处理与您完全相同的问题,在从源代码构建二进制文件后,我再次使用 RCurl 时一切正常!

http://cran.r-project.org/web/packages/RCurl/index.html

install.packages("RCurl_1.95-4.3.zip", repos=NULL, type="source")

关于r - 在 Windows 上从源代码编译 RCurl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25023540/

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