From: "Mauricio Fernández" Date: 2003-01-12T17:44:27+09:00 Subject: Re: bad interpreter On Sun, Jan 12, 2003 at 02:41:49AM +0900, Arnaudo Massimo wrote: > * Stoyan Zhekov [venerd� 10 gennaio 2003, alle 08:55]: > > > > masarn1@gull:~/Ruby$ ./test.rb 2> error.log > > > > masarn1@gull:~/Ruby$ cat error.log > > > > bash: ./test.rb: /usr/local/bin/ruby: bad interpreter: Permission denied > > > > masarn1@gull:~/Ruby$ > > > > Maybe ruby is not in /usr/local/bin. Or it is not in your > > PATH environment var, so #!/usr/bin/env ruby failed > > > > Thinks to check: > > $ whereis ruby - will give you full path to ruby > > masarn1@gull:~/Ruby$ which ruby > /usr/local/bin/ruby > masarn1@gull:~/Ruby$ ls -l /usr/local/bin/ruby > masarn1@gull:~/Ruby$ ls -l /usr/local/bin/ruby > lrwxrwxrwx 1 root root 13 dic 24 19:45 /usr/local/bin/ruby -> /usr/bin/ruby > masarn1@gull:~/Ruby$ ls -l /usr/bin/ruby > -rwxr-xr-x 1 root root 3136 mar 20 2002 /usr/bin/ruby ^^^^ Guy (Decoux) already asked you, but it seems you didn't read that, so I'll insist: what do you have in /usr/bin/ruby? With that size it must be a script; check it as it is probably broken... Where is your real ruby binary? -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com panic("Foooooooood fight!"); -- In the kernel source aha1542.c, after detecting a bad segment list