From: Greg Ercolano <erco@(email surpressed)>
Subject: [Q+A] Strange 'Command not found' error with Ubuntu 7.2 / 64 bit
   Date: Tue, 28 Aug 2007 17:00:18 -0400
Msg# 1619
View Complete Thread (1 article) | All Threads
Last Next
> I've upgraded from Ubuntu 6.x -> Ubuntu 7.2 (feisty),
> and I can't seem to execute any of the rush executables;
> it says 'command not found'.
>
> This is not newbie stuff; I've *definitely* got the PATH set correctly,
> and the binaries all have executable bits set. Seems like it's the OS
> doing something weird:
>
>     # /usr/local/rush/bin/rushd -version
>     /usr/local/rush/bin/rushd: Command not found.
>     # ls -la /usr/local/rush/bin/rushd
>     -rwsr-xr-x  1 root root 1348304 2007-02-14 11:36 rushd
>     # file /usr/local/rush/bin/rushd
>     /usr/local/rush/bin/rushd: setuid ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped
>
> We're getting this with other 3rd party software too (eg. shake)


    The problem is apparently your Ubuntu 7.2 64bit does not have
    32 bit support libs installed, so trying to run 32bit binaries on the
    64bit OS without them gives that error.

    To fix the problem, install Ubuntu's optional 32bit support:

	# apt-get install ia32-libs ia32-libs-gtk ia32-libs-kde

    My guess is only the "ia32-libs" package is needed for Rush to work,
    since it makes no use of gtk or kde. But apps like shake might need this,
    so it couldn't hurt. YMMV.

<digression>
    Too bad the linux kernel is reporting the error as 'Command not found'.
    Very misleading.

    Would be nice if it report something useful like 'Exec format error' (ENOEXEC),
    or 'executable format not supported', or some such.

    I should add the kernel didn't log any useful comments to /var/log/messages,
    /var/log/secure, or in demsg or to /dev/console. Which is kinda a surprise.

    I would think someone trying to run binaries not supported by the OS
    should show up on the admin's radar.
</digression>

Last Next