I am new to programming and try to follow an example that uses #! comment in ruby.
I constantly get the message: bash: matz.rb: command not found
I am using this comment: #! / Usr / bin / env ruby
I tried this with and without a space after! as well as with and without env.
when i use $ which ruby
ruby is located in: / usr / bin / ruby
I also went into the operating system and changed the permissions on the matz.rb file to rwx for all inactivity users. Am I doing something wrong or misconfigured my system?
John hitz
source
share