From: "D. Deryl Downey" Date: 2012-12-26T15:30:55+09:00 Subject: Re: How do I install Ruby on my Ubuntu 12.10 partition. That should point out instinctively that the user is responsible for ensuring the right ruby is loaded. Using #!/usr/bin/env ruby does one thing and one thing only. It ensures that the first found ruby in the path is used, by checking en environment for the binary and using its full path. This presupposes that *that* particular ruby *is* the one a user wishes to use, which is generally the case. However, if a user wish a to invoke a specific ruby not in the path, they would then use the full path to *that* ruby and have their script/app use that one. All of this, in turn is affected by the settings of GEM_HOME and RUBY_HOME and RUBY_OPTS. Under version managers, this can be affected by MY_RUBY_HOME and GEM_PATH settings as well. So, the point being made is that *either* approach is, in fact, correct. One just needs to understand the impact(s) of using one or the other, which is a self-education pointer. -- D. Deryl Downey "The bug which you would fright me with I seek" - William Shakespeare - The Winter's Tale, Act III, Scene II - A court of Justice. On Dec 26, 2012, at 12:42 AM, Hans Mackowiak wrote: > when you install ruby yourself, its mostly put under /usr/local/bin ... > > so then the path does not match with the ruby program anymore, and then > the user comes back because they programs does not work anymore (because > of newer ruby features maybe) > > -- > Posted via http://www.ruby-forum.com/. >