не запускаются бинарники
Форум — General
Ось - арч i686. Например, пробую сделать вот так:
[summerset@arch tmp0]$ ls
test.cpp
[summerset@arch tmp0]$ cat ./test.cpp
#include <fstream>
int main() {
printf("here am I");
}
[summerset@arch tmp0]$ g++ ./test.cpp
[summerset@arch tmp0]$ ./a.out
bash: ./a.out: Permission denied
[summerset@arch tmp0]$ chmod +x ./a.out
[summerset@arch tmp0]$ ./a.out
bash: ./a.out: Permission denied
[summerset@arch tmp0]$ file ./a.out
./a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
[summerset@arch tmp0]$ ldd ./a.out
ldd: warning: you do not have execution permission for `./a.out'
not a dynamic executable
[summerset@arch tmp0]$ uname -a
Linux arch 2.6.34-bfs #1 SMP PREEMPT Fri May 21 08:18:49 ALMT 2010 i686 AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55 AuthenticAMD GNU/Linux