I have got require’: no such file to load — readline (LoadError) error.To solve this issue i have used following command.
yum install ncurses-devel readline-devel
To further proceed the following commands
ruby extconf.rb
make && make install
I need to locate extconf.rb.
EDIT: I have tried ‘find / -name extconf.rb’ but no result matches ../ext/readline/extconf.rb
extconf.rbis inside the archive of the Ruby library you are trying to compile, in this case readline. So basically you have to go into wherever the source code of Ruby is stored and issue the commands you mentioned, e.g.