Hello.
Got same issue on AWS AMI image
$ cat /proc/version
Linux version 4.14.256-197.484.amzn2.x86_64 (mockbuild@ip-10-0-37-156) (gcc version 7.3.1 20180712 (Red Hat 7.3.1-13) (GCC)) #1 SMP Tue Nov 30 00:17:50 UTC 2021
$ curl -O https://cdn.rstudio.com/r/centos-7/pkgs/R-3.6.3-1-1.x86_64.rpm
$ sudo yum install -y R-3.6.3-1-1.x86_64.rpm
$ opt/R/3.6.3/bin/Rscript --version
R scripting front-end version 3.6.3 (2020-02-29)
$ /opt/R/3.6.3/bin/R --version
/opt/R/3.6.3/lib/R/bin/exec/R: error while loading shared libraries: libgfortran.so.3: cannot open shared object file: No such file or directory
Could you please advice anything to solve issue?