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
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)
Posted in Ruby on Rails | Tagged compile, Linux, missing, readline, RedHat, ruby, Ruby on Rails | Leave a Comment »
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.
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.
Posted in Ruby on Rails | Tagged compile, Linux, openssl, RedHat, ruby, Ruby on Rails, source, ssh, ssl | Leave a Comment »