Hello. I installed ruby 2.2.0 from source code on Ubuntu server 15.04 in "/home/padmahas/ruby/". It created 4 directories "bin", "include", "lib" and "share". But when I give the command "ruby -version", it says "the program ruby is currently not installed. You can install it by typing sudo apt-get install ruby".
So I cd to /home/padmahas/ruby/bin and executed the same command but surprisingly Ubuntu gave same error again. I also ensured that the current directory (bin) contains the program ruby in it by executing "ls" command. The directory contains several files such as, "erb", "gem", "irb", "rake", "rdoc", "ri" and "ruby". Is it mandatory that I should set environment variable for ruby? If yes, why its not executing even from the bin directory? I appreciate any suggestion or clue. Thank you. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/48a42368-f31d-4093-a74c-932a3156641f%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

