R installs to both /usr/lib/R & /usr/lib64/R on Manjaro x86_64

While faffing around in R I noticed that r is installed in two places on the system:

  • /usr/lib/R
  • /usr/lib64/R

Running diff on the two directories results in no output, suggesting the two are identical. It’s not even the case that the /usr/lib64/R directory is a sym-link to the other. It’s just a copy. I’ve checked the Arch Linux PKGBUILD for R, but this contains no reference the to /usr/lib64/R directory.

Running Sys.getenv() from inside R, reveals that both directories are in use:

  • R_HOME -> /usr/lib64/R
  • R_LIBS_SITE -> /usr/lib/R/library

On Manjaro ARM no second installation directory exists, and the aforementioned environmental variables are set to:

  • R_HOME -> /usr/lib/R
  • R_LIBS_SITE -> /usr/lib/R/library

On x86_64, shouldn’t it be the case that either the /usr/lib64/R directory should not exist, or should be a sym-link to /usr/lib/R?

[11:43:07][aragorn] > ls -l /usr
total 24
drwxr-xr-x 1 root root 100152 Oct  3 19:25 bin
drwxr-xr-x 1 root root  35510 Oct  1 18:23 include
drwxr-xr-x 1 root root 235704 Oct  1 18:33 lib
drwxr-xr-x 1 root root  32468 Oct  1 18:16 lib32
lrwxrwxrwx 1 root root      3 Sep 26 14:06 lib64 -> lib
drwxr-xr-x 1 root root     72 Mar 12  2019 local
lrwxrwxrwx 1 root root      3 Sep 26 14:06 sbin -> bin
drwxr-xr-x 1 root root   7208 Oct  3 19:25 share
drwxr-xr-x 1 root root     20 Jul 19 23:08 src

/usr/lib64 is a symlink to /usr/lib. :wink:


Ah… I was looking too far down the tree for the sym-link. Thanks.

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.