On Wed, May 09, 2007 at 06:42:53PM +0200, Caisa Persdotter wrote:
> I had to reinstall Suse 10.2 after a hardware upgrade. And suddenly I
> can't compile programs. Here's the out put:
> 
>  drivel-2.0.3 > ./configure
> -bash: ./configure: /bin/sh: bad interpreter: Permission denied

On Wed, May 09, 2007 at 12:38:59PM -0700, Jim Cunning wrote:
> [EMAIL PROTECTED] test]$ cat test.sh
> #!/bin/nosuchshell
> echo test
> [EMAIL PROTECTED] test]$ ./test.sh
> bash: ./test.sh: /bin/nosuchshell: bad interpreter: No such file or directory

"Permission denied" is very different from "No such file or directory"
:) So this is probably a dead end..

Caisa, I suggest checking first for AppArmor rejection messages. There
should not be any, unless you are trying to profile / or have already
profiled ./configure, or /bin/sh (bad idea!) or your login shell (via
sshd? getty? etc?)

Check /var/log/messages or /var/log/audit/audit.log for messages that
look like this:

 type=APPARMOR msg=audit(1174508205.298:1791): REJECTING r access to
 /bin/ (ls(16552) profile /tmp/ls active /tmp/ls)

If you find them, write back :)

If you don't find them, then I would recommend to use strace to find
this problem: strace -o /tmp/configure.output ./configure

Look through the configure.output for EPERM or EACCES error returns and
then start looking back up in the strace output for something that looks
fishy. :)

Hope this helps

Attachment: pgpdM5el0xsuX.pgp
Description: PGP signature

Reply via email to