Ubuntu 'No such file or directory' error
Whenever I try to run a Xilinx or PetaLinux tool on Ubuntu 11.04 or 11.10, 64-bit, I get an error 'bash: No such file or directory'
Problem Description
Attempting to run the mb-gcc compiler tools, or petalinux-* tools in a recent Ubuntu 64-bit installation, gives a 'No such file or directory' error.
Background
The PetaLinux tools, and many of the Xilinx tools, are compiled in a 32-bit environment. To run 32-bit applications on a 64-bit Linux distribution, the 32-bit compatibility libraries must first be installed.
Resolution
To resolve this issue you must install the 32-bit compatibility libraries from the standard Ubuntu repositories. The steps required are shown below. You will require root access on your machine to do this - if in doubt please check with your local system administrator before proceeding.
$ sudo apt-get install ia32-libs
Our users say


