Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing on Amazon AMI image fails. libgfortran.so.3: cannot open shared object file: No such file or directory #111

Open
vvelizariy opened this issue Feb 4, 2022 · 3 comments

Comments

@vvelizariy
Copy link

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?

@vvelizariy
Copy link
Author

Needs installing
sudo yum install -y compat-gcc-48-libgfortran.
Issue resolved.

@superSaen36
Copy link

I have this same issue running on public.ecr.aws/lambda/python:3.11 image but sudo yum install -y compat-gcc-48-libgfortran is not working

@tiagomlalves
Copy link
Contributor

compat-gcc-48-libgfortran doesn't seem to be available in Amazon Linux 2023. Maybe in some external repo?

I did manage to run R --version by doing the following:

sudo ln -s /usr/lib64/libgfortran.so.5 /usr/lib64/libgfortran.so.3
sudo ln -s /usr/lib64/libreadline.so.8 /usr/lib64/libreadline.so.6
sudo ln -s /usr/lib64/libicuuc.so.67 /usr/lib64/libicuuc.so.50
sudo ln -s /usr/lib64/libicui18n.so.67 /usr/lib64/libicui18n.so.50

but, I haven't validated if that works beyond that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants