From: Eric Christopherson Date: 2010-02-03T06:42:34+09:00 Subject: Re: Errno::ENOENT: No such file or directory - --readline On Mon, Feb 1, 2010 at 6:04 PM, Michael R. wrote: > I cannot find a resolution to this problem and figured someone here > probably can tell me what I need to do to fix it; there are so many > intelligent, learned and helpful people here. (Thanks in advance.) > > I've searched Google and run the MacOS Software Updates, (I'm on a newly > purchased system, recently upgraded from Leopard to Snow Leopard). I > also reinstalled Xcode. Then I updated all my gems (though I'm not sure > they all worked right -- should I install them as root or myself?). I'm > a newbie to Ruby and to the Mac, (though I've run many other Unix > systems), so I'm not sure I've checked everything... (apparently not). > > Any call to 'gets' results in the error, below, (I also pasted version > info) > > $ irb --simple-prompt >>> person = gets > Errno::ENOENT: No such file or directory - --readline >  from (irb):1:in `gets' >  from (irb):1 It appears that somewhere along the line you have a program invoking another program with the argument --readline, but for some reason it's interpreting that as a filename instead of a switch. I'm not sure where that is happening, though.