in reply to [OT] Installing g++ compiler on ubuntu-12.04LTS

debian m64 libstdc -> Debian -- Details of package libstdc++6 in sid -> http://packages.debian.org/lib64stdc++6 -> Debian -- Details of package lib64stdc++6 in sid

So try apt-get install lib64stdc++6
then  g++ -m64 ought to work

  • Comment on Re: [OT] Installing g++ compiler on ubuntu-12.04LTS ( apt-get install lib64stdc++6 )
  • Download Code

Replies are listed 'Best First'.
Re^2: [OT] Installing g++ compiler on ubuntu-12.04LTS ( apt-get install lib64stdc++6 )
by syphilis (Archbishop) on Sep 21, 2013 at 00:38 UTC
    So try apt-get install lib64stdc++6

    Thanks Anonymous Monk. Running that command indicates that it was already installed and up to date. Closer inspection revealed that /usr/lib64/libstdc++.so.6.0.17 and a symlink to it (/usr/lib64/libstdc++.so.6) were already present.

    Creating another symlink (/usr/lib64/libstdc++.so) to the .so.6.0.17 object fixes my problem.
    I presume that's the right way to fix it ? Seems odd that the /usr/lib64/libstdc++.so symlink was not already present.

    I can now run g++ in either 64-bit mode or 32-bit mode, and can successfully build and install Inline-CPP-0.45 in either 32-bit or 64-bit builds of perl. (David, the correct g++ compiler and options are automatically set by the Inline-CPP Makefile.PL. It all now works fine for me.)

    Thanks, guys !!

    Cheers,
    Rob

      Creating another symlink (/usr/lib64/libstdc++.so) to the .so.6.0.17 object fixes my problem. I presume that's the right way to fix it ? Seems odd that the /usr/lib64/libstdc++.so symlink was not already present.

      Yes, I think so (right way), and I also think it odd it didn't happen already -- but I've seen my share of almost-complete/correct binary packages :)