I just got back to working in R on Arch, but got the following error when trying to open R
▶ R
/usr/lib64/R/bin/exec/R: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory
This is my r
info
▶ pacman -Qi r
Name : r
Version : 3.4.1-1
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]
gcc-fortran: needed to compile some CRAN packages [installed]
Required By : rstudio-desktop-bin
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 58.13 MiB
Packager : Antonio Rojas <arojas@archlinux.org>
Build Date : Fri 30 Jun 2017 10:45:26 AM PDT
Install Date : Sat 15 Jul 2017 11:47:54 PM PDT
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature
symlink
▶ ls -halt /usr/lib/libgfortran.so.*
-rwxr-xr-x 1 root root 7.1M Jun 30 05:20 /usr/lib/libgfortran.so.4.0.0
lrwxrwxrwx 1 root root 20 Jun 30 05:20 /usr/lib/libgfortran.so.4 -> libgfortran.so.4.0.0
I found the following question R v3.4.0-2 unable to find libgfortran.so.3 on Arch, but I was unable to follow the solution. When a tried to yaourt
the r-devel
package I was getting package build errors. I also tried to use a different version of gfortran, but ran into problems there. I was wondering if anyone could break the solution to this problem down a little more.