R v3.4.0-2无法在Arch上找到libgfortran.so.3

Chr*_*s C 12 r gfortran archlinux pacman-package-manager

我刚刚度假一个月,所以无法说明发生这种情况的确切点,但是R从官方的Arch repos现在无法启动,引用

/usr/lib64/R/bin/exec/R: error while loading shared libraries: 
libgfortran.so.3: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)

我认为也许一个符号链接被错误地放置或销毁,所以我查看了/ usr/lib来尝试找到它:

ls -halt /usr/lib/libgfortran.so.*

lrwxrwxrwx 1 root root   20 May 16 03:01 /usr/lib/libgfortran.so.4 -> libgfortran.so.4.0.0
-rwxr-xr-x 1 root root 7.1M May 16 03:01 /usr/lib/libgfortran.so.4.0.0
Run Code Online (Sandbox Code Playgroud)

libfortran.so.3libgfortran.so.4Arch 取代?如果是这样,是否有任何可能的解决方法R来运行旧版本?


pacman -Qi r

Name            : r
Version         : 3.4.0-2
Description     : Language and environment for statistical computing and graphics
Architecture    : x86_64
URL             : http://www.r-project.org/
Licenses        : GPL
Groups          : None
Provides        : None
Depends On      : blas  lapack  bzip2  libpng  libjpeg  libtiff  ncurses  pcre  readline  zlib  perl  gcc-libs  libxt  libxmu  pango  xz  desktop-file-utils  zip  unzip
Optional Deps   : tk: tcl/tk interface [installed]
                  texlive-bin: latex sty files [installed]
Required By     : None
Optional For    : graphviz
Conflicts With  : None
Replaces        : None
Installed Size  : 58.04 MiB
Packager        : Evangelos Foutras <evangelos@foutrelis.com>
Build Date      : Tue 25 Apr 2017 05:04:31 AM EDT
Install Date    : Tue 20 Jun 2017 12:27:06 PM EDT
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : Signature
Run Code Online (Sandbox Code Playgroud)

编辑:如果有其他人遇到这个,r-devel AUR正确编译并运行,所以希望在下一个版本颠簸时问题将得到解决.

Vla*_*r F 8

实际上,gfortran 7将ligfortran版本颠覆到版本4.请参阅http://gcc.1065356.n8.nabble.com/patch-fortran-PR77828-Linking-gfortran-7-compiled-program-with-libgfortran-of-5 -x-allowed-but-crashes-td1311625.html 它不向后兼容,一些API已经改变.

如果您安装旧版本的gfortran,您将获得libgfortran.so.3.在您的系统中拥有多个版本是完全没问题的.也许有一种方法如何为版本4重建R,但它可能会更多的工作.请参阅其他答案如何重建软件/sf/answers/3552129381/