Reputation: 12185
The other week I installed GCC 5.2 from source on my ubuntu machine. I wanted to be able to use fully supported cilk features. Now I would like to revert back to GCC 4.9. How can I uninstall GCC 5.2? I tried using make uninstall but as I understand this is not supported.
Upvotes: 2
Views: 1369
Reputation: 1
I believe you don't need to revert to the system compiler; it is a matter of path. Or set up your $PATH appropriately. Use /usr/bin/g++
for the system compiler, and probably /usr/local/bin/g++
for the compiler you have built from source code from GCC
BTW, you probably could use your GCC 5.2 for almost all your future builds
It depends how you have configured it.
You should have configured it with ../gcc-5.2/configure --program-suffix=-my-5.2
then you would use g++-my-5.2
instead of g++
Try to type g++ -v
(i.e. probably /usr/local/bin/g++ -v
) to understand how it was configured.
You probably could remove the gcc
and g++
binaries under /usr/local/bin/
and several other files and directories under /usr/local/
(but be careful).
Indeed, GCC does not support make uninstall
Upvotes: 2