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

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -