getting openssl installed for Ruby

3 views
Skip to first unread message

Larry Siden

unread,
Jan 29, 2010, 1:30:48 PM1/29/10
to rubyd...@googlegroups.com
This isn't a question, I just want to document it in case it helps someone else who runs into this problem on Ubuntu.

I'm starting to use Mechanize to do some integrated testing.  Ruby dumped:

/home/lsiden/.rvm/ruby-1.9.1-p243/lib/ruby/1.9.1/net/https.rb:102:in `require': no such file to load -- openssl (LoadError)
from /home/lsiden/.rvm/ruby-1.9.1-p243/lib/ruby/1.9.1/net/https.rb:102:in `<top (required)>'

I found this discussion but it didn't quite help.  First I needed to do:

  1. sudo apt-get install libopenssl-ruby1.9.1
  2. sudo apt-get install libssl-dev

Then I followed the instruction in the article, went to $HOME/.rvm/src/ruby-1.9.1-p243/ext/openssl and did:
  1. ruby extconf.rb
  2. make
  3. sudo make install
Hope this helps someone else.

Larry Siden, 734-926-9614, http://umich.edu/~lsiden

The United States is a nation of laws, badly written and randomly enforced.
--Frank Zappa 1940-1993
Reply all
Reply to author
Forward
0 new messages