From: Callen Mascarenhas Date: 2008-12-24T02:53:51+09:00 Subject: Re: Error after install Brian Candler wrote: > Callen Mascarenhas wrote: >>> Instead of: >>> . /usr/local/bin/irb >>> do: >>> /usr/local/bin/irb >> >> when I do that and then run `which` I get the following. >> >> $ which irb >> /opt/third-party/bin/irb >> >> That is why I'm using the . /usr/local/bin/irb command. Am I not using >> it correctly. > > No. A dot followed by a filename means "read this file into the shell" - > that is, it is treated as a series of bash commands. > > Just doing /usr/local/bin/irb (without the dot) will execute that > command. Thanks guys for replying. The reason I'm using the ". /usr/local/bin/irb" is because I have another company version of irb/ruby in /opt/third-party/bin/ and they have removed the 'gem' command. So I cannot install new features and play with Ruby. And if you look at the commands it is using the wrong irb i.e. the one in /opt/third-party/bin/ which doesn't have the gem command and not the one I just installed. I hope this explains my predicament more clearly. -- Posted via http://www.ruby-forum.com/.