Code Monkey home page Code Monkey logo

Comments (24)

mwycliff avatar mwycliff commented on June 12, 2024 200

I originally encountered this error message after trying to run Matrix Laboratory from the terminal command prompt. I encountered a thread on Matlab answers that helped fix the problem. This may or may not apply in your particular situation, but it is worth giving this a try. I posted a link to the original discussion thread at the bottom.


Try these commands, you need to upgrade your libstdc++6 version. If first command can't run, just run other three. I hope it can help you.

%code
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


https://www.mathworks.com/matlabcentral/answers/389024-why-does-matlab-r2018a-display-erroneous-message-on-ubuntu-16-04?s_tid=answers_rc1-2_p2_MLT

from tensorflow-on-arm.

detectRecog avatar detectRecog commented on June 12, 2024 159

libstdc++6

Hi, guys, just use this command to upgrade libstdc++6 is enough:
sudo apt-get install --only-upgrade libstdc++6
rather than
sudo apt-get upgrade libstdc++6
The latter one will upgrade all packages, which needs a long time

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

from tensorflow-on-arm.

lhelontra avatar lhelontra commented on June 12, 2024 123

Hi, you're needs upgrade libstd.

apt-get update
apt-get install libstdc++6

from tensorflow-on-arm.

ashish-koranja avatar ashish-koranja commented on June 12, 2024 64

I ran into the same issue while installing tensorflow 1.8.0 on Ubuntu-Mate 1604. libstdc++6 package had already been update to its latest version.

I tried the command strings on /usr/lib/arm-linux-gnueabihf/libstdc++.so.6

$ strings /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 | grep GLIBCXX
GLIBCXX_3.4
GLIBCXX_3.4.1
GLIBCXX_3.4.2
GLIBCXX_3.4.3
GLIBCXX_3.4.4
GLIBCXX_3.4.5
GLIBCXX_3.4.6
GLIBCXX_3.4.7
GLIBCXX_3.4.8
GLIBCXX_3.4.9
GLIBCXX_3.4.10
GLIBCXX_3.4.11
GLIBCXX_3.4.12
GLIBCXX_3.4.13
GLIBCXX_3.4.14
GLIBCXX_3.4.15
GLIBCXX_3.4.16
GLIBCXX_3.4.17
GLIBCXX_3.4.18
GLIBCXX_3.4.19
GLIBCXX_3.4.20
GLIBCXX_DEBUG_MESSAGE_LENGTH

The following instructions helped me upgrade libstdc++6 :
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade

from tensorflow-on-arm.

wette avatar wette commented on June 12, 2024 24

to use the correct version of libstdc++, you can copy over the libraries you linked against to the target machine.

On the machine that you used to compile tensorflow, copy over all files
tensorflow-on-arm/build_tensorflow/sources/toolchain/gcc-linaro-6.3.1-2017.05-x86_64_arm-linux-gnueabihf/arm-linux-gnueabihf/lib/libstdc++* to a directory on your target machine (say to /opt/myLibs/).
Then, point the variable LD_LIBRARY_PATH to that directory before you execute tensorflow.
export LD_LIBRARY_PATH=/opt/myLibs
python3 my_script.py
The system will then try to find libstdc++6 first in the directory /opt/myLibs before looking in other parts of your system.

from tensorflow-on-arm.

darvincy avatar darvincy commented on June 12, 2024 16

上述的办法好像有的404了,根据这个博客,进行替换更高版本的libstdc++.so.6即可,我选的是libstdc++.so.6.0.26解决了,这问题太折磨人了
https://blog.csdn.net/SweetSeven_/article/details/110186738

from tensorflow-on-arm.

withtimesgo1115 avatar withtimesgo1115 commented on June 12, 2024 3

上述的办法好像有的404了,根据这个博客,进行替换更高版本的libstdc++.so.6即可,我选的是libstdc++.so.6.0.26解决了,这问题太折磨人了 https://blog.csdn.net/SweetSeven_/article/details/110186738

请用英语交流
Please use English to communicate here

from tensorflow-on-arm.

aro-n avatar aro-n commented on June 12, 2024 2

I'm using Debian 11 and trying to import a KerasClassifiier
What worked for me was only:
sudo apt-get upgrade libstdc++6

from tensorflow-on-arm.

Letter-R avatar Letter-R commented on June 12, 2024 2

I use "conda install -c conda-forge gcc=12.1.0" fix 'GLIBCXX_3.4.30' not found error

from tensorflow-on-arm.

csukuangfj avatar csukuangfj commented on June 12, 2024

@wette
thank you! Your suggestion works perfectly!

from tensorflow-on-arm.

zhaorong1029 avatar zhaorong1029 commented on June 12, 2024

thanks very much

from tensorflow-on-arm.

lustre-japang avatar lustre-japang commented on June 12, 2024

@detectRecog your suggestion works for me, thanks

from tensorflow-on-arm.

wuxiangli91 avatar wuxiangli91 commented on June 12, 2024

@detectRecog thank u so much, it works fine for me

from tensorflow-on-arm.

yhetman avatar yhetman commented on June 12, 2024

I originally encountered this error message after trying to run Matrix Laboratory from the terminal command prompt. I encountered a thread on Matlab answers that helped fix the problem. This may or may not apply in your particular situation, but it is worth giving this a try. I posted a link to the original discussion thread at the bottom.

Try these commands, you need to upgrade your libstdc++6 version. If first command can't run, just run other three. I hope it can help you.

%code
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

https://www.mathworks.com/matlabcentral/answers/389024-why-does-matlab-r2018a-display-erroneous-message-on-ubuntu-16-04?s_tid=answers_rc1-2_p2_MLT

@mwycliff
Thanks a lot, it helped me

from tensorflow-on-arm.

jung-seon avatar jung-seon commented on June 12, 2024

Install libstdc++-6-dev

from tensorflow-on-arm.

davidalmarinho avatar davidalmarinho commented on June 12, 2024

I originally encountered this error message after trying to run Matrix Laboratory from the terminal command prompt. I encountered a thread on Matlab answers that helped fix the problem. This may or may not apply in your particular situation, but it is worth giving this a try. I posted a link to the original discussion thread at the bottom.

Try these commands, you need to upgrade your libstdc++6 version. If first command can't run, just run other three. I hope it can help you.

%code
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

https://www.mathworks.com/matlabcentral/answers/389024-why-does-matlab-r2018a-display-erroneous-message-on-ubuntu-16-04?s_tid=answers_rc1-2_p2_MLT

I have really to thank you!!! I lost some hours trying to get a solution and you gave me it. One more time thank you :D

from tensorflow-on-arm.

sportzhang avatar sportzhang commented on June 12, 2024

libstdc++6

Hi, guys, just use this command to upgrade libstdc++6 is enough: sudo apt-get install --only-upgrade libstdc++6 rather than sudo apt-get upgrade libstdc++6 The latter one will upgrade all packages, which needs a long time

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

this works for me, thank you so much

from tensorflow-on-arm.

RuaConIT avatar RuaConIT commented on June 12, 2024

libstdc++6

Hi, guys, just use this command to upgrade libstdc++6 is enough: sudo apt-get install --only-upgrade libstdc++6 rather than sudo apt-get upgrade libstdc++6 The latter one will upgrade all packages, which needs a long time

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

It's worked for me, thank you so much!!

from tensorflow-on-arm.

vivuu1989 avatar vivuu1989 commented on June 12, 2024

We are using redhat 7.9 version and getting same error /lib64/libstdc++.so.6: version 'GLIBCXX_3.4.22' not found.

But here we don't have internet to update the version. Any guidance if we can upgrade this one offline

from tensorflow-on-arm.

happylifelsc avatar happylifelsc commented on June 12, 2024

It was the last line that really worked:

sudo apt-get upgrade libstdc++6

It worked for my error: ImportError: /lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.29' not found

from tensorflow-on-arm.

saifhassan-phd avatar saifhassan-phd commented on June 12, 2024

sudo apt-get install --only-upgrade libstdc++6

this worked, thanks

from tensorflow-on-arm.

addisonklinke avatar addisonklinke commented on June 12, 2024

The general consensus works for me

sudo apt-get install software-properties-common  # If add-apt-repository is missing
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get upgrade libstdc++6

Can anyone explain WHY this external repository and upgrade are needed? If I already have libstdc++6 installed, why does upgrading change the output of strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX, and how can I control the upgrade to target a particular GLIBCXX version string?

I would expect libstdc++.so.6 to have a consistent set of symbols, so it would make more sense to me if I had to install a new libstdc++.so.7x to get the missing GLIBCXX, but instead the solution is just to update .so.6

from tensorflow-on-arm.

xumeng avatar xumeng commented on June 12, 2024

https://stackoverflow.com/questions/44205687/glibcxx-3-4-21-not-found-on-centos-7/78175490#78175490
I had the same problem in CentOS 7.x, and then solved it like this answer.
I hope it can be helpful for others.

from tensorflow-on-arm.

BJHYZJ avatar BJHYZJ commented on June 12, 2024

I use "conda install -c conda-forge gcc=12.1.0" fix 'GLIBCXX_3.4.30' not found error

I meet problem in Ubuntu22 for runing import rclpy,and solve this using above function.

from tensorflow-on-arm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.