While trying to get a simple ROR app running on my VPS server, I came across a suggestion to try using script/console to test. When I tried it, I got the following error:
[root@vps testapp]# script/console
Loading development environment.
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)
from /usr/local/lib/ruby/1.8/irb/completion.rb:10
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require'
from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules'
from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each'
from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules'
from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup'
from /usr/local/lib/ruby/1.8/irb.rb:54:in `start'
from /usr/local/bin/irb:13
[root@vps testapp]#
I googled around and the only suggestion I found was to install the readline package as follows:
Fixing Console Readline Issue ("no such file to load -- readline")
$ sudo apt-get install libncurses5-dev libreadline5-dev
$ sudo updatedb
$ slocate ext/ |grep ext/readline
$ cd ext/readline
$ sudo ruby extconf.rb
$ sudo make
$ sudo make install
sudo
apt-get doesn't work. I think I have to use
yum:
[root@vps ~]# yum install libncurses5-dev libreadline5-dev
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
centosplus 100% |=========================| 951 B 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libncurses5-dev
No Match for argument: libreadline5-dev
Nothing to do
[root@vps ~]#
I think I have to update yum so that it knows where to find the packages I requested. How do I do this?
Thanks,
George