How to run old linux code (32bit) on current ubuntu system?

Oliver Grawert ogra at ubuntu.com
Sun Jul 28 08:15:03 UTC 2013


hi,
Am Samstag, den 27.07.2013, 16:00 -0500 schrieb Peng Yu:
> >> ~$ ./y
> >> ./y: relocation error: ./y: symbol errno, version GLIBC_2.0 not
> >> defined in file libc.so.6 with link time reference

your app tries to use a libc version from the last century ... (ubuntu
exists only since 2004)

> lrwxrwxrwx 1 root root 12 Apr 18 07:14 /lib/i386-linux-gnu/libc.so.6
> -> libc-2.17.so
> 
from this link you can tell what the current version of GLIBC on your
install is (2.17)

objdump -x /lib/arm-linux-gnueabi/libc.so.6|grep GLIBC

will tell you how far backwards compatible the used libc is ...
... and you will notice it only goes back to 2006 (GLIBC_2.4)

i think for something that old you might need a chroot (if your app is
commandline only) or a VM to run a similar ancient distro release in
which you run your app ...

and indeed alternatively you can port your app to a recent libc if you
have the source.

ciao
	oli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20130728/f665184c/attachment.sig>


More information about the ubuntu-users mailing list