如何在Ubuntu上安装g++ 4.4 ?

时间:2021-02-08 06:55:25

There is a Debian g++-4.4 package, but it's not Ubuntu. There are too many system-destroyed scary stories on the web.

有一个Debian g++-4.4包,但它不是Ubuntu。网络上有太多的系统摧毁了可怕的故事。

How can I install g++ 4.4 on Ubuntu?

如何在Ubuntu上安装g++ 4.4 ?

7 个解决方案

#1


2  

Have a look at this URL. I installed gcc-4.4 (and g++-4.4) from there, which seem to be the most official group of hackers that actually put gcc-4.4 into an ubuntu .deb. Till now running without problems :

看看这个URL。我在那里安装了gcc-4.4(和g++-4.4),这似乎是真正将gcc-4.4放入ubuntu的最正式的黑客团队。至今没有问题:

https://launchpad.net/~ubuntu-toolchain/+archive/ppa

https://launchpad.net/ ubuntu-toolchain / +档案/ ppa

Regards.

的问候。

#2


17  

I recomend you install build-essential package that contains g++.

我建议您安装包含g++的build-essential包。

Type it in your terminal:

在你的终端输入:

$ sudo apt-get install build-essential

$ sudo apt-get安装-essential。

Then confirm installation.

然后确认安装。

#3


2  

Debian packages should work on Ubuntu. It is based on Debian.

Debian软件包应该在Ubuntu上运行。它是基于Debian的。

Edit: Try this :

编辑:试试这个:

sudo apt-get install gcc-snapshot

#4


1  

https://launchpad.net/~ubuntu-toolchain/%2Barchive/ppa

https://launchpad.net/ ubuntu-toolchain / % 2 barchive / ppa

#5


1  

From your terminal type sudo apt-get install g++. It's been working great for me!

从终端类型sudo apt-get安装g++。这对我来说太棒了!

#6


0  

If it is in a debian repository, it should would under Ubuntu no problem. If you would like to add a repository, simply follow the directions here.

如果它位于debian存储库中,那么它应该在Ubuntu中没有问题。如果您想添加一个存储库,只需遵循这里的说明即可。

#7


0  

I would recommend against it. Requiring a newer version of g++ will require that if you use any new features of 4.4 then your users will also require a 4.4 runtime library. That being said, I would just download the source, ./configure --ALLMYOPTS&&make && sudo make install. If you want to make a gcc similar to the one shipped with Ubuntu, apt-get source gcc and look in debian/rules for their configure flags (they may be applied on multiple lines).

我建议你不要这样做。需要一个新版本的g++将要求如果您使用4.4的任何新特性,那么您的用户还需要一个4.4运行时库。也就是说,我只需要下载源代码。/配置—allmyopts&make && & sudo进行安装。如果您想要使gcc类似于Ubuntu附带的gcc,那么可以通过apt-get源gcc并查看debian/rules的配置标志(它们可以在多行中应用)。

#1


2  

Have a look at this URL. I installed gcc-4.4 (and g++-4.4) from there, which seem to be the most official group of hackers that actually put gcc-4.4 into an ubuntu .deb. Till now running without problems :

看看这个URL。我在那里安装了gcc-4.4(和g++-4.4),这似乎是真正将gcc-4.4放入ubuntu的最正式的黑客团队。至今没有问题:

https://launchpad.net/~ubuntu-toolchain/+archive/ppa

https://launchpad.net/ ubuntu-toolchain / +档案/ ppa

Regards.

的问候。

#2


17  

I recomend you install build-essential package that contains g++.

我建议您安装包含g++的build-essential包。

Type it in your terminal:

在你的终端输入:

$ sudo apt-get install build-essential

$ sudo apt-get安装-essential。

Then confirm installation.

然后确认安装。

#3


2  

Debian packages should work on Ubuntu. It is based on Debian.

Debian软件包应该在Ubuntu上运行。它是基于Debian的。

Edit: Try this :

编辑:试试这个:

sudo apt-get install gcc-snapshot

#4


1  

https://launchpad.net/~ubuntu-toolchain/%2Barchive/ppa

https://launchpad.net/ ubuntu-toolchain / % 2 barchive / ppa

#5


1  

From your terminal type sudo apt-get install g++. It's been working great for me!

从终端类型sudo apt-get安装g++。这对我来说太棒了!

#6


0  

If it is in a debian repository, it should would under Ubuntu no problem. If you would like to add a repository, simply follow the directions here.

如果它位于debian存储库中,那么它应该在Ubuntu中没有问题。如果您想添加一个存储库,只需遵循这里的说明即可。

#7


0  

I would recommend against it. Requiring a newer version of g++ will require that if you use any new features of 4.4 then your users will also require a 4.4 runtime library. That being said, I would just download the source, ./configure --ALLMYOPTS&&make && sudo make install. If you want to make a gcc similar to the one shipped with Ubuntu, apt-get source gcc and look in debian/rules for their configure flags (they may be applied on multiple lines).

我建议你不要这样做。需要一个新版本的g++将要求如果您使用4.4的任何新特性,那么您的用户还需要一个4.4运行时库。也就是说,我只需要下载源代码。/配置—allmyopts&make && & sudo进行安装。如果您想要使gcc类似于Ubuntu附带的gcc,那么可以通过apt-get源gcc并查看debian/rules的配置标志(它们可以在多行中应用)。