How do I install g++ 4.5 on ubuntu 10.10?
K. Frank
kfrank29.c at gmail.com
Fri Nov 19 01:59:06 UTC 2010
Hello NoOp -
Yes, thanks, this seems to work. I do have a
some follow-up questions.
On Thu, Nov 18, 2010 at 7:46 PM, NoOp <glgxg at sbcglobal.net> wrote:
> On 11/18/2010 04:12 PM, K. Frank wrote:
> ...
>> Well, here's one example:
>>
>> I right click on:
>> gcc-4.5_4.5.1-10ubuntu1_i386.deb
>> and select "Open With Ubuntu Software Center."
>> Dependency is not satisfiable: gcc-4.5-base (= 4.5.1-10ubuntu1)
>> ...
> My apologies for my previous post... Try this:
>
> $ sudo apt-get install g++-4.5
>
> that should yield something along the lines of:
>
> Reading package lists... Done
> ...
> I _think_ that is what you are looking for. If so, you may also want to
> go back later and install the suggested packages. Or:
That (mostly) did the trick.
My first question:
What is the difference between:
sudo apt-get install g++-4.5 (which seems to work)
and
sudo apt-get install g++ (which installed 4.4)
It never occurred to me to specify g++-4.5. Is there some
sort of hierarchical naming convention going on?
Second question:
How can I get g++ to resolve to version 4.5?
The command g++ is not known (although g++-4.5 is), e.g.,
$ g++ --version
The program 'g++' can be found in the following packages:
* g++
* pentium-builder
Try: sudo apt-get install <selected package>
while
$ g++-4.5 --version
g++-4.5 (Ubuntu/Linaro 4.5.1-7ubuntu2) 4.5.1 ...
Third question:
Not that I care, but suppose I had wanted to install
4.5.1-10ubuntu1 (as I tried to do with dpkg)? Why
did "apt-get install g++-4.5" resolve to 4.5.1-7? Is
4.5.1-10 not compatible with ubuntu 10.10?
Thanks for your help, and for any additional clarification
you can provide.
K. Frank
More information about the ubuntu-users
mailing list