in reply to Re^3: [OT] Installing g++ compiler on ubuntu-12.04LTS
in thread [OT] Installing g++ compiler on ubuntu-12.04LTS
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:
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.)
Cheers,
Rob
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.sudo rm /var/lib/apt/lists/* -vf 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.)
Cheers,
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^5: [OT] Installing g++ compiler on ubuntu-12.04LTS
by davido (Cardinal) on Sep 20, 2013 at 04:12 UTC | |
by BrowserUk (Patriarch) on Sep 20, 2013 at 05:36 UTC | |
by syphilis (Archbishop) on Sep 20, 2013 at 10:04 UTC |
In Section
Seekers of Perl Wisdom