我在服务器上安装了p4命令行客户端,发生了一些奇怪的事情。 它存在,具有可执行的权限,但我不能执行它,因为我得到的消息,它不存在。
我将把terminal命令和输出描述整个情况:
user@host:~$ echo $PATH /opt/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games user@host:~$ which p4 /opt/bin/p4 user@host:~$ ls -l /opt/bin/p4 -rwxr-xr-x 1 root root 748840 2010-03-16 00:24 /opt/bin/p4 user@host:~$ file /opt/bin/p4 /opt/bin/p4: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.2.5, stripped user@host:~$ ldd /opt/bin/p4 not a dynamic executable user@host:~$ p4 -bash: /opt/bin/p4: No such file or directory user@host:~$ /opt/bin/p4 -bash: /opt/bin/p4: No such file or directory user@host:~$ strace /opt/bin/p4 execve("/opt/bin/p4", ["/opt/bin/p4"], [/* 19 vars */]) = -1 ENOENT (No such file or directory) dup(2) = 3 fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE) fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0 mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f58db339000 lseek(3, 0, SEEK_CUR) = -1 ESPIPE (Illegal seek) write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory ) = 40 close(3) = 0 munmap(0x7f58db339000, 4096) = 0 exit_group(1) = ?
我find了不想工作的原因。
它是为32位系统构build的应用程序,我有64位。
你的音量结构是什么样的? / opt是根文件系统的一部分,还是单独的文件系统,或者是符号链接到另一个文件系统?