Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have to run a ruby script in rails server. Because my cronjob is written ruby script.

But when I ssh into the server and execute

ruby script.rb

it says

ruby command not found

also I run

ruby -v

to see the version of ruby . But the same error. It seems the ruby is not installed in the server although the server is used to run ruby on rails project.

Should I install ruby in the server or any other solution?

share|improve this question
1  
Have you installed rvm and ruby in that machine..? – Jyothu 1 hour ago
@Jyothu, it's in the server...I ssh in the server...The server is running a Ruby on rails project..but I want to run a raw ruby script there...It seems rvm is not installed there...should I install RVM or ruby? will it affect other things running on the server? – littleredhood 1 hour ago
Could you run rbenv command? What is output if you run echo $PATH? – Yevgeniy Anfilofyev 1 hour ago
@littleredhood : you can install simple ruby. and try. – Jyothu 1 hour ago

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.