How to install g ++ 4.4 on Ubuntu?

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

How to install g ++ 4.4 on Ubuntu?

+6
ubuntu g ++
source share
7 answers

Take a look at this URL. I installed gcc-4.4 (and g ++ - 4.4), which are apparently the most official group of hackers who actually pass gcc-4.4 to ubuntu.deb. Still run without problems:

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

Sincerely.

+2
source share

I recommend you install the build-essential package containing g ++.

Enter it in the terminal:

$ sudo apt-get install build-essential

Then confirm the installation.

+17
source share

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

Edit: Try the following:

sudo apt-get install gcc-snapshot 
+2
source share
+1
source share

From your terminal type sudo apt-get install g++ . This works great for me!

+1
source share

I would recommend against this. The requirement for a new version of g ++ will require that when using any of the new 4.4 features, your users will also need a 4.4 runtime library. In doing so, I would just download the source, ./configure --ALLMYOPTS&&make && sudo make install . If you want to make gcc look like the one that comes with Ubuntu, apt-get source gcc and look in debian / rules for your configure flags (they can be used on several lines).

0
source share

If it is in the debian repository, it should be in Ubuntu without any problems. If you want to add a repository, just follow the instructions here .

0
source share

All Articles