From: Peter Vandenabeele Date: 2010-11-29T21:37:56+09:00 Subject: Re: why i can't find my ruby ? You may try these 3 commands and report the result: $ which ruby $ ls -l `which ruby` $ ls -l `which ruby | sed -e 's/ruby//'` | grep irb In my case, the result is: $ which ruby /usr/bin/ruby $ ls -l `which ruby` lrwxrwxrwx 1 root root 43 2010-05-10 14:47 /usr/bin/ruby -> /opt/ruby-enterprise-1.8.7-2010.01/bin/ruby $ ls -l `which ruby | sed -e 's/ruby//'` | grep irb lrwxrwxrwx 1 root root 42 2010-05-10 14:48 irb -> /opt/ruby-enterprise-1.8.7-2010.01/bin/irb -rwxr-xr-x 1 root root 376 2010-03-19 18:45 irb1.8 lrwxrwxrwx 1 root root 6 2010-03-31 17:00 irb-ORIG -> irb1.8 What it does is: * use 'which' to find where you have ruby installed * list the details about ruby (e.g. a symlink) * search that same directory for the 'irb' command That may give a hint where your ruby and irb are installed. HTH, Peter On Mon, Nov 29, 2010 at 1:21 PM, Pen Ttt wrote: > "irb" +pressing TAB   ,nothing happen >  "irb" +pressing TAB  + Space bar > pt@pt:~$ irb > .bash_history              .local/ > .bash_logout               .mozilla/ > .bashrc                    Music/ > .cache/                    .nautilus/ > .compiz/                   photo.tar.gz > .config/                   Pictures/ > .dbus/                     .pki/ > Desktop/                   .profile > .dmrc                      Public/ > Documents/                 .pulse/ > Downloads/                 .pulse-cookie > .emacs.d/                  .recently-used.xbel > .esd_auth                  ruby-1.9.2-p0/ > examples.desktop           ruby-1.9.2-p0.tar.bz2 > .fontconfig/               .shotwell/ > .gconf/                    .sudo_as_admin_successful > .gconfd/                   Templates/ > .gksu.lock                 .thumbnails/ > .gnome2/                   vb > .gnome2_private/           Videos/ > .gstreamer-0.10/           .VirtualBox/ > .gtk-bookmarks             .xinput.d/ > .gvfs/                     .xsession-errors > > -- > Posted via http://www.ruby-forum.com/. > -- Peter Vandenabeele gsm: +32-478-27.40.69 e-mail: peter@vandenabeele.com http://twitter.com/peter_v