27 Jul

Ruby and OpenSSL on Ubuntu

If you try to use scrubyt or mechanize on ubuntu you could get some error like:

no such file to load -- openssl

After having installed Opensll via apt-get you will also need libssl_dev.

sudo apt-get openssl libssl-dev

Then now go to the ruby source folder, and in openssl extension folder: /…/ruby1.8/ext/openssl

<pre>ruby extconf.rb make sudo make install</pre>

check your installation with ruby -rubygems -e "require 'mechanize'"

tags: ruby (22) mechanize (1) scrubyt (2) openssl (1)