[英]I installed GCC 5.2 from source and I don't know how to uninstall it on Ubuntu 15.04
The other week I installed GCC 5.2 from source on my ubuntu machine.前一周,我在 ubuntu 机器上从源代码安装了 GCC 5.2。 I wanted to be able to use fully supported cilk features.
我希望能够使用完全支持的 cilk 功能。 Now I would like to revert back to GCC 4.9.
现在我想恢复到 GCC 4.9。 How can I uninstall GCC 5.2?
如何卸载 GCC 5.2? I tried using make uninstall but as I understand this is not supported.
我尝试使用 make uninstall 但据我所知这是不支持的。
I believe you don't need to revert to the system compiler;我相信你不需要恢复到系统编译器; it is a matter of path.
这是一个路径问题。 Or set up your $PATH appropriately.
或者适当地设置你的$PATH 。 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将
/usr/bin/g++
用于系统编译器,对于您从GCC 的源代码构建的编译器,可能使用/usr/local/bin/g++
BTW, you probably could use your GCC 5.2 for almost all your future builds顺便说一句,您可能可以将 GCC 5.2 用于几乎所有未来的构建
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++
您应该使用
../gcc-5.2/configure --program-suffix=-my-5.2
对其进行配置,然后您将使用g++-my-5.2
而不是g++
Try to type g++ -v
(ie probably /usr/local/bin/g++ -v
) to understand how it was configured.尝试键入
g++ -v
(即可能是/usr/local/bin/g++ -v
)以了解它是如何配置的。
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).您可能可以删除
/usr/local/bin/
下的gcc
和g++
二进制文件以及/usr/local/
下的其他几个文件和目录(但要小心)。
Indeed, GCC does not support make uninstall
确实,GCC 不支持
make uninstall
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.