The second one, a solution is found. I need to install the readline.
To do so, I type
sudo apt-get install libreadline5-dev

And then go to my ruby directory, type
cd ext/readline
ruby extconf.rb
make
sudo make install

So, it works.

-- 
Posted via http://www.ruby-forum.com/.