You are not logged in.
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
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
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
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
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
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