I imagine your scripts will suffer from the problem outlined by fridom.
But ruby itself?? Try these:
file $(type -p ruby)
type -a ruby
file /usr/bin/ruby
file /usr/local/bin/ruby
Do file commands on any other likely candidates. If it turns out that the executable you find *is* an ELF program and not a script, check what is the loader in it, it will be something like /lib/ld-linux.so.2. If you "less" the executable, you'll see it as clear text among all the reverse-video binary characters.
Main Topics
Browse All Topics





by: fridomPosted on 2007-12-01 at 23:55:48ID: 20390551
That is a problem of the first line in the ruby scripts, It will look like this:
#!/usr/bin/ruby
And ruby is not there any longer.
Solution:
1) if you have env and are sure that ruby is in your path write the line
#!/usr/bin/env ruby
2) make symbolic link from /usr/local/bin/ruby to /usr/bin/ruby
ln -s /usr/local/ruby /usr/bin/ruby
3) change the first line to
#!/usr/local/bin/ruby
Regards
Friedrich