2013-10-19 191 views
7

我想编译一个程序来放在一个BeagleBone黑色,但我得到这个错误 在我的主板上运行程序时:/lib/libc.so.6:版本'GLIBC_2.17'找不到

/lib/libc.so.6: version `GLIBC_2.17' not found 

我确定我为ARM(arm-linux-gnueabi-gcc)进行了交叉编译。

在我的桌面上,我有EGLIBC 2.17-9。 我做错了什么?

回答

5

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

  1. 下载 “libc6_2.17-0ubuntu5.1_i386.deb”
  2. 须藤dpkg -i来IPTS libc6_2.17-0ubuntu5.1_i386.deb

sudo dpkg -i ipts libc6_2.17-0ubuntu5.1_i386.deb

+0

小心提供一个指向该文件的链接? –

1

您的目标板上没有安装glibc 2.17。您需要确保在目标板和编译机(桌面)上都安装了相同版本的glibc(用于ARM)。您可以通过在目标板上安装2.17或通过计算出您已安装的版本以及在您的构建机器上安装相同版本(以及与其链接)来完成此操作。

1

这个shell脚本为我工作:https://groups.google.com/forum/#!category-topic/beagleboard/oPq-Xt0TVdY

看到“AP”,这是对beaglebone黑色安装更高版本的脚本响应:

我正在用beaglebone黑色REV C debian wheezy。

#!/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" 
相关问题