ruby - require: command not found -
which ruby
- /usr/local/bin/ruby
.bash_profile
has above path
i have not left trailing spaces before #!/usr/bin/env ruby
in ruby script
when try run sh ruby_script
, gives require: command not found
. not able recognize of ruby commands.
i checked other posts getting same error, , fixed accordingly. else missing?
running sh ruby_script
wrong. must run ruby ruby_script
instead. if file executable run ./ruby_script
.
Comments
Post a Comment