[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

openssl error - ubuntu

Chad

12/2/2006 12:13:00 PM

Help!

Why do I continually get the following error?

------------------------------------------------------------
irb(main):001:0> require 'openssl'
LoadError: no such file to load -- openssl
from (irb):1:in `require'
from (irb):1
------------------------------------------------------------

I've tried everything in every post about this. I've blown away my
ruby install like 6 times. How do I get ruby to recognize openssl?

I've installed:

ubuntu
ruby 1.8.5
libopenssl-ruby
libzlib-ruby
libyaml-ruby
libdrb-ruby
liberb-ruby
zlib1g-dev


Any suggestions?

Thank you,
Chad

14 Answers

Jose francisco Gonzalez carmona

12/2/2006 12:47:00 PM

0


do you have 'openssl' installed? try to install, libssl0.9.8 or highet
and libssl-dev.

jflez.

Chad wrote:
> Help!
>
> Why do I continually get the following error?
>
> ------------------------------------------------------------
> irb(main):001:0> require 'openssl'
> LoadError: no such file to load -- openssl
> from (irb):1:in `require'
> from (irb):1
> ------------------------------------------------------------
>
> I've tried everything in every post about this. I've blown away my
> ruby install like 6 times. How do I get ruby to recognize openssl?
>
> I've installed:
>
> ubuntu
> ruby 1.8.5
> libopenssl-ruby
> libzlib-ruby
> libyaml-ruby
> libdrb-ruby
> liberb-ruby
> zlib1g-dev
>
>
> Any suggestions?
>
> Thank you,
> Chad


--
Posted via http://www.ruby-....

Chad

12/2/2006 7:09:00 PM

0

Absolutely... I'm not a linux expert though, but I have a feeling
they're installing somewhere that ruby can't see them. What can I do
to ensure apt-get is behaving properly?


See below:

[/root] # apt-get install openssl
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssl is already the newest version.

[/root] # apt-get install libssl-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libssl-dev is already the newest version.


Thank you,
Chad




On Dec 2, 4:46 am, Jose francisco Gonzalez carmona
<pgonza...@naupacto.com> wrote:
> do you have 'openssl' installed? try to install, libssl0.9.8 or highet
> and libssl-dev.
>
> jflez.
>


>
>
> Chad wrote:
> > Help!
>
> > Why do I continually get the following error?
>
> > ------------------------------------------------------------
> > irb(main):001:0> require 'openssl'
> > LoadError: no such file to load -- openssl
> > from (irb):1:in `require'
> > from (irb):1
> > ------------------------------------------------------------
>
> > I've tried everything in every post about this. I've blown away my
> > ruby install like 6 times. How do I get ruby to recognize openssl?
>
> > I've installed:
>
> > ubuntu
> > ruby 1.8.5
> > libopenssl-ruby
> > libzlib-ruby
> > libyaml-ruby
> > libdrb-ruby
> > liberb-ruby
> > zlib1g-dev
>
> > Any suggestions?
>
> > Thank you,
> > Chad--
> Posted viahttp://www.ruby-....

Chad

12/2/2006 11:34:00 PM

0

I finally figured it out.

I cleaned out all the current openssl files, then took the ruby 1.8.5
source, went into the ruby-1.8.5/ext/openssl directory and created the
openssl make file:

ruby extconf.rb
make
make install

and that fiiiiinally but the libraries where they should go.

James Rosen

4/7/2007 4:38:00 AM

0

I've followed this, and I'm still stuck.

I've done the following:
sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install libssl0.9.8

gone into /ext/openssl/ and run
ruby extconf.rb
cd ../..
make
make install

At least now all those commands work without failing to find openssl.
Still, though, running irb and calling "require 'openssl'" yeilds the
very frustrating "no such file to load -- libssl"

What else am I forgetting to check?

-Gaius

Robert Dober wrote:
> On 12/3/06, Chad <carimura@gmail.com> wrote:
>>
>> and that fiiiiinally but the libraries where they should go.
>
>
> Thanks for sharing, I have tried about 1 week to get it going, without
> success!!!
>
> Cheers
> Robert
>
>
> --
> "The real romance is out ahead and yet to come. The computer revolution
> hasn't started yet. Don't be misled by the enormous flow of money into
> bad
> defacto standards for unsophisticated buyers using poor adaptations of
> incomplete ideas."
>
> - Alan Kay


--
Posted via http://www.ruby-....

James Rosen

4/7/2007 4:45:00 AM

0

I solved my own problem: the make and make install should be run from
the ext/openssl/ directory (and it's fine if there's "nothing to do for
make").

-Gaius

--
Posted via http://www.ruby-....

Rod Mclaughlin

5/15/2008 4:04:00 PM

0

Thanks for all the help. The full story of how I installed Rails can be
found in
http://forum.eeeuser.com/viewtopic.php?pid=2575...
http://forum.eeeuser.com/viewtopic.php?...

Gaius Centus Novus wrote:
> I solved my own problem: the make and make install should be run from
> the ext/openssl/ directory (and it's fine if there's "nothing to do for
> make").
>
> -Gaius

--
Posted via http://www.ruby-....

G.Durga Prasad

6/11/2008 1:16:00 PM

0

Chad wrote:
> I finally figured it out.
>
> I cleaned out all the current openssl files, then took the ruby 1.8.5
> source, went into the ruby-1.8.5/ext/openssl directory and created the
> openssl make file:
>
> ruby extconf.rb
> make
> make install
>
> and that fiiiiinally but the libraries where they should go.

This information helped me when I was struggling with this problem
today.
I registed into this forum , immediately, only to thank you.

Prasad
--
Posted via http://www.ruby-....

James George

6/19/2008 9:50:00 AM

0

Thanks a lot pal, it worked perfectly for me too. I had the same openssl
problem on a new ubuntu server box. Thanks for the tip.


Chad wrote:
> I finally figured it out.
>
> I cleaned out all the current openssl files, then took the ruby 1.8.5
> source, went into the ruby-1.8.5/ext/openssl directory and created the
> openssl make file:
>
> ruby extconf.rb
> make
> make install
>
> and that fiiiiinally but the libraries where they should go.

--
Posted via http://www.ruby-....

Marc Heiler

6/19/2008 2:19:00 PM

0

So much for distribution's package managers making your life easier,
huh? ;-)
--
Posted via http://www.ruby-....

Lucas Nussbaum

6/20/2008 7:49:00 AM

0

On 19/06/08 at 23:18 +0900, Marc Heiler wrote:
> So much for distribution's package managers making your life easier,
> huh? ;-)

I don't think anybody reported a bug about that to Ubuntu or Debian. And
Ubuntu just imports the Ruby packages from Debian.

Also, it works perfectly fine here. On a clean Debian install:
apt-get install ruby libopenssl-ruby ; ruby -e 'require "openssl"'
doesn't raise any error.

If you can still reproduce this, I would be interested in the outputs of
"dpkg -l | grep ruby" and "dpkg -L libopenssl-ruby1.8" on your system.
--
| Lucas Nussbaum
| lucas@lucas-nussbaum.net http://www.lucas-nus... |
| jabber: lucas@nussbaum.fr GPG: 1024D/023B3F4F |