R启动时收到消息无法加载共享对象stats.so [英] Got message unable to load shared object stats.so when R starts

查看:193
本文介绍了R启动时收到消息无法加载共享对象stats.so的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用从Linux 64上的源代码编译的R-3.0.2,当R启动时收到以下消息:

I am using R-3.0.2 compiled from source code on Linux 64 and I got the following message when R starts:

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/hlfernandez/Eclipse/workspace/Bioscope/R/linux/x64/R-3.0.2/library/stats/libs/stats.so':
  libgfortran.so.3: cannot open the shared object file: No existe el archivo o el directorio
Durante la inicialización - Mensajes de aviso perdidos
package ‘stats’ in options("defaultPackages") was not found 

有人对问题的根源有任何想法吗?很少说文件或目录不存在,因为它实际上已经存在.

Does anybody have any idea about the source of the problem? It is rare that it says that the file or directory does not exist because it actually exists.

我的操作系统是Kubuntu 13.10,也许我缺少任何库.

My operating system is Kubuntu 13.10, maybe I have any missing library.

推荐答案

在编译R到使用R的过程中,您的系统配置或运行环境有所改变,特别是libgfortran.so.3库是不再被发现.如果可能的话

Somehow your system configuration or running environment has changed between the time you compiled R and the time you are using it, in particular the libgfortran.so.3 library is no longer discoverable. Likely if you do

$ R CMD ldd /path/to/R_HOME/library/stats/libs/stats.so

您将获得成功发现的链接依赖项列表

you'll get a list of successfully discovered link dependencies

linux-vdso.so.1 =>  (0x00007fff213ff000)
libRlapack.so => /path/to/R_HOME/lib/libRlapack.so (0x00007fcafa557000)

然后失败

    libgfortran.so.3 => ???

指示未找到libgfortran.so.3.你可以去找它

indicating that libgfortran.so.3 is not found. You could go looking for it

locate libgfortran.so.3

,然后弄清楚如何使R无法访问它(也许ldconfig是您的朋友).但是libgfortran很可能位于标准位置,因此您可能已在其他操作中将其删除,需要重新安装它,或针对libgfortran的新位置重新编译R.

and then figure out what you've done to make it inaccessible to R (maybe ldconfig would be your friend). But libgfortran would most likely be in a standard location, so you've probably removed it in some other operation and need to reinstall it, or recompile R against the new location of libgfortran.

使用系统命令ldconfig(需要sudo特权)或环境变量LD_LIBRARY_PATH指定libgfortran的位置.但是实际上这些不是必须的,libgfortan应该已经使用您的OS软件包管理器安装了,并且不需要特别的额外配置.

Specify the location of libgfortran using the system command ldconfig (sudo privileges required) or the environment variable LD_LIBRARY_PATH. But really these shouldn't be necessary, libgfortan should have been installed using your OS package manager and in a way that does not require special additional configuration.

这篇关于R启动时收到消息无法加载共享对象stats.so的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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