Comments (24)
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
from tensorflow-on-arm.
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.
Hi, you're needs upgrade libstd.
apt-get update
apt-get install libstdc++6
from tensorflow-on-arm.
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.
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.
上述的办法好像有的404了,根据这个博客,进行替换更高版本的libstdc++.so.6即可,我选的是libstdc++.so.6.0.26解决了,这问题太折磨人了
https://blog.csdn.net/SweetSeven_/article/details/110186738
from tensorflow-on-arm.
上述的办法好像有的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.
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.
I use "conda install -c conda-forge gcc=12.1.0" fix 'GLIBCXX_3.4.30' not found error
from tensorflow-on-arm.
@wette
thank you! Your suggestion works perfectly!
from tensorflow-on-arm.
thanks very much
from tensorflow-on-arm.
@detectRecog your suggestion works for me, thanks
from tensorflow-on-arm.
@detectRecog thank u so much, it works fine for me
from tensorflow-on-arm.
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
@mwycliff
Thanks a lot, it helped me
from tensorflow-on-arm.
Install libstdc++-6-dev
from tensorflow-on-arm.
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
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.
libstdc++6
Hi, guys, just use this command to upgrade libstdc++6 is enough:
sudo apt-get install --only-upgrade libstdc++6
rather thansudo apt-get upgrade libstdc++6
The latter one will upgrade all packages, which needs a long timeIn 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.
libstdc++6
Hi, guys, just use this command to upgrade libstdc++6 is enough:
sudo apt-get install --only-upgrade libstdc++6
rather thansudo apt-get upgrade libstdc++6
The latter one will upgrade all packages, which needs a long timeIn 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.
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.
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.
sudo apt-get install --only-upgrade libstdc++6
this worked, thanks
from tensorflow-on-arm.
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.
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.
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)
- Installing 2.3.0 wheel produces tensorflow._version_=1.14.0 HOT 1
- request tensorflow 1.15.0 on arm
- Building TF 2.X.0 for OdroidXU4 with Python3.8 HOT 4
- Cant install on Google Coral
- Tensorflow on Artik710
- Illegal Instruction on Odroid C2
- Failing to verify sha on icu-release-62-1
- build in rk3399,not cross-compilation
- Tensorflow 1.14.0-Buster on Google Coral HOT 2
- rk3399 build tensorflow-cpu-1.10 error HOT 1
- illegal instruction
- error docker build in arm device
- apt-get: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /usr/lib/x86_64-linux-gnu/libapt-private.so.0.0)
- HDFS support for tensorflow 2.3.0
- python3.6 tensorflow1.13
- can u update the new version of TensorFlow 2.5.0
- Do you also provide prebuild wheel packages for tensorflow_probability and tf_agents? HOT 1
- An error occurred “ parse error near `\n' " . HOT 1
- TF 2.3.0 rc0 and rc1 for RPI HOT 2
- v2.2.0 installationattempt on debian buster reports unsupported platform
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow-on-arm.