在Windows上从源代码编译RCurl [英] Compiling RCurl from source on Windows

查看:223
本文介绍了在Windows上从源代码编译RCurl的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于 v1.95-4.3 尚无Windows二进制文件,因此我需要安装/编译 RCurl 软件包,来自Windows 8.1。 (64位)。



有人可以告诉我


  1. cURL 我需要

  2. 需要准确放置诸如 libcurl.dll 等各种文件的地方

以下错误消息中提到的 x64 目录是否对应于R安装的 x64 目录? p>

 > install.packages( RCurl,type = source)
尝试使用URL'http://cran.rstudio.com/src/contrib/RCurl_1.95-4.3.tar.gz'
内容类型'application / x-gzip'长度879143字节(858 Kb)
打开的URL
下载的858 Kb

*安装* source *包'RCurl'...
**软件包 RCurl已成功解压并检查了MD5的总和
请设置LIB_CURL
cygwin警告:
检测到MS-DOS样式路径:Q:/ home
等效的POSIX是:/ cygdrive / q / home
CYGWIN环境变量选项 nodosfilewarning关闭此警告。
有关POSIX路径的更多详细信息,请参考用户指南:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
cp:无法统计`/ x64 / ssl / bin / *。dll':无此类文件或目录
cp:无法统计`/x64/bin/libcurl-4.dll':无此类文件或目录
cp:无法统计`/x64/bin/libz.dll':没有这样的文件或目录
警告:运行命令'sh ./configure.win'的状态为1
错误:软件包'RCurl'$ b的配置失败$ b *删除'Q:/home/apps/rapptools/apps/r/R-3.1.1/library/RCurl'
install.packages中的警告:
运行命令' 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_pa​​ckages / RCurl_1.95-4.3.tar.gz'的状态为1
警告install.packages:
安装软件包 RCurl的退出状态为非零

感谢

解开似乎到今天早上,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,键入= source )


As there is no Windows binary for v1.95-4.3 yet, I need to install/compile the RCurl package from source on Windows 8.1. (64 bit).

Could someone tell me

  1. Which version of cURL I need
  2. Where the various files such as libcurl.dll etc. need to be placed exactly

Does the x64 directory mentioned in the error message below correspond to the x64 directory of the R installation?

> 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

Thanks a lot!

解决方案

Looks like the RCurl v1.95-4.3 binary file for Windows has been uploaded to CRAN as of this morning. I was dealing with the exact same issue as you, and after building the binary file from source, all was well with my usage of RCurl again!

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

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

这篇关于在Windows上从源代码编译RCurl的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆