Take the 2-minute tour ×

I have installed p4 command line client on the server, and something strange happened. It exists, has executable rights, but I cannot execute it beacause I got message that it does not exists.

I will put terminal commands and output to describe whole situation:

user@host:~$ echo $PATH 

user@host:~$ which 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

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
) = 40
close(3)                                = 0
munmap(0x7f58db339000, 4096)            = 0
exit_group(1)                           = ?
share|improve this question

2 Answers 2

up vote 1 down vote accepted

I have found the reason why it does not want work.

It was application built for 32 bits system, and I had 64 bits one.

share|improve this answer

What is your volume structure like? Is /opt part of the root filesystem, or a seperate filesystem, or a symlink to another filesystem?

share|improve this answer
It is the same filestystem. /opt is a regular directory and there is no symlink. Even when I copy this program to home directory I cannot run it. –  kogut Jun 24 '10 at 10:13

Your Answer


