歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

64位ubuntu運行32位程序

摘自http://askubuntu.com/questions/454253/how-to-run-32-bit-app-in-ubuntu-64-bit

"No such file or directory" may appaear when you have your binary, but it lacks some libraries.

If you install

build-essential
package, you will have
ldd
command available.This command
ldd ./app | grep not
will show you what libraries are missing.

Just install these libraries in i386 arch with apt. Like this:

apt-get install libmissing:i386
Beware, some buggy packages will try to delete 64bit version firs.

To run a 32-bit executable file on a 64-bit multi-architecture Ubuntu system, you have to add the

i386
architecture and install the three library packages
libc6:i386
,
libncurses5:i386
, and
libstdc++6:i386

[code]sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386

Copyright © Linux教程網 All Rights Reserved