Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm building a program in a VM then deploying to another machine. This has been working for some time.

Today I've started receiving this error message when I attempt to execute my program:

/usr/lib/i386-linux-gnu/ version `GLIBCXX_3.4.19' not found

Both machines are running the same kernel version, and all packages are up to date:

$ uname -a
Linux darwin7 3.8.0-23-generic #34-Ubuntu SMP Wed May 29 20:24:54 UTC 2013 i686 i686 i686 GNU/Linux

How might I investigate and repair this issue?

share|improve this question
up vote 2 down vote accepted

In the end I realised I had different versions of gcc (g++) installed on the two machines. I was building with 4.8 and running where only 4.7 was available. Installing 4.8 on the target machine (as described here) solved the problem.

There may be a more lightweight solution that doesn't involve installing the full compiler but rather just the required library.

share|improve this answer
Yes, In my case this is also the correct answer. I am running an HPC environment with several nodes. If you are in the same situation you can test the problem with this command: for n in YOUR_NODE_NAME_ROOT_HERE{01..08}; do ssh $n "hostname; strings /usr/lib/x86_64-linux-gnu/ | grep GLIBCXX"; done – julianromera Oct 5 '15 at 19:41

More lightweight solution is to install just libstdc++ from nondefault repository:

$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install libstdc++6-4.7-dev
share|improve this answer
I had the same issue recently (GLIBCXX_3.4.20 missing), but for me installing libstdc++6-4.7-dev was not enough, I also had to install the package libstdc++6 (I don't know if it would work without installing libstdc++6-4.7-dev beforehand). – iled Jan 18 at 9:44

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.