From: Ken Bloom Date: 2007-02-22T00:10:13+09:00 Subject: Re: Mechanize failure On Wed, 21 Feb 2007 22:58:08 +0900, Gregory Seidman wrote: > On Wed, Feb 21, 2007 at 10:54:01PM +0900, Alex Young wrote: >> Gregory Seidman wrote: >> >On Wed, Feb 21, 2007 at 10:41:17PM +0900, Alex Young wrote: >> > >> >>Hi all, >> >> >> >>Does anybody recognise this? >> >> >> >>$ gem check -t mechanize >> >>ERROR: While executing gem ... (NameError) >> >> method `use_ssl?' not defined in Net::HTTP >> >> >> >>This is on a Debian system, so I've probably forgotten an apt-get >> >>install somewhere, but I can't spot which one: >> >> >> >>$ dpkg -l | grep ruby >> >>ii libmysql-ruby1 2.4.5-6.1 MySQL module for Ruby 1.8 >> >>ii libopenssl-rub 1.0.0+ruby1.8. OpenSSL interface for Ruby >> >> >> >[...] >> > >> >You're cut off there for some reason, but you should make sure you have >> >libopenssl-ruby1.8 installed, not just libopenssl-ruby. >> > >> Ah. Thanks. Any idea what the difference between the two is, and when >> you'd want one rather than the other? > > Compare: > > apt-cache policy libopenssl-ruby > apt-cache policy libopenssl-ruby1.8 > > It looks like libopenssl-ruby is targeted at ruby 1.8.2. Wrong! libopenssl-ruby is simply a dummy package designed to install the appropriate version of the package for the appropriate version of the interpreter. By installing ruby, you get ruby 1.8 pulled in as a dependancy (as opposed to ruby 1.9). Likewise, by installing libopenssl-ruby, you get libopenssl-ruby1.8 as opposed to 1.9. One day when 2.0 becomes the new stable, you'll be upgraded to ruby2.0 and libopenssl-ruby2.0 automatically because they'll be the new dependancies for the dummy package. Package: libopenssl-ruby [snip part of the description] Description: OpenSSL interface for Ruby This package makes Ruby to be able to use OpenSSL. It includes HTTP and TELNET protocols' SSL/TLS support. . This package is a dependency package, which depends on Debian's default Ruby version (currently 1.8.x). -- Ken Bloom. PhD candidate. Linguistic Cognition Laboratory. Department of Computer Science. Illinois Institute of Technology. http://www.iit.edu/~kbloom1/