Feeds:
Posts
Comments

Readline missing..

Again another module missing. Doing script/console result with the following error message.
/usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require': no such file to load -- readline (LoadError)
You can get away with compiling and installing readline from source without recompiling ruby it self.

1. Go to your ruby source directory then cd into ext/readline

ruby extconf.rb
make
make install

NOTE: If doing ruby extconf.rb bail out with a “readline/readline.h… no” or something similar install readline-devel package on your system (Again this is if you are on a Redhat based system)

I was fronted with this problem today. I upgraded ruby on my clients UAT last week and ruby-openssl modules wasn’t installed due to missing header files. I recon this would only happen if you install ruby from source. However without openssl build-in, the net/ssh will fail most of the time. But you can easily install this manually.
1. Navigate to ext/openssl in the ruby source folder and do the following.

ruby extconf.rb
make
make install

NOTE: make sure you have openssl and openssl-devel packages installed in your system first. Otherwise you will get an error like this. (This is based on a Redhat based distribution)

=== OpenSSL for Ruby configurator ===
=== Checking for system dependent stuff… ===
checking for t_open() in -lnsl… no
checking for socket() in -lsocket… no
checking for assert.h… yes
=== Checking for required stuff… ===
checking for openssl/ssl.h… no
=== Checking for required stuff failed. ===
Makefile wasn’t created. Fix the errors above.

Follow

Get every new post delivered to your Inbox.