C语言 /lib/libc.so.6:未找到版本“GLIBC_2.17”
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19471683/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
/lib/libc.so.6: version `GLIBC_2.17' not found
提问by Olivier
I am trying to compile a program to put on a BeagleBone black, but im getting this error when running the program on my board:
我正在尝试编译一个程序以穿上 BeagleBone black,但在我的板上运行该程序时出现此错误:
/lib/libc.so.6: version `GLIBC_2.17' not found
I made sure that i cross compiled for ARM (arm-linux-gnueabi-gcc).
我确保我为 ARM (arm-linux-gnueabi-gcc) 交叉编译。
On my desktop, I have EGLIBC 2.17-9. What did i do wrong?
在我的桌面上,我有 EGLIBC 2.17-9。我做错了什么?
采纳答案by Mahesh
Had face the same problem. Solved it by the following steps.
曾面临同样的问题。通过以下步骤解决了。
- Downloaded "libc6_2.17-0ubuntu5.1_i386.deb"
- sudo dpkg -i ipts libc6_2.17-0ubuntu5.1_i386.deb
- 下载“libc6_2.17-0ubuntu5.1_i386.deb”
- 须藤 dpkg -i ipts libc6_2.17-0ubuntu5.1_i386.deb
sudo dpkg -i ipts libc6_2.17-0ubuntu5.1_i386.deb
sudo dpkg -i ipts libc6_2.17-0ubuntu5.1_i386.deb
回答by Amol
Download 64 bit package from this site https://launchpad.net/ubuntu/raring/amd64/libc6/2.17-0ubuntu4
从此站点下载 64 位软件包https://launchpad.net/ubuntu/raring/amd64/libc6/2.17-0ubuntu4
Install libc6 2.17 by the command ,
通过命令安装 libc6 2.17,
sudo dpkg -i libc6_2.17-0ubuntu4_amd64.deb
须藤 dpkg -i libc6_2.17-0ubuntu4_amd64.deb
Cheers !
干杯!
回答by Chris Dodd
You don't have glibc 2.17 installed on your target board. You need to ensure that you have the SAME version of glibc (for ARM) installed on both the target board and on your build machine (your desktop). You can do this by either installing 2.17 on the target board or by figuring out what version you have installed there and installing that same version on your build machine (and linking with it).
您的目标板上没有安装 glibc 2.17。您需要确保在目标板和构建机器(您的桌面)上安装了相同版本的 glibc(用于 ARM)。您可以通过在目标板上安装 2.17 或通过确定您在那里安装的版本并在您的构建机器上安装相同版本(并与其链接)来完成此操作。
回答by InvictusRex28
This shell script worked for me: https://groups.google.com/forum/#!category-topic/beagleboard/oPq-Xt0TVdY
这个 shell 脚本对我有用:https: //groups.google.com/forum/#!category-topic/beagleboard/oPq-Xt0TVdY
see the response from "A P" which is a script that installs a later version on the beaglebone black:
请参阅“A P”的响应,这是一个在 beaglebone black 上安装更高版本的脚本:
I am running a beaglebone black rev C with debian wheezy.
我正在运行带有 debian wheezy 的 beaglebone black rev C。
#!/bin/sh
echo "deb http://ftp.debian.org/debian sid main" >> /etc/apt/sources.list
apt-get update
apt-get -t sid install libc6 libc6-dev libc6-dbg
echo "Please remember to hash out sid main from your sources list. /etc/apt/sources.list"

