在12.04上安装gcc4.7时,GCC不会从4.6切换到4.7 [英] When installing gcc4.7 on 12.04, GCC doesn't switch from 4.6 to 4.7
问题描述
我目前安装了gcc4.7和gcc4.7-base等软件包,但当我调用
<$ p $时,GCC似乎仍然在使用4.6 p> gcc --version
如果我真的可以编译源代码现在需要它,但我打算将一些旧代码转换为使用C ++ 11来获得乐趣。如果任何人有任何关于如何从4.6切换到4.7的建议,请告诉。
我遵循以下指南:
https://askubuntu.com/questions/113291/installing-gcc-4-7
编辑:修正了这个问题,更新了/usr/bin/gcc-4.7的链接
尝试运行以下命令以查看gcc的位置:
ls -l`which gcc `
我想说你可能需要做的几率是更新链接再次我不能检查,因为我目前没有启动到Linux)
I currently have the gcc4.7 and the gcc4.7-base, etc., packages installed but GCC seems to still be using 4.6 when I call
gcc --version
I could compile the source code if I really needed it now, but I plan on converting some old code to have fun with C++11. If anyone has any suggestions on how to switch from 4.6 to 4.7 do tell.
I followed the guide from here :
https://askubuntu.com/questions/113291/installing-gcc-4-7
Edit: Fixed the issue, updated link to /usr/bin/gcc-4.7
Try running the following to see where gcc is located:
ls -l `which gcc`
I'd say that odds are all you may need to do is update the link (but then again I can't check as I'm not booted into Linux at the moment)
这篇关于在12.04上安装gcc4.7时,GCC不会从4.6切换到4.7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!