简体   繁体   English

在R中执行库(程序包)会报告该程序包是为i386构建的,是否可以将其安装在x86_64系统上?

[英]Executing library(package) in R reports that package was built for i386, can it be installed on an x86_64 system?

I'm attempting to use an add-on R package UBbipl but am unable to add it as a library from within R once installed. 我正在尝试使用附加的R包UBbipl,但是一旦安装后就无法从R内将其添加为库。 Executing library(UBbipl) returns 执行library(UBbipl)返回

Error: package ‘UBbipl’ was built for i386-pc-mingw32

The README (see here ) for the package states that i386 and x86_64 architectures are supported. 程序包的自述文件(请参阅此处 )指出支持i386和x86_64体系结构。 I've consulted tutorials on creating packages (amongst other things) but I don't know enough about R (or its packages) to diagnose the problem (I think). 我已经咨询了有关创建软件包的教程(以及其他内容),但是我对R(或其软件包)的了解还不足以诊断问题(我认为)。

R.Version()$arch returns x86_64 , I'm running R version 2.14.1 and Sys.info() confirms this architecture for my machine, as well as the fact that I'm running Linux. R.Version()$arch返回x86_64 ,我正在运行R版本2.14.1,而Sys.info()确认了我的计算机的这种体系结构,以及我正在运行Linux的事实。 To install it I created a tar.gz file from the zip file and ran R CMD INSTALL UBbipl_1.0.tar.gz as root. 要安装它,我从zip文件中创建了一个tar.gz文件,并以root用户身份运行R CMD INSTALL UBbipl_1.0.tar.gz This completes successfully, reporting 这成功完成,报告

* installing to library ‘/usr/local/lib/R/site-library’
* installing *binary* package ‘UBbipl’ ...
* DONE (UBbipl)

I used the --no-multiarch and --arch x86_64 options but this has not effect on the error message. 我使用了--no-multiarch--arch x86_64选项,但这对错误消息没有影响。 Additionally, the README states that one should 此外,自述文件还指出

Download and save the appropriate version of UBbipl to your computer. 将适当的UBbipl版本下载并保存到您的计算机中。 Then Install the package from within R. 然后从R中安装软件包。

but there is only one file available for download (see previous link) so I'm unsure as to whether I'm doing something wrong or if I require a different package. 但只有一个文件可供下载(请参阅上一个链接),因此我不确定我做错了什么还是需要其他软件包。 It would be great if someone could point me in the right direction. 如果有人能指出我正确的方向,那就太好了。

Many thanks. 非常感谢。

I'm going to answer my own question to close it. 我将回答我自己的问题以将其关闭。 themel technically provided the answer in the comments. themel从技术上在评论中提供了答案。 The R package is a Windows binary package built for Windows. R软件包是为Windows构建的Windows二进制软件包。 The source package was not provided and I was thus unable to use it in R on a linux machine. 没有提供源软件包,因此我无法在Linux机器上的R中使用它。

The file 文件

http://www.wiley.com/legacy/wileychi/gower/supp/UBbipl_3.0.4.tar.gz http://www.wiley.com/legacy/wileychi/gower/supp/UBbipl_3.0.4.tar.gz

seems to be a standard R source file, with no complied elements. 似乎是一个标准的R源文件,没有任何元素。 It has the first Fortran program source I've seen in twenty years, but ought to work. 它具有二十年来我见过的第一个Fortran程序源,但是应该可以使用。 It certainly installed fine with R CMD INSTALL UBbipl_3.0.4.tar.gz once the two dependencies I did'nt already have - 'rgl' and 'numDeriv' were installed. 一旦安装了我没有的两个依赖项-'rgl'和'numDeriv',它肯定会与R CMD INSTALL UBbipl_3.0.4.tar.gz一起安装。

Regards, Anthony Staines 问候,安东尼·斯坦斯

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 是什么决定了在64位机器上构建的32位库是否需要x86_64或i386依赖? - What determines if a 32-bit library built on a 64-bit machine needs x86_64 or i386 dependencies? timer_create在i386系统上导致分段错误,但在x86_64系统上未引起分段错误(linux) - timer_create causing segmentation fault on i386 system, but not x86_64 system(linux) 分段故障组装i386:x86_64 - Segmentation fault assembly i386:x86_64 适用于i386和x86_64的Linux单个二进制文件 - Linux single binary for i386 and x86_64 i386:x64-32 vs i386 vs i386:x86_64之间的差异 - difference between i386:x64-32 vs i386 vs i386:x86_64 机器类型(C ++ librairies):i386 vs x86_64 - machine type (C++ librairies) : i386 vs x86_64 i386 输入文件的架构与 i386:x86-64 不兼容 - Architecture of i386 input file is incompatible with i386:x86-64 make命令给出了不兼容的i386架构(i386x86-64) - make command gives Incompatible i386 architecture(i386x86-64) i386 和 x86-64 上的 UNIX 和 Linux 系统调用(和用户空间函数)的调用约定是什么 - What are the calling conventions for UNIX & Linux system calls (and user-space functions) on i386 and x86-64 GCC:输入文件“ ../window.ui.o”的i386体系结构与i386:x86-64输出不兼容 - GCC: i386 architecture of input file `../window.ui.o' is incompatible with i386:x86-64 output
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM