我尝试安装 weblogic 9 来测试应用程序从以前的版本迁移后是否正常工作。我下载了“Oracle WebLogic Server 9.2 MP3”,并能够在 CentOS 5.5 中正常安装它
[jason@centos5]$ uname
Linux 2.6.34.1 #1 SMP Thu Jul 22 18:04:40 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
[jason@centos5]$ cat /etc/*-release
CentOS release 5.5 (Final)
[jason@centos5]$ ls -l
total 655016
-r-xr-xr-x 1 jason jason 670070863 Aug 20 08:13 server923_linux32.bin
-rw-r--r-- 1 jason jason 56 Aug 20 08:13 server923_linux32.bin.md5
[jason@centos5]$ cat server923_linux32.bin.md5
003046001d018e2981f0c91f5b6be9f6 server923_linux32.bin
[jason@centos5]$ md5sum -c server923_linux32.bin.md5
server923_linux32.bin: OK
[jason@centos5]$ file server923_linux32.bin
server923_linux32.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for GNU/Linux 2.0.0, dynamically linked (uses shared libs), for GNU/Linux 2.0.0, stripped
[jason@centos5]$ ./server923_linux32.bin
Extracting 0%...................^C
[jason@centos5]$
但是,当我在 Ubuntu 10.04 中尝试同样的事情时,它失败了
[jason@ubuntu]$ uname
Linux 2.6.33.5 #2 SMP Thu Jun 10 15:26:23 UTC 2010 x86_64 unknown unknown GNU/Linux
[jason@ubuntu]$ cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04 LTS"
[jason@ubuntu]$ ls -l
total 1381736
-r-xr-xr-x 1 jason jason 670070863 Aug 20 22:00 server923_linux32.bin
-rw-r--r-- 1 jason jason 56 Aug 20 22:00 server923_linux32.bin.md5
[jason@ubuntu]$ cat server923_linux32.bin.md5
003046001d018e2981f0c91f5b6be9f6 server923_linux32.bin
[jason@ubuntu]$ md5sum -c server923_linux32.bin.md5
server923_linux32.bin: OK
[jason@ubuntu]$ file server923_linux32.bin
server923_linux32.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.0.0, stripped
[jason@ubuntu]$ ./server923_linux32.bin
-bash: ./server923_linux32.bin: No such file or directory
[jason@ubuntu]$
我困惑了,有什么线索吗?
答案1
Ubuntu 下未安装 32 位库。用于ldd
验证。
答案2
谢谢 Ignacio,这就是问题所在
[jason@centos]$ ldd server923_linux32.bin
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib/libc.so.6 (0x4a457000)
/lib/ld-linux.so.2 (0x4a439000)
[jason@centos]$
我安装了 32 位库,现在可以运行它了:)
[jason@ubuntu]$ ldd server923_linux32.bin
not a dynamic executable
[jason@ubuntu]$ sudo apt-get install ia32-libs
....
[jason@ubuntu]$ sudo apt-get install ia32-libs
[jason@ubuntu]$ ldd server923_linux32.bin
linux-gate.so.1 => (0xffffe000)
libc.so.6 => /lib32/libc.so.6 (0xf758b000)
/lib/ld-linux.so.2 (0xf76f4000)
[jason@ubuntu]$ ./server923_linux32.bin
Extracting 0%.........^C
[jason@ubuntu]$