Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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:

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

I made sure that i cross compiled for ARM (arm-linux-gnueabi-gcc).

On my desktop, I have EGLIBC 2.17-9. What did i do wrong?

like image 987
Olivier Avatar asked Oct 19 '13 22:10

Olivier


3 Answers

Download 64 bit package from this site https://launchpad.net/ubuntu/raring/amd64/libc6/2.17-0ubuntu4

Install libc6 2.17 by the command ,

sudo dpkg -i libc6_2.17-0ubuntu4_amd64.deb

Cheers !

like image 56
Amol Avatar answered Nov 18 '22 07:11

Amol


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).

like image 34
Chris Dodd Avatar answered Nov 18 '22 05:11

Chris Dodd


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

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

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

like image 6
Mahesh Avatar answered Nov 18 '22 05:11

Mahesh