You are not logged in.

#1 2018-05-25 21:06:55

iokiae
Member
Registered: 2018-03-11
Posts: 6

glibfortran.so.4 missing error after update to gcc 8

I get a message about libgfortran.so.4 missing when I try to compile OpenMP program. I have repaired it by linking /usr/lib/libgfortran.so.5 to /usr/lib/libgfortran.so.4
Does any one of you more experienced people know why this happens and if my fix is alright?

Offline

#2 2018-05-25 21:17:11

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: glibfortran.so.4 missing error after update to gcc 8

Making that symlink was a horrible mistake. The solution is to rebuild whatever it is you have that's linked against the old version.

Offline

#3 2018-05-25 21:27:39

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,718
Website

Re: glibfortran.so.4 missing error after update to gcc 8

Please remove that symlink and post the commands you are using that are reporting the error, and the actual output.

https://bbs.archlinux.org/viewtopic.php?id=57855

Mod note: not a programming issue, moving to NC.

Last edited by WorMzy (2018-05-25 21:29:09)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2018-06-06 08:54:59

iokiae
Member
Registered: 2018-03-11
Posts: 6

Re: glibfortran.so.4 missing error after update to gcc 8

Sorry for not answering for a long time.
Error Message that I recieve from g++ -fopenmp main.cpp is:

 /home/.../nBodyProblem: error while loading shared libraries: libgfortran.so.4: cannot open shared object file: No such file or directory 

Also the same problem happens to be present on my friends machine. Both of us use OpenMP and Armadillo library.

Offline

#5 2018-06-06 09:17:30

iokiae
Member
Registered: 2018-03-11
Posts: 6

Re: glibfortran.so.4 missing error after update to gcc 8

I have found a solution. I just had to update the Armadillo library after gcc update. How can I mark the problem as solved?

Offline

#6 2018-06-06 09:26:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: glibfortran.so.4 missing error after update to gcc 8

Edit the title in your first post and prepend [SOLVED] also this should be a good lesson: If you see an error like this in the future, make sure you rebuild your external dependencies. AUR packages are your responsibility.

Last edited by V1del (2018-06-06 09:27:01)

Offline

Board footer

Powered by FluxBB