libm.so.6 problem solved

1,319 views
Skip to first unread message

NeonJohn

unread,
Feb 4, 2013, 9:30:02 PM2/4/13
to beagl...@googlegroups.com

I cross-compiled some code on my PC using

/usr/bin/arm-linux-gnueabi-gcc-4.6

Upon running the program, I got the following error message:

./realfft: /lib/libm.so.6: version `GLIBC_2.15' not found (required by
./realfft)

I've gotten this same error message from utilities installed from the
repository. Google says that there's great confusion about this.

The solution is simple. The correct math library is located in

/usr/arm-linux-gnueabi/lib/libm.so.6

on my Ubuntu machine. So all it took to fix the problem was an scp:

scp jgd@neonjohn:/usr/arm-linux-gnueabi/lib/libm.so.6 root@maggie:/lib

neonjohn is the name of my Ubuntu machine and maggie is the name of my
beaglebone.

re-compile the code I was working on and everything is fine.

If you don't have the above library then install the proper Ubuntu package:

sudo apt-get install gcc-4.6-arm-linux-gnueabi

and if you want C++:

sudo apt-get install g++-4.6-arm-linux-gnueabi

Enjoy

John

--
John DeArmond
Tellico Plains, Occupied TN
http://www.fluxeon.com <-- THE source for induction heaters
http://www.neon-john.com <-- email from here
http://www.johndearmond.com <-- Best damned Blog on the net
PGP key: wwwkeys.pgp.net: BCB68D77
Reply all
Reply to author
Forward
0 new messages