Hi,

I'm interested in installing Inline::CPP on my ubuntu box.
Obviously I need g++ for that but, although gcc-4.6.3 is installed, I don't seem to have g++:
sisyphus@sisyphus5-desktop:~$ g++ -v The program 'g++' can be found in the following packages: * g++ * pentium-builder Try: sudo apt-get install <selected package> sisyphus@sisyphus5-desktop:~$
So I tried:
sisyphus@sisyphus5-desktop:~$ sudo apt-get install g++ Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: g++:i386 : Depends: cpp:i386 (>= 4:4.6.3-1ubuntu5) but it is not goin +g to be installed Depends: gcc:i386 (>= 4:4.6.3-1ubuntu5) but it is not goin +g to be installed Depends: g++-4.6:i386 (>= 4.6.3-1~) but it is not going to + be installed Depends: gcc-4.6:i386 (>= 4.6.3-1~) but it is not going to + be installed E: Unable to correct problems, you have held broken packages. sisyphus@sisyphus5-desktop:~$
and I also tried:
sisyphus@sisyphus5-desktop:~$ sudo apt-get install pentium-builder Reading package lists... Done Building dependency tree Reading state information... Done Package pentium-builder is not available, but is referred to by anothe +r package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'pentium-builder' has no installation candidate sisyphus@sisyphus5-desktop:~$
and (although I already have a very serviceable gcc-4.6.3 and make), I tried:
sisyphus@sisyphus5-desktop:~$ sudo apt-get install build-essential Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: build-essential : Depends: g++ (>= 4:4.4.3) but it is not installable Depends: dpkg-dev (>= 1.13.5) but it is not going t +o be installed E: Unable to correct problems, you have held broken packages. sisyphus@sisyphus5-desktop:~$
Any advice on how to install g++ ?

Cheers,
Rob

In reply to [OT] Installing g++ compiler on ubuntu-12.04LTS by syphilis

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.