/lib/libc.so.6:未找到版本的GLIBC_2.17。

时间:2022-08-04 15:30:58

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黑,但我在运行这个程序的时候会犯这个错误:

/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。我做错了什么?

4 个解决方案

#1


5  

Had face the same problem. Solved it by the following steps.

也面临着同样的问题。通过以下步骤解决它。

  1. Downloaded "libc6_2.17-0ubuntu5.1_i386.deb"
  2. 下载“libc6_2.17-0ubuntu5.1_i386.deb”
  3. sudo dpkg -i ipts libc6_2.17-0ubuntu5.1_i386.deb
  4. sudo 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。

#2


4  

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

sudo dpkg - libc6_2.17-0ubuntu4_amd64.deb

Cheers !

干杯!

#3


1  

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来实现这一点,也可以通过计算安装在那里的版本,并在构建机器上安装相同的版本(并与之链接)。

#4


1  

This shell script worked for me: https://groups.google.com/forum/#!category-topic/beagleboard/oPq-Xt0TVdY

这个shell脚本为我工作:https://groups.google.com/forum/#!

see the response from "A P" which is a script that installs a later version on the beaglebone black:

请参见“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"

#1


5  

Had face the same problem. Solved it by the following steps.

也面临着同样的问题。通过以下步骤解决它。

  1. Downloaded "libc6_2.17-0ubuntu5.1_i386.deb"
  2. 下载“libc6_2.17-0ubuntu5.1_i386.deb”
  3. sudo dpkg -i ipts libc6_2.17-0ubuntu5.1_i386.deb
  4. sudo 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。

#2


4  

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

sudo dpkg - libc6_2.17-0ubuntu4_amd64.deb

Cheers !

干杯!

#3


1  

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来实现这一点,也可以通过计算安装在那里的版本,并在构建机器上安装相同的版本(并与之链接)。

#4


1  

This shell script worked for me: https://groups.google.com/forum/#!category-topic/beagleboard/oPq-Xt0TVdY

这个shell脚本为我工作:https://groups.google.com/forum/#!

see the response from "A P" which is a script that installs a later version on the beaglebone black:

请参见“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"