R版本3.4.0 rgdal无法加载 [英] R version 3.4.0 rgdal will not load

查看:66
本文介绍了R版本3.4.0 rgdal无法加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近安装了最新版本的R(3.4.0),并安装了所有软件包,但是由于某些原因,rgdal无法加载,并且我收到此消息:

I recently installed the latest version of R (3.4.0) and installed all of my packages, but for some reason rgdal will not load and I'm getting this message:

图书馆(rgdal)错误:dyn.load中的"rgdal"包或名称空间加载失败(文件,DLLpath = DLLpath,...):无法加载共享库'/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgdal/libs/rgdal.so':dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgdal/libs/rgdal.so,6):库未加载:/Builds/unix/recipes/build/gdal-2.1.3-obj/libgdal.dylib引用自:/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgdal/libs/rgdal.so原因:找不到图片

library(rgdal) Error: package or namespace load failed for ‘rgdal’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgdal/libs/rgdal.so': dlopen(/Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgdal/libs/rgdal.so, 6): Library not loaded: /Builds/unix/recipes/build/gdal-2.1.3-obj/libgdal.dylib Referenced from: /Library/Frameworks/R.framework/Versions/3.4/Resources/library/rgdal/libs/rgdal.so Reason: image not found

我转到了rgdal/libs目录,并且存在rgdal.so文件,但是由于某些原因不想加载.其他人有这个问题或类似的问题吗?

I went to the rgdal/libs directory and the rgdal.so file exists, but for some reason doesn't want to load. Anyone else have this issue or a similar one?

推荐答案

是否已安装GDAL OS X框架?如果不是,请转到威廉·肯格斯伯里(William Kyngesburye)的网站,按以下顺序下载并安装框架:

Do you have GDAL OS X frameworks installed? If not, go to William Kyngesburye's site, download and install frameworks in the following order:

  1. GDAL完成
  2. GSL 框架
  3. FreeType
  4. 开罗

完成此安装后,请执行此答案的步骤2和3,然后从R安装rgdal.在 install.packages 命令中使用这些规范的应用程序.

After completing this installation, go for steps 2 and 3 of this answer, and then, install rgdal from R.app using these specifications in the install.packages command.

它为我解决了问题,希望对您有帮助!

It solved the problem for me, hope it helps you!

这篇关于R版本3.4.0 rgdal无法加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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