When I try to link C++ code (with either g++ or gcc) using sudo make install, for some reason I keep getting the following error:
/usr/local/bin/ld: this linker was not configured to use sysroots
One obvious problem is that my PATH variable keeps getting reset to /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/gamesand I don't know how to permanently reset it (where does the terminal read this information?), but even when resetting PATH to /usr/sbin:/usr/bin:/sbin:/bin:/usr/games the linker error persists - the linker is being found in /usr/local/bin instead of /usr/bin, and I don't know how to change it back (and restore it to defaults).
Any advice?
Bookmarks