CauldronDevelopmentLLC / CAMotics

Open-Source Simulation & Computer Aided Machining - A 3-axis CNC GCode simulator
Other
622 stars 143 forks source link

libstdc++.so.6: version `GLIBCXX_3.4.20' not found #178

Closed hyOzd closed 5 years ago

hyOzd commented 8 years ago

I've installed CAMotics via this debian package on Linux Mint 17.3 . When I run camotics I get this error in the command line:

camotics: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by camotics)

I have this version of libstdc++6 package installed:

4.8.4-2ubuntu1~14.04.1
jcoffland commented 8 years ago

You need at least libstdc++.so.6.0.20 for GLIBCXX_3.4.20 support. This library is provided by libstdc++6 v4.9.0. Since you have v4.8.4 you are one minor version behind. v4.8.4 provides C++ ABI support only up to GLIBCXX_3.4.19.

jcoffland commented 8 years ago

As a work around you could either try running the Ubuntu package or building from source.

hyOzd commented 8 years ago

Hmm, thanks for info. I think it would be good idea to add this dependency into the debian package.

jcoffland commented 8 years ago

Good point. Even better would be to get CAMotics in to Debian. I've been hoping to find someone to help me with this.

jcoffland commented 7 years ago

Here's a solution for this problem in Ubuntu/Mint:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9
sudo apt-get upgrade libstdc++6

You can check if you have GLIBCXX_3.4.20 like this:

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX
chenz16 commented 7 years ago

The following solution works for me:

Follow these steps to solve the issue:

go to the right location and backup your current anaconda2 shortcut (change its name so it isn't overwritten):

cd ~/anaconda2/lib
mv -vf libstdc++.so.6 libstdc++.so.6.old

create a new shortcut using the ln command (I am assuming that I am in the previous location ~/anaconda2/lib):

ln -s /usr/lib/x86_64-linux-gnu/libstdc++.so.6 ./libstdc++.so.6

restart spyder / other interface you use


replace anaconda2 with anaconda or anaconda3 as needed.

jcoffland commented 5 years ago

v1.2.0 now requires GLIBCXX_3.4.21 so this issue will not be fixed. The only viable solution is to get a CAMotics source package accepted into Debian.