* Stoyan Zhekov <zhware / hotpop.com> [venerd10 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
masarn1@gull:~/Ruby$

> $ ruby ./test.rb - is ruby in your PATH environment var
>

masarn1@gull:~/Ruby$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/home/masarn1/Ruby
masarn1@gull:~/Ruby$ ./test3.rb
bash: ./test3.rb: /usr/local/bin/ruby: bad interpreter: Permission denied
masarn1@gull:~/Ruby$

> Maybe correction of first line in the script will be needed:
> 
> --- test.rb ---
> #!/put/here/the/right/path/ruby

masarn1@gull:~/Ruby$ cat test3.rb
#!/usr/local/bin/ruby

puts "Hello, World"

masarn1@gull:~/Ruby$

I think it is all right. I can not understand why i have this problem ...

Ciao
Massimo
-- 
E impari che puoi davvero sopportare,
che sei davvero forte,
e che vali davvero.
---		---
HomePage:	http://spazioinwind.iol.it/arnaudo
LinuxGroup:	http://www.lugge.net