|XP is just a number|
Re^4: [OT] Installing g++ compiler on ubuntu-12.04LTSby syphilis (Chancellor)
|on Sep 20, 2013 at 02:19 UTC||Need Help??|
Let me know what you find out regarding the g++ install
Turns out it was just a problem I had been having with 'update' for a while. Some of the downloads would fail with "Encountered a section with no Package: header" or various other errors.
According to what I had googled, the solution that should have worked was:
But that always resulted in the same (or similar) failures during sudo apt-get update.
Today, after running that 'rm' command, I took a look to see what was in /var/lib/apt/lists, and there was a 'partial' directory, which I renamed to 'partial_hidden'.
Then, when I ran the sudo apt-get update it all went smoothly and I was subsequently able to run sudo apt-get install g++.
And Inline-CPP-0.45 now builds fine on the ubuntu box.
The problem on the debian box is a little different. On that box, I can run gcc in either 32-bit mode or 64-bit mode (-m32 or -m64).
But I can run g++ only in 32-bit mode. If I attempt to run it in 64-bit mode (g++ -m64) I'm told that the only exisitng libstdc++ it can find is incompatible.
So ... I figure I need to find out how to install the 64-bit libstdc++.
I've had a bit of a google around, but haven't yet found out how to do that.
Geez ... and people call MS Windows arcane !!
(Btw, Inline-CPP-0.45 builds and tests fine on the 32-bit perl on that deb box.)