SSL/OpenSSL issue with Ruby 1.9.3

After upgrading to Ruby 1.9.3x, I was totally unable to use SSL. Even i could not run ‘bundle install’ when i was using ‘’ as the source. It was showing a multi-page error messages starting with something like ‘segmentation fault’. For the time being, i’ve used ‘http’ rather than ‘https’ for the url. However, it did not solve other problems.

While googling about it, i found many suggestions and i’ve screwed my OS (Mac OSx) OpenSSL. However, i’ve found a simple solution. It was just two lines of command if you are, like me, using RVM to managing Rubies.

First of all, you need to install openssl package using rvm. So run

$ rvm pkg install openssl

It will install openssl in your rvm path usually .rvm/usr under your home (~) directory.

Now, you need to reinstall your current ruby version (you can also install a newer version if you want) mentioning the path of the OpenSSL.

$ rvm reinstall 1.9.3 --with-openssl-dir=$rvm_path/usr

If you want to install a new version, you should use ‘install’ rather than ‘reinstall’.

That should solve your problem. If not, my sympathy goes for you. Good luck googling!

300 posts on my blog – not a very small number

Confuscius said “It does not matter how slowly you go so long as you do not stop”. Interesting is that I learned about this quote just few minutes ago and when I knew about it, I thought slowly (without stopping) I have published 300 blog entries on this blog.

A few days ago, when I published my latest blog How I have solved the “The plugin generated xxxx characters of unexpected output during activation problem…” I did not notice that it was my 300th published post on this blog. I noticed it later and tweeted about it. Few friends also responded me with congrats. Thanks to all of them.

Today after reading the quote of the Confucius, I thought it is worthy to write a blog about my 300th blog post. Why? What’s the specialty of 300? Continue reading →