If I try the configuration with -prefix=/usr/, the installation fails with the message:Ĭode: Select all download from gcc mirror Given the previous considerations, I also tried to make an installation so that the newer version does not sit along with the older one but that it actually replaces it. The final system set-up results in some programs using the old compiler version whereas others use the newer version, which leads to incompatibility problems. If I remove the old compiler with yum, some of these applications simply fail. However, the issue is that some software packages ignore this information and still look for the gcc compiler at the default directories (/usr/bin, /usr/sbin, /bin and /sbin). Compiling code works fine and the OS takes the newer version as the default compiler. This operation worked smoothly but resulted in 2 installed C compilers. I installed gcc 4.8.5 with yum (it's in the /usr subdirectory) in order to build gcc 8.3.0 from source, which is installed at /usr/local if no directory is specified. I'm having a bit of trouble with my gcc compilers in CentOS 7.
0 Comments
Leave a Reply. |