error installing ruby-debug-base19 et al

what do i need to get this gem to install? i can't find the mkmf.log for this?

Building native extensions. This could take a while... ERROR: Error installing ruby-debug-base19:          ERROR: Failed to build gem native extension.

/usr/local/bin/ruby extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

Provided configuration options:          --with-opt-dir          --without-opt-dir          --with-opt-include          --without-opt-include=${opt-dir}/include          --with-opt-lib          --without-opt-lib=${opt-dir}/lib          --with-make-prog          --without-make-prog          --srcdir=.          --curdir          --ruby=/usr/local/bin/ruby /usr/local/lib/ruby/1.9.1/net/https.rb:102:in `require': no such file to load -- openssl (LoadError)          from /usr/local/lib/ruby/1.9.1/net/https.rb:102:in `<top (required)>'          from /usr/local/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:11:in `require'          from /usr/local/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/contrib/uri_ext.rb:11:in `<top (required)>'          from /usr/local/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby_core_source.rb:6:in `require'          from /usr/local/lib/ruby/gems/1.9.1/gems/ruby_core_source-0.1.4/lib/ruby_core_source.rb:6:in `<top (required)>'          from extconf.rb:2:in `require'          from extconf.rb:2:in `<main>'

Gem files will remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11 for inspection. Results logged to /usr/local/lib/ruby/gems/1.9.1/gems/linecache19-0.5.11/ext/trace_nums/gem_make.out

I realized I need to install linecache19, but I am getting the same failure, is this a problem in general with ruby 1.9.1 gems?

The error line is this one:

/usr/local/lib/ruby/1.9.1/net/https.rb:102:in `require': no such file to load -- openssl (LoadError)

which suggests that your Ruby 1.9.1 was compiled without OpenSSL support.

If you compiled your Ruby yourself, you can compile the OpenSSL support by going into ext/openssl and running:

$ ruby extconf.rb $ make $ make install

Otherwise, let us know your OS (and package manager if you used one), or see if Google has an answer.

Chris

Chris,

thanks that fixed my problem! I am going to assume I don't need to rebuild ruby again for openssl support?

Kind Regards, Rajinder

No, I don't think you need to recompile the whole thing; you just needed to get that extra library in, and it sounds like it's working now!

Chris

Great, thanks again!

Rajinder