Forum: Ruby Ruby and OpenSSL: no such file to load -- openssl (RuntimeError)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
F745d7fbe0dbe947aa1082aabb2b6a4f?d=identicon&s=25 Redd Vinylene (Guest)
on 2008-10-18 15:29
(Received via mailing list)
I'm getting this error on Cygwin when trying to run this tiny little
Rails app:

./script/../config/../vendor/rails/railties/lib/initializer.rb:253:in
`require_frameworks': no such file to load -- openssl (RuntimeError)

I have both the openssl and openssl-devel packages installed. There's
even an openssl.so in /lib/ruby/1.8/i386-cygwin. I don't know about
libopenssl-ruby though, it only seems to exist for Debian and Ubuntu.

Anybody got a clue? Have a nice weekend y'all.
F745d7fbe0dbe947aa1082aabb2b6a4f?d=identicon&s=25 Redd Vinylene (Guest)
on 2008-10-18 16:19
(Received via mailing list)
On Sat, Oct 18, 2008 at 3:28 PM, Redd Vinylene <reddvinylene@gmail.com>
wrote:
> I'm getting this error on Cygwin when trying to run this tiny little Rails app:
>
> ./script/../config/../vendor/rails/railties/lib/initializer.rb:253:in
> `require_frameworks': no such file to load -- openssl (RuntimeError)
>
> I have both the openssl and openssl-devel packages installed. There's
> even an openssl.so in /lib/ruby/1.8/i386-cygwin. I don't know about
> libopenssl-ruby though, it only seems to exist for Debian and Ubuntu.
>
> Anybody got a clue? Have a nice weekend y'all.

I just tried compiling/installing openssl-0.9.8i-1 manually, but that
didn't work either.
D337e2cf7c6d03caac6988d83e0e7f66?d=identicon&s=25 Michael Guterl (Guest)
on 2008-10-18 16:26
(Received via mailing list)
On Sat, Oct 18, 2008 at 10:17 AM, Redd Vinylene <reddvinylene@gmail.com>
wrote:
>> Anybody got a clue? Have a nice weekend y'all.
>
> I just tried compiling/installing openssl-0.9.8i-1 manually, but that
> didn't work either.
>
I'm no expert in this arena, but you may need to recompile ruby after
installing openssl.

HTH,
Michael Guterl
F745d7fbe0dbe947aa1082aabb2b6a4f?d=identicon&s=25 Redd Vinylene (Guest)
on 2008-10-18 16:44
(Received via mailing list)
On Sat, Oct 18, 2008 at 4:25 PM, Michael Guterl <mguterl@gmail.com>
wrote:
>
> I'm no expert in this arena, but you may need to recompile ruby after
> installing openssl.

Yeah, good idea, but sorry, it made no difference.
4828d528e2e46f7c8160c336eb332836?d=identicon&s=25 Robert Heiler (shevegen)
on 2008-10-18 21:26
> Yeah, good idea, but sorry, it made no difference.

Did you

(a) compile OpenSSL first and ensured that it worked

(b) then tried to compile the OpenSSL extension within the ext/ dir?

For me on Linux box this route always works.

What is the prefix of both ruby and openssl you use?
E0d864d9677f3c1482a20152b7cac0e2?d=identicon&s=25 Robert Klemme (Guest)
on 2008-10-19 17:58
(Received via mailing list)
2008/10/18 Redd Vinylene <reddvinylene@gmail.com>:
> I'm getting this error on Cygwin when trying to run this tiny little Rails app:
>
> ./script/../config/../vendor/rails/railties/lib/initializer.rb:253:in
> `require_frameworks': no such file to load -- openssl (RuntimeError)
>
> I have both the openssl and openssl-devel packages installed. There's
> even an openssl.so in /lib/ruby/1.8/i386-cygwin. I don't know about
> libopenssl-ruby though, it only seems to exist for Debian and Ubuntu.
>
> Anybody got a clue? Have a nice weekend y'all.

Maybe you got your environment messed up.  Did you try adding
/lib/ruby/1.8/i386-cygwin to RUBYLIB?

robert
Dd18ed7fedc6717ebda49ea7c237c94c?d=identicon&s=25 Jakub Pawlowicz (jakubpawlowicz)
on 2008-11-18 09:54
Robert Klemme wrote:

> Maybe you got your environment messed up.  Did you try adding
> /lib/ruby/1.8/i386-cygwin to RUBYLIB?
>
> robert

Robert - thanks for the tip.
Setting it up via 'export RUBYLIB=/lib/ruby/1.8/i386-cygwin' did the
trick!

Jakub
This topic is locked and can not be replied to.