From: Johnny Rodgers Date: 2009-12-03T09:27:05+09:00 Subject: Re: Resolving OpenSSL version mismatch in OS X 10.5.8 Just got a bump from another reader asking if I had resolved this issue, so I decided to post my reply here for any future readers in the same situation. Aaron's suggestion above got me going in the right direction: "You'll have to recompile ruby." I followed the excellent instructions at http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/ to do this, as I took this opportunity to upgrade my ruby dev setup for Snow Leopard. To resolve my specific situation, I had to add the path to my desired OpenSSL version into my PATH (Step 1 of the Hivelogic instructions) before compiling the latest version of Ruby: export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/ssl:$PATH" Though in my case the path to my MySQL install was different because I use MAMP. As an aside, for anyone upgrading to Snow Leopard and using MAMP as their local web server, this solution resolved issues I ran into with the MySQL gem: http://boonedocks.net/mike/archives/175-MAMP-and-the-Ruby-MySQL-Gem.html Thanks for the suggestion, Aaron. I now have a fresh compile of Ruby running OpenSSL v.0.9.8k. Aaron Patterson wrote: > On Sep 22, 2009, at 10:39 AM, Johnny Rodgers wrote: > >> >> USER=root >> >> OPENSSLDIR: "/System/Library/OpenSSL" >> >> >> So, as you can see, I need to be running OpenSSL > v.0.9.8 in order to >> use SHA256 hashing. >> >> I have been scouring the forums and google for about three hours and >> cannot figure out how to make my ruby install use/load the newer >> version >> of OpenSSL. If anyone can point me in the right direction, I would >> greatly appreciate it. > > You'll have to recompile ruby. You might consider just installing > ruby via macports. I think that would be the quickest path to success. > > --- > Aaron Patterson > http://tenderlovemaking.com -- Posted via http://www.ruby-forum.com/.