首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法加载rggobi.dll,尽管它似乎是可用的

无法加载rggobi.dll,尽管它似乎是可用的
EN

Stack Overflow用户
提问于 2015-05-14 18:58:41
回答 2查看 3.6K关注 0票数 6

我正在尝试使用clusterfly,它依赖于rggobi

我加载clusterfly并接收此错误:

代码语言:javascript
复制
> pacman::p_load(caret, clusterfly, devtools, geonames, inTrees, mclust, party, 
+                RDSTK, reshape, ROCR, RRF, sqldf, stringi, tree, xlsx)
Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  unable to load shared object 'C:/Program Files/R/R-3.2.0/library/rggobi/libs/x64/rggobi.dll':
  LoadLibrary failure:  The specified path is invalid.

Failed with error:  ‘package ‘rggobi’ could not be loaded’
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/clusterfly_0.4.zip'
Content type 'application/zip' length 64469 bytes (62 KB)
downloaded 62 KB

package ‘clusterfly’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\hackr\AppData\Local\Temp\RtmpopFKT2\downloaded_packages

clusterfly installed
Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  unable to load shared object 'C:/Program Files/R/R-3.2.0/library/rggobi/libs/x64/rggobi.dll':
  LoadLibrary failure:  The specified path is invalid.

Failed with error:  ‘package ‘rggobi’ could not be loaded’
Warning message:
In pacman::p_load(caret, clusterfly, devtools, geonames, inTrees,  :
  Failed to install/load:
clusterfly

从根本上说,rggobi.dll并不是它应该在的地方。

因此,我尝试直接安装和加载rgobbi并获得相同的错误:

代码语言:javascript
复制
> install.packages("rggobi")
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/rggobi_2.1.20.zip'
Content type 'application/zip' length 422326 bytes (412 KB)
downloaded 412 KB

package ‘rggobi’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\hackr\AppData\Local\Temp\RtmpopFKT2\downloaded_packages
> require(rggobi)
Loading required package: rggobi
Error in inDL(x, as.logical(local), as.logical(now), ...) : 
  unable to load shared object 'C:/Program Files/R/R-3.2.0/library/rggobi/libs/x64/rggobi.dll':
  LoadLibrary failure:  The specified path is invalid.

我觉得这很奇怪,所以我查看了Windows,文件rggobi.dll就在它应该在的位置上:

在又一次加载失败之后,我的下一个想法是可能会出现某种文件权限问题。因此,从rggobi文件夹开始,我chmod 777设置最大权限。

我仍然无法加载包,我重复了chmod 777的过程,并试图对每个连续的文件夹级别和直接在rggobi.dll上进行require(gobbi)

代码语言:javascript
复制
C:\Program Files\R\R-3.2.0\library>chmod 777 rggobi
C:\Program Files\R\R-3.2.0\library>cd rggobi
C:\Program Files\R\R-3.2.0\library\rggobi>ls
DESCRIPTION  LICENSE  Meta       NEWS  data  help  libs
INDEX        MD5      NAMESPACE  R     demo  html
C:\Program Files\R\R-3.2.0\library\rggobi>chmod 777 libs
C:\Program Files\R\R-3.2.0\library\rggobi>cd libs
C:\Program Files\R\R-3.2.0\library\rggobi\libs>chmod 777 x64
C:\Program Files\R\R-3.2.0\library\rggobi\libs>chmod 777 i386
C:\Program Files\R\R-3.2.0\library\rggobi\libs>cd x64
C:\Program Files\R\R-3.2.0\library\rggobi\libs\x64>ls
rggobi.dll  symbols.rds
C:\Program Files\R\R-3.2.0\library\rggobi\libs\x64>chmod 777 rggobi.dll

最后,在吉特布上出现问题后,哈德利韦翰( Hadley Wickham )推迟到了法雷米,后者建议尝试32位R,但这也导致了同样的结果。

我如何使这个dll/包对R可用?

EN

回答 2

Stack Overflow用户

发布于 2015-08-25 13:19:33

我的解决方案是遵循以下这里的说明

如果还想安装rggobi,可以使用以下命令从R中安装所有内容:source("http://www.ggobi.org/downloads/install.r")

票数 3
EN

Stack Overflow用户

发布于 2015-12-02 08:12:10

为我工作过:

我把它粘在R里了

代码语言:javascript
复制
source("http://www.ggobi.org/downloads/install.r")

然后它问我是否要安装GTK+,然后是应用程序 ggobi。然后需要重新启动R。

如果没有找到安装在系统中的两个应用程序,R将报告它无法加载rggobi.dll。确保您不仅安装了软件包,还安装了两个应用程序。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30245209

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档