I tried to install all kinds veriations of package names with yum, such
as libopenssl, openssl-src, ruby-openssl, ruby-libopenssl etc etc, nut
couldnt find any.
I then downloaded the libopenssl-ruby source files (which actually are
for debian i think) and copied the .rb files into
/usr/local/lib/ruby/1.8, but then it complained that it cannot find
openssl.so.
So how do I get the openssl source files installed so that it works in
ruby?
I then downloaded the libopenssl-ruby source files (which actually are
for debian i think) and copied the .rb files into
/usr/local/lib/ruby/1.8, but then it complained that it cannot find
openssl.so.
So how do I get the openssl source files installed so that it works in
ruby?
Look for a package named openssl-dev or openssl-devel
and install them.
These contain the necessary C header files for Ruby to link against
the Openssl libs.
Hope that helps,
This clearly needs to be an FAQ: When require returns false that means
that the required library has already been loaded. It does not mean that
require failed. When require fails it raises LoadError.
do you have rubygems installed ?
I think I recall the default behavior of require would change when
using rubygems on certain platforms.
Yes, but ruby openssl was installed not by gem but by the
libopenssl-ruby package.
This clearly needs to be an FAQ: When require returns false that means
that the required library has already been loaded. It does not mean
that require failed. When require fails it raises LoadError.
Oh, geez, sure – sorry, it’s way too late too work!
Look for a package named openssl-dev or openssl-devel
and install them.
These contain the necessary C header files for Ruby to link against
the Openssl libs.
almost there.
yum did find openssl-devel, but could not satisfy the zlib dependancy.
needs 1.1.4, my installed version was too new. rpm -i --force did the
job and openssl-devel installed successfully.
on the ruby side i have to do everything manually. copied the openssl
ruby files as well as openssl.so into /usr/lib/ruby/1.8
now i can start my script, but at some point it fails:
/usr/local/lib/ruby/1.8/net/protocol.rb:66:in closed?': undefined methodclosed?’ for #OpenSSL::SSL::SSLSocket:0xb7e35474
(NoMethodError)
does that mean my net/protocol.rb is outdated? yum tells me i have the
newest ruby version installed
ruby 1.8.5 (2006-12-04 patchlevel 2) [i686-linux]
–
“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.”
Sorry posts just crossed each other, you are beyond the point where this
thread will be helpfull now.
My lucky day
Sorry for the noise
R
–
“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.”
Sorry posts just crossed each other, you are beyond the point where this
thread will be helpfull now.
My lucky day
Sorry for the noise
R
–
“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.”
Seems my posts are most valuable when I am completely confused, well I
risk to become a valuable member of the community than
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.”