Rich Freeman on 24 Jan 2014 12:37:10 -0800


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] "command not found" errors with different distro. 32-bit vs 64-bit?


On Fri, Jan 24, 2014 at 3:10 PM, Greg Helledy <gregsonh@gra-inc.com> wrote:
> sparky System # file ut-bin
> ut-bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> dynamically linked (uses shared libs), for GNU/Linux 2.0.0, stripped
> sparky ioquake3 # file ioquake3.i386
> ioquake3.i386: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
> dynamically linked (uses shared libs), for GNU/Linux 2.6.4, not stripped
> sparky ioquake3 # ldd ioquake3.i386
>         not a dynamic executable
>
> sparky System # ldd ut-bin
>         not a dynamic executable

Hmm.  file says it is dynamic, ldd says it isn't.  ldd works by
executing the program, so something preventing execution might cause
it to give a misleading error.  Plus, ldd run on a static executable
on my system outputs "statically linked."

Do you have CONFIG_IA32_EMULATION enabled in your kernel?  (zcat
/proc/config.gz | grep CONFIG_IA32_EMULATION should tell you -
assuming your kernel enables /proc/config.gz).

Also - do you have a /lib/ld-linux.so of some sort on your system
(might be in /lib32, or wherever your distro sticks 32-bit libraries)?
 Mine is /lib32/ld-2.17.so.  If you're missing that you won't be
running anything 32-bit, and you need to install whatever package
provides it.  It is entirely possible that 32-bit support is not
installed by default in your distro - little requires it these days.
I could see them including it in the kernel but not installing the
linker, since the latter is just a few files that need to be
installed.

If you're missing the linker the kernel returns the same error as a
file-not-found, so that tends to lead to misleading error messages.

Rich
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug