GCC 4.8和4.7会在同一台机器上和平共处吗? [英] Would GCC 4.8 and 4.7 Peacefully Coexist on the Same Machine?

查看:304
本文介绍了GCC 4.8和4.7会在同一台机器上和平共处吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

gcc 4.7和4.8的安装是否会安装在同一台机器上?这将是一个机器与Ubuntu 12.10(Quantal Quetzal),但可能会扩展到其他机器和发行版,以后,甚至我的mac(它将是4.8和最后提供的苹果gcc在山狮)。我试图测试gcc的改进的诊断在4.8比较他们与clang,因此我需要gcc 4.8。

Would installations of gcc 4.7 and 4.8 peacefully coexist on the same machine? This would initially be a machine with Ubuntu 12.10 (Quantal Quetzal) but may extend it to other machines and distributions later, possibly even my mac (it would be 4.8 and the last supplied apple gcc on Mountain Lion). I am trying to test gcc's improved diagnostics in 4.8 comparing them to clang's, hence my need for gcc 4.8.

如何调用gcc的每次安装如果答案以上是yes?

How do you invoke each installation of gcc if the answer to the above is yes?

推荐答案

首先:你可以在你的机器上多次安装gcc。

First off: Yes, you can have multiple installations of gcc on your machine.

如果从默认的Ubuntu存储库安装gcc,您可以使用 gcc-4.6 gcc -4.7 ,.... ubuntu工具链测试库 ubuntu-toolchain-r / test 有一个gcc-4.7包。 AFAIK它还没有gcc-4.8包。还有其他存储库维护gcc包(即使对于当前的4.8开发版本;只是google的ubuntu gcc存储库)。

If you install gcc from the default Ubuntu repositories you can call the different versions using gcc-4.6, gcc-4.7, .... The Ubuntu toolchain test repository ubuntu-toolchain-r/test has a gcc-4.7 package. AFAIK it does not have a gcc-4.8 package yet. There exist other repositories which maintain gcc packages (even for the current 4.8 development versions; just google for ubuntu gcc repository).

除此之外,你总是可以编译gcc来源( http://gcc.gnu.org/install/index.html )和有多个版本( http://gcc.gnu.org/faq.html#multiple )。

Other than that you can always also compile gcc from source ( http://gcc.gnu.org/install/index.html ) and have multiple versions ( http://gcc.gnu.org/faq.html#multiple ).

这篇关于GCC 4.8和4.7会在同一台机器上和平共处吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆