Gentoo Archives: gentoo-amd64

From: Tonko Mulder <tonko.mulder@×××××.com>
To: gentoo-amd64@l.g.o
Subject: Re: [gentoo-amd64] Unable to execute binary files on CLI
Date: Thu, 13 Nov 2008 10:04:09
Message-Id: 43ba12950811130204s33d1beeav12abbcb593934225@mail.gmail.com
In Reply to: RE: [gentoo-amd64] Unable to execute binary files on CLI by Nadav Horesh
1 The execution permission for ib2007 is set on the file and on the dir
2 it resides.
3
4 The first line in the arandr file is: #!/usr/bin/env python and that
5 is present on my system.
6 tonko@Gaius ~/ $ which env
7 /usr/bin/env
8
9
10 On Thu, Nov 13, 2008 at 10:27 AM, Nadav Horesh <nadavh@×××××××××××.com> wrote:
11 > Do you have an execution permission for ib2007ux or the directory it resides?
12 >
13 > arandr: what is the first line in the file?
14 > maybe you are missing the file /usr/bin/env?
15 >
16 > Nadav
17 >
18 > -----הודעה מקורית-----
19 > מאת: Tonko Mulder [mailto:tonko.mulder@×××××.com]
20 > נשלח: ה 13-נובמבר-08 10:30
21 > אל: gentoo-amd64@l.g.o
22 > נושא: [gentoo-amd64] Unable to execute binary files on CLI
23 >
24 > Hello list,
25 >
26 > for some reason I'm unable to execute binary files and script files
27 > (e.g. bash/sh/python).
28 > If I put the interpreter in front of the shell script then I'm able to
29 > execute the file, but I'm unable to run it as one would normal run it.
30 >
31 > tonko@Gaius ~/ib2007/bin $ file ib2007ux
32 > ib2007ux: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
33 > dynamically linked (uses shared libs), for GNU/Linux 2.0.0, stripped
34 > tonko@Gaius ~/ib2007/bin $ ./ib2007ux
35 > -bash: ./ib2007ux: Access denied
36 >
37 > That's the output I get when trying to execute a binary file.
38 >
39 > The next is when I try to execute a script file, in this case it's a
40 > python script but same goes for every other.
41 >
42 > tonko@Gaius ~/Dev/repo/arandr $ ./arandr
43 > -bash: ./arandr: /usr/bin/env: bad interpreter: Access denied
44 >
45 > I'm rather clueless on what might have caused this, so any help would
46 > be very appreciated.
47 > As a final resort I changed my CFLAGS from -Os to -O2 as is standard.
48 >
49 > My emerge --info is at http://www.xs4all.nl/~mtonko/emerge.info
50 > uname -a : Linux Gaius 2.6.26-gentoo-r1 #5 SMP Tue Nov 11 13:41:10 CET
51 > 2008 x86_64 AMD Athlon(tm) 64 X2 Dual-Core Processor TK-55
52 > AuthenticAMD GNU/Linux
53 >
54 >
55 > --
56 > Regards,
57 > Tonko
58 >
59 >
60 >
61
62
63
64 --
65 Tonko