安装GCC的旧版本 [英] Installing older version of gcc

查看:602
本文介绍了安装GCC的旧版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我的Ubuntu 64位系统,该系统具有currentcly GCC 4.4上安装GCC 4.1.2。我想继续使用当前的gcc,但希望添加GCC 4.1.2为好。任何简单的方法来做到这一点,这是我的系统上安装gcc 4.1.2?

I want to install gcc 4.1.2 on my Ubuntu 64 bit system, which currentcly has gcc 4.4. I want to keep on using the current gcc, but want to add gcc 4.1.2 as well. Any simple way to do it, that is install gcc 4.1.2 on my system?

推荐答案

很简单,只是把它从存档的旧的Ubuntu的发行版。例如,我的机器(仍在运行整洁的)有

Easy, just take it from an archive of the older Ubuntu releases. For example, my machine (still running natty) has

edd@max:~$ ls -l /usr/bin/g++-*
-rwxr-xr-x 1 root root 242752 2010-09-10 04:16 /usr/bin/g++-4.3
-rwxr-xr-x 1 root root 263240 2011-03-31 15:22 /usr/bin/g++-4.4
-rwxr-xr-x 1 root root 275856 2011-04-18 09:25 /usr/bin/g++-4.5
edd@max:~$

4.1。*系列有一些问题。即使G ++ - 4.2.1,在OS X中的默认,是不是所有的伟大。但你一定要在安装此的选项。

The 4.1.* series had some issues. Even g++-4.2.1, the default on OS X, is not all that great. But you should definitely have the option of installing this.

当你做到这一点,通过各种手段去安装适当的依赖关系的包管理路线。您将获得匹配的软件包为其他依赖了。

When you do this, by all means go the package management route of installing proper dependencies. You will get matching packages for the other dependencies too.

在换句话说,你需要调整的/etc/apt/sources.list 指向一个旧版本中有这个版本。

In other words, you need to adjust /etc/apt/sources.list to point to an older release that had this version.

这篇关于安装GCC的旧版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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