[SOLVED - but now with another error] error while loading shared libraries: libgfortran.so.3

Hello,

After a recent upgrade I am unable to start the R programming environment. I am not sure which upgrade as I have not used R for about 4-5 weeks.

Typing “R” at the command line gives the message:

$ 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
$
$ equery g  dev-lang/R | grep libgfortran
$ 
$ eix libgfortran*
No matches found

Any help would be greatly appreciated!

Thanks, Bill

On further investigation I find that libgfortran.so.3 has been upgraded:

 # ls -l /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libgfortran*
-rw-r--r-- 1 root root 3803288 Jun 22 17:36 /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libgfortran.a
lrwxrwxrwx 1 root root      20 Jun 22 17:36 /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libgfortran.so -> libgfortran.so.4.0.0
lrwxrwxrwx 1 root root      20 Jun 22 17:36 /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libgfortran.so.4 -> libgfortran.so.4.0.0
-rwxr-xr-x 1 root root 1947464 Jun 22 17:36 /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libgfortran.so.4.0.0
-rw-r--r-- 1 root root     269 Jun 22 17:36 /usr/lib64/gcc/x86_64-pc-linux-gnu/7.3.0/libgfortran.spec

However, in a fresh install of Calculate Linux I installed R this morning and it still fails to start with the error in my first post.

Help needed please!
Thanks, Bill

Hi Bill,
Try to update the system (cl-update) and try again.

Fantastic, that worked! Thanks Alexander. What change did you make?
Cheers, Bill

Not all dependencies were recompiled in binary packages.

Thanks Alex,

R now starts, but gives the messages:

Error: package or namespace load failed for ‘stats’ in dyn.load(file, DLLpath = DLLpath, ...):
 unable to load shared object '/usr/lib64/R/library/stats/libs/stats.so':
  libgfortran.so.3: cannot open shared object file: No such file or directory
During startup - Warning message:
package ‘stats’ in options("defaultPackages") was not found

So we still have a libgfortran.so.3 problem.

Thanks, Bill