加载共享库时出错;文件太短

Sat*_*are 6 centos r shared-library

我在 CentOS 7 工作站上工作。我已经安装了 Rstudio,直到最近它都运行良好。但是现在,如果我尝试启动它,http://localhost:8787/我会收到一个错误消息Unable to connect to service

我检查了 R 是否在终端中正常工作,但出现以下错误。

/usr/lib64/R/bin/exec/R: error while loading shared libraries: /lib/libgcc_s.so.1: file too short
Run Code Online (Sandbox Code Playgroud)

如果我尝试使用以下命令再次安装 R,sudo yum install R -y我会收到以下回复

Package R-3.5.2-2.el7.x86_64 already installed and latest version
Nothing to do
Run Code Online (Sandbox Code Playgroud)

我需要做什么?

the*_*rpy 7

你有一个损坏的.so

一般来说,您可以发出以下命令来查找它所属的包:

yum provides \*/<so_file>
Run Code Online (Sandbox Code Playgroud)

在你的情况下:

$ yum provides \*/libgcc_s.so.1
[...]
libgcc-4.4.6-4.el6.i686 : GCC version 4.4 shared support library
Repo : base
Matched from:
Filename : /lib/libgcc_s.so.1
[...]
Run Code Online (Sandbox Code Playgroud)

在这种情况下,我们希望libgcc-4.4.6-4.el6.i686您将获得另一个版本。

您需要重新安装该软件包。

yum reinstall libgcc-<version>.i686
Run Code Online (Sandbox Code Playgroud)