Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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/libstdc++.so.6: 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

2 Answers 2

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
up vote 0 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

Your Answer

 
discard

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.