From: Justin Collins Date: 2008-12-23T17:28:41+09:00 Subject: Re: Error after install Callen Mascarenhas wrote: > unknown wrote: > >>> Now when I try to run irb in >>> /usr/local/bin/irb I'm gettin the following error: >>> >>> $ . /usr/local/bin/irb >>> >> ^ >> >>> -bash: require: command not found >>> -bash: /usr/local/bin/irb: line 13: syntax error near unexpected token >>> `__FILE__' >>> -bash: /usr/local/bin/irb: line 13: ` IRB.start(__FILE__)' >>> >> 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. > > Thanks for your reply. > Don't use the period at the beginning, that is what is screwing it up: $ . /usr/bin/irb bash: require: command not found bash: /usr/bin/irb: line 13: syntax error near unexpected token `__FILE__' bash: /usr/bin/irb: line 13: ` IRB.start(__FILE__)' $ /usr/bin/irb irb(main):001:0> -Justin