From: Ruby Student Date: 2013-06-10T08:56:45+09:00 Subject: Re: "Unable to require openssl" is driving me crazy gem 2.0.3 might be broken --001a11c2cdfe89039704dec16ae5 Content-Type: text/plain; charset=ISO-8859-1 As suggested by Justin, I installed and used *rvm* and it worked like a charm! Thank you On Sun, Jun 9, 2013 at 7:53 PM, Justin Collins wrote: > On 06/09/2013 04:31 PM, Ruby Student wrote: > On Sun, Jun 9, 2013 at 6:38 PM, Justin Collins > > wrote: > > > > On 06/09/2013 03:17 PM, Ruby Student wrote: > > > > Hello Team, > > > > I was having lost of problems when Ruby *gem *stop working. So I > > upgraded from Ruby 1.9.3-p392 > > p392-is-released/ > > > p392-is-released/ > >> > > upgraded to Ruby 1.9.3-p429 > > p392-is-released/ > > > p392-is-released/ > >> > > > > mistakenly thinking that my problems would be over. The is > > related to > > openssl, which I tried to install with gem but gem is broken. > > > > I searched and searched for a while trying to locate the openssl > > library > > needed to install it without using gem, but I could not find it. > > > > The installation process for Ruby 1.9.3-p42 > > p392-is-released/ > > > p392-is-released/ > >>, > > (*./configure, make, make install*) went just fine without error. > > > > > > This is what I have: > > > > OS: > > RedHat (RHEL) 6.3, x86_64-linux > > p392-is-released/ > > > p392-is-released/ > >> > > > > *ruby -v* > > > > ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-linux] > > > > *gem -v* > > 2.0.3 > > > > If I do a *gem list*, it works fine displaying the local > > installed gems. > > > > > > If I tried to download a gem or upgrade gem itself, it fails. > > Anything > > that requires to reach out outside my server, it fails. > > > > For example, > > > > *gem list --remote* > > > > > > *** REMOTE GEMS *** > > > > ERROR: While executing gem ... (Gem::Exception) > > Unable to require openssl, install OpenSSL and rebuild ruby > > (preferred) or use non-HTTPS sources > > > > > > > > > > You probably need to install the openssl development package and > > then recompile Ruby. It should be called something like > "openssl-devel". > > > > If you use RVM it would probably take care of this for you: > > https://rvm.io/rvm/autolibs/ > > > > -Justin > > > > > > > > > > > > -- > > Ruby Student > > I already have the openssl development package. I recompiled and got the >> same errors. >> >> *rpm -qa | grep -i openssl* >> >> >> openssl-perl-1.0.0-25.el6_3.1. >> x86_64 >> openssl-1.0.0-25.el6_3.1.x86_**64 >> openssl-devel-1.0.0-25.el6_3.**1.x86_64 >> openssl-1.0.0-25.el6_3.1.i686 >> openssl-static-1.0.0-25.el6_3.**1.x86_64 >> openssl098e-0.9.8e-17.el6_2.2.**x86_64 >> >> > If you go to the ext/openssl/ directory in the Ruby source code and run > "ruby extconf.rb" does it succeed? > > -Justin > > -- Ruby Student --001a11c2cdfe89039704dec16ae5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
As suggested by Justin, I installed and used rvm and it worked like a charm!

Thank you


On Sun, Jun 9, 2013 at = 7:53 PM, Justin Collins <justincollins@ucla.edu> wrote:=
On 06/09/2013 04:31 PM, Ru= by Student wrote:
On Sun, Jun 9, 2013 at 6:38 PM, Justin Collins <justincollins@ucla.edu
> <mailto:justincollins@ucla.edu>> wrote:
>
> =A0 =A0 On 06/09/2013 03:17 PM, Ruby Student wrote:
>
> =A0 =A0 =A0 =A0 Hello Team,
>
> =A0 =A0 =A0 =A0 I was having lost of problems when Ruby *gem *stop wor= king. So I
> =A0 =A0 =A0 =A0 upgraded from Ruby 1.9.3-p392
> <http://www.ruby-lang.org/en/__news/2013/02/22/ruby-1-9-3-__p392-is-released/

> <http://www.ruby-lang.org/en/new= s/2013/02/22/ruby-1-9-3-p392-is-released/>>
> =A0 =A0 =A0 =A0 upgraded to Ruby 1.9.3-p429
> <http://www.ruby-lang.org/en/__news/2013/02/22/ruby-1-9-3-__p392-is-released/

> <http://www.ruby-lang.org/en/new= s/2013/02/22/ruby-1-9-3-p392-is-released/>>
>
> =A0 =A0 =A0 =A0 mistakenly thinking that my problems would be over. Th= e is
> =A0 =A0 =A0 =A0 related to
> =A0 =A0 =A0 =A0 openssl, which I tried to install with gem but gem is = broken.
>
> =A0 =A0 =A0 =A0 I searched and searched for a while trying to locate t= he openssl
> =A0 =A0 =A0 =A0 library
> =A0 =A0 =A0 =A0 needed to install it without using gem, but I could no= t find it.
>
> =A0 =A0 =A0 =A0 The installation process for Ruby 1.9.3-p42
> <http://www.ruby-lang.org/en/__news/2013/02/22/ruby-1-9-3-__p392-is-released/

> <http://www.ruby-lang.org/en/new= s/2013/02/22/ruby-1-9-3-p392-is-released/>>,
> =A0 =A0 =A0 =A0 (*./configure, make, make install*) went just fine wit= hout error.
>
>
> =A0 =A0 =A0 =A0 This is what I have:
>
> =A0 =A0 =A0 =A0 OS:
> =A0 =A0 =A0 =A0 RedHat (RHEL) 6.3, x86_64-linux
> <http://www.ruby-lang.org/en/__news/2013/02/22/ruby-1-9-3-__p392-is-released/

> <http://www.ruby-lang.org/en/new= s/2013/02/22/ruby-1-9-3-p392-is-released/>>
>
> =A0 =A0 =A0 =A0 *ruby -v*
>
> =A0 =A0 =A0 =A0 ruby 1.9.3p429 (2013-05-15 revision 40747) [x86_64-lin= ux]
>
> =A0 =A0 =A0 =A0 *gem -v*
> =A0 =A0 =A0 =A0 2.0.3
>
> =A0 =A0 =A0 =A0 If I do a *gem list*, it works fine displaying the loc= al
> =A0 =A0 =A0 =A0 installed gems.
>
>
> =A0 =A0 =A0 =A0 If I tried to download a gem or upgrade gem itself, it= fails.
> =A0 =A0 =A0 =A0 Anything
> =A0 =A0 =A0 =A0 that requires to reach out outside my server, it fails= .
>
> =A0 =A0 =A0 =A0 For example,
>
> =A0 =A0 =A0 =A0 *gem list --remote*
>
>
> =A0 =A0 =A0 =A0 *** REMOTE GEMS ***
>
> =A0 =A0 =A0 =A0 ERROR: =A0While executing gem ... (Gem::Exception)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 Unable to require openssl, install OpenSSL= and rebuild ruby
> =A0 =A0 =A0 =A0 (preferred) or use non-HTTPS sources
>
>
> =A0 =A0 <snip>
>
> =A0 =A0 You probably need to install the openssl development package a= nd
> =A0 =A0 then recompile Ruby. It should be called something like "= openssl-devel".
>
> =A0 =A0 If you use RVM it would probably take care of this for you: > =A0 =A0 htt= ps://rvm.io/rvm/autolibs/
>
> =A0 =A0 -Justin
>
>
>
>
>
> --
> Ruby Student

I already have the openssl development package. I recompiled and got the same errors.

*rpm -qa | grep -i openssl*


openssl-perl-1.0.0-25.el6_3.1.
x86_64
openssl-1.0.0-25.el6_3.1.x86_64
openssl-devel-1.0.0-25.el6_3.1.x86_64
openssl-1.0.0-25.el6_3.1.i686
openssl-static-1.0.0-25.el6_3.1.x86_64
openssl098e-0.9.8e-17.el6_2.2.x86_64


If you go to the ext/openssl/ directory in the Ruby source code and run &qu= ot;ruby extconf.rb" does it succeed?

-Justin




--
Ruby Stud= ent --001a11c2cdfe89039704dec16ae5--