You are not logged in.
So, I tried to update gcc so I could use the 'std_lib_facilities.h' (which is needed for Bjarne Stroustrup's book "Principles and Practice using C++".) But I'm getting the following message when trying to run g++/gcc (the problem is a issue for both of them) after I updated it:
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.1/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
I've tried finding libmpfr.so.4 in /usr/local/lib so I could create a symlink to /usr/lib or just export it's directory to the PATH, without any success.
Can anyone help me, please?
Thanks in advance.
Last edited by lithiumx (2018-01-26 18:17:57)
Offline
Offline
Does that mean I'll have to reinstall all of my current Arch installation? I think I'll just try to install GCC from source, then.
Offline
Offline
Where did you get that idea? Just update your system.
I tried to update it and it didn't work.
Offline
arojas wrote:Does that mean I'll have to reinstall all of my current Arch installation? I think I'll just try to install GCC from source, then.
If a partial upgrade scenario has been created, and binaries are broken because they cannot find the libraries they are linked against, do not "fix" the problem simply by symlinking. Libraries receive soname bumps when they are not backwards compatible. A simple pacman -Syu to a properly synced mirror will fix the problem as long as pacman is not broken.
Offline
lithiumx wrote:arojas wrote:Does that mean I'll have to reinstall all of my current Arch installation? I think I'll just try to install GCC from source, then.
wiki wrote:If a partial upgrade scenario has been created, and binaries are broken because they cannot find the libraries they are linked against, do not "fix" the problem simply by symlinking. Libraries receive soname bumps when they are not backwards compatible. A simple pacman -Syu to a properly synced mirror will fix the problem as long as pacman is not broken.
Oh, thank you, I didn't notice that. I'm so stupid. I'm updating it now, thank you a lot. If it works, I'll mark the thread as solved.
Offline