Friday, May 25, 2012

OpenSSL Errors and Rails – Certificate Verify Failed – Gem::RemoteFetcher::FetchError

A comprehensive guide that encompasses some posts below and
different platforms to deal with this Ruby on Rails ssl error.

Saturday, May 19, 2012

Updating OpenSSL on Mac OS 10.5.x

If you don't want to build OpenSSL from source and want an easy way of upgrading to the latest version of OpenSSL, I'd suggest taking the MacPorts route.

Download the correct .dmg file from
Open it and run the installer.

In the terminal, type:

$ sudo port sync; sudo port selfupdate; sudo port install openssl

Older versions OpenSSL may require installing newer zlib, and zlib in it's turn may require installing XCode 3.1.4:

Here is the link to get XCode 3.1.4 somewhere at bottom of the page:

To build OpenSSL this link may be helpful (not tested):

Saturday, May 5, 2012

Rails ExecJS::RuntimeError

(With the help of

If you’re riding Ruby on Rails V3.11 and get the error

get rails ExecJS::RintimeError

Then try installing the V8 Javascript interpreter into Ruby.
Just edit your Gemfile and add

gem 'therubyracer'

then execute the famous
bundle install

This has also several advantages, such like:
  • Evaluate Javascript from with in Ruby
  • Embed your Ruby objects into the Javascript world
  • Manipulate JavaScript objects and call JavaScript functions from Ruby
  • API compatible with the The Ruby Rhino

Friday, May 4, 2012

Rails 3.1 and Ruby 1.9.3p125: ruby-debug19 crashes with “Symbol not found: _ruby_threadptr_data_type”

download linecache19 and ruby-debug-base19 from RubyForge:

% curl -OL
% curl -OL

compile the two gems

% gem install linecache19-0.5.13.gem
Building native extensions.  This could take a while...
Successfully installed linecache19-0.5.13
1 gem installed...
% gem install ruby-debug-base19-0.11.26.gem -- --with-ruby-include=$SANDBOX/packages/ruby-1.9.3-p0Building native extensions.  This could take a while...
Successfully installed ruby-debug-base19-0.11.26
1 gem installed...

update your Gemfile

# file: Gemfile
group :development do
  gem 'linecache19', '0.5.13'
  gem 'ruby-debug-base19', '0.11.26'
  gem 'ruby-debug19', :require => 'ruby-debug'

bundle install and test the debugger

% bundle installFetching source index for
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
% irb
irb(main):001:0> require 'ruby-debug'
=> true
irb(main):002:0> debugger
@last_value = value(rdb:1) p 'hooray'

Ruby-debug fork:


Powered by Blogger.