在 Windows 上从源代码编译 RCurl

2024-04-07

由于没有 Windows 二进制文件v1.95-4.3然而,我需要安装/编译RCurl http://cran.r-project.org/web/packages/RCurl/index.htmlWindows 8.1 上的源代码包。 (64 位)。

有人可以告诉我吗

  1. 哪个版本的cURL http://curl.haxx.se/download.html I need
  2. 各种文件,例如libcurl.dll等需要准确放置

是否x64下面的错误消息中提到的目录对应于x64R安装目录?

> 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 http://cran.r-project.org/web/packages/RCurl/index.html

install.packages("RCurl_1.95-4.3.zip", repos=NULL, type="source")
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 Windows 上从源代码编译 RCurl 的相关文章

随机推荐