C++ compiler cannot create executables (solution)
Just thought I would put this question out and supply the answer since I had trouble with it.
While compiling rsyncrypto-1.11, I got the error C++ compiler cannot create executables. I hadn't installed gcc-c++ AND the extracted file was not chowned to root. So, if you get this error, check that gcc-c++ is actually installed (rpm -qa |grep gcc) and then change rights on the source code directory (chown -R root:root <path to source directory>). -DennisC31 |
Yeah, usual Fedora and Red Hat installs won't include gcc, you have to specify it. Also, it's not always needed to change the source directory to root:root. Usually during compile time you're installing as root if you want the program system wide and not for an individual user account, etc.
|
NEVER compile as the root user!
Quote:
Code:
I hadn't installed gcc-c++ AND the extracted file was not chowned to root. Quote:
|
All times are GMT -5. The time now is 05:02 PM. |