How do I install g++ 4.5 on ubuntu 10.10?
NoOp
glgxg at sbcglobal.net
Fri Nov 19 04:47:52 UTC 2010
On 11/18/2010 07:58 PM, Mark wrote:
> On Thu, Nov 18, 2010 at 6:55 PM, K. Frank <kfrank29.c at gmail.com> wrote:
>> Hi Mark -
>>
>
> I'll be brief. I misunderstood nothing.
>
> Clearly, g++ (version 4.4) is *the* Ubuntu Maverick distribution
> package for the GNU C++ compiler, not g++-4.5. g++-4.5 is a newer
> version that has not been blessed to be part of the distro yet.
That is incorrect. Just like any other package in the main repositories,
g++-4.5 is indeed a "blessed" package.
As you will see:
$ apt-cache policy g++-4.5
g++-4.5:
Installed: 4.5.1-7ubuntu2
Candidate: 4.5.1-7ubuntu2
Version table:
*** 4.5.1-7ubuntu2 0
500 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64
Packages
100 /var/lib/dpkg/status
is from the "Main" repository. It is not from universe, restricted,
multiverse, backports, or proposed.
Here are some links that may help you understand:
https://help.ubuntu.com/community/Repositories/Ubuntu
<quote>
Main - Officially supported software.
</quote>
https://help.ubuntu.com/community/UbuntuBackports
https://launchpad.net/ubuntu/+source/gcc-4.5
>
> IOW, they *are* different packages. You cannot get one from the other. Period.
They are indeed different packages. However you can happily have both on
your system if you wish:
$ apt-cache policy g++
g++:
Installed: 4:4.4.4-1ubuntu2
Candidate: 4:4.4.4-1ubuntu2
Version table:
*** 4:4.4.4-1ubuntu2 0
500 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64
Packages
100 /var/lib/dpkg/status
$ apt-cache policy g++-4.5
g++-4.5:
Installed: 4.5.1-7ubuntu2
Candidate: 4.5.1-7ubuntu2
Version table:
*** 4.5.1-7ubuntu2 0
500 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64
Packages
100 /var/lib/dpkg/status
Nothing will blow up if you have both.
>
> As for what is inside the packages, again, they are different packages
> - one has been blessed as *the* official package that is part of the
> distribution, one has not. That's all.
>
> You can want this not to be the case, or say you don't understand it,
> but it will be the way it is until the powers that be bless a new
> version as *the* official gcc/g++ for this distribution. It's that
> simple - ne need to make it harder than it is.
Again, incorrect.
Please, before offering advise as to what is an official "blessed"
package or not, review the above links regarding repositories & packages.
Here are a few links that you might wish to bookmark for future reference:
https://help.ubuntu.com/
https://help.ubuntu.com/10.10/index.html
https://help.ubuntu.com/community
https://help.ubuntu.com/community/CommonQuestions
https://help.ubuntu.com/community/SoftwareManagement
https://help.ubuntu.com/community/InstallingSoftware
etc.
More information about the ubuntu-users
mailing list