From: "Chamila W." Date: 2013-06-13T00:38:14+09:00 Subject: Re: Getting Started With Development I saved project I downloaded at /home/chamila/ruby/rr/ruby and compiled it. Should I do that at /usr/local/bin ? > I mean that the interpreter in /usr/bin (the one installed by > debian/ubuntu) is not used if there is one in /usr/local/bin > (installed by you). This is because, at least in default settings, > /usr/local/bin appears before /usr/bin in PATH. > > If you want to be sure that you are not using the old interpreter, > after you have done make install, remove the ubuntu package, as I > already mentioned in a previous msg. > > In all cases, you may know what you are running by typing > when I tried ruby -v it gives the output as ruby 1.8.7. which ruby gives output /usr/local/bin/ruby. But when I run RUBY_VERSION in irb it gave 2.1.0 and irb successfully execute p %i{hurray huzzah whoop} which I couldn't executed using ruby. > ruby -v > > Another command you may use is > > which ruby > > which prints out the path of the first executable with the name 'ruby' > found in your PATH. If you type > > ls -l `which ruby` > > you can see if the executable you run is recent or not. > > Carlo -- Posted via http://www.ruby-forum.com/.