From: Daniel Berger Date: 2010-02-03T02:28:02+09:00 Subject: Re: Errno::ENOENT: No such file or directory - --readline On Feb 1, 5: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 > > >> ^D > > (MacOS X version 10.6.2) > > $ ruby -v > ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] > > $ pwd > /Library/Ruby/Gems/1.8/gems > > $ ls > RedCloth-4.2.2    aws-2.1.12    highline-1.5.1    net-ssh-2.0.17 > rubygems-update-1.3.5 > actionmailer-2.3.5  capistrano-2.5.10  hpricot-0.8.2 > net-ssh-gateway-1.0.1  sqlite3-ruby-1.2.5 > actionpack-2.3.5  dnssd-1.3.1    http_connection-1.3.0  rack-1.0.1 > uuidtools-2.1.1 > activerecord-2.3.5  fastercsv-1.5.1    libxml-ruby-1.1.3  rails-2.3.5 > xmpp4r-0.5 > activeresource-2.3.5  fastthread-1.0.7  mysql-2.8.1    rake-0.8.7 > activesupport-2.3.5  fcgi-0.8.8    net-scp-1.0.2    rest-client-1.0.4 > acts_as_ferret-0.4.4  git-1.2.5    net-sftp-2.0.4    ruby-openid-2.1.7 > > Tusen takk (1000 thanks), > 7thWAP If all else fails, there's rb-readline. gem install rdp-rb-readline Regards, Dan