# No such file to load -- openssl (RuntimeError)

**URL:** <https://www.ruby-forum.com/t/no-such-file-to-load-openssl-runtimeerror/169344>\
**Category:** Rails\
**Created:** [June 2, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-openssl-runtimeerror/169344 "2009-06-02T17:05:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cabaret](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@cabaret](https://www.ruby-forum.com/u/cabaret)\
**Post date:** [June 2, 2009, 5:05pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-openssl-runtimeerror/169344/1 "2009-06-02T17:05:51Z")

</div>

Hi.

I have been trying all day to set up RoR; I got Ruby, Rails, Rubygems.  
Everything is installed (they all react to --version). However, when I  
try to run the webserver, I get the following message (terminal output  
below).

I have googled this error and found hundreds of webpages. None were of  
any help though. People were told to get libopenssl-ruby, among other  
packets, but I have all of the packets mentioned in the posts I found.  
Yet, it still fails to work… I woke up this morning with a lot of  
enthusiasm to get this working, but after errors and more errors, it’s  
getting pretty demotivational. Hopefully some friendly person here can  
help me out!

:~/webcontent/ruby/mynewapp$ ruby script/server  
=\> Booting Mongrel  
=\> Rails 2.3.2 application starting on [http://0.0.0.0:3000](http://0.0.0.0:3000)  
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:  
269:in  
`require_frameworks': no such file to load -- openssl (RuntimeError) from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb: 134:in `process’  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb:  
113:in  
`send' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/initializer.rb: 113:in `run’  
from /home/joris/webcontent/ruby/mynewapp/config/environment.rb:9  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require' from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require’  
from  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/  
active\_support/dependencies.rb:156:in  
`require' from /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/ active_support/dependencies.rb:521:in `new\_constants\_in’  
from  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.3.2/lib/  
active\_support/dependencies.rb:156:in  
`require' from /usr/local/lib/ruby/gems/1.8/gems/rails-2.3.2/lib/commands/server.rb: 84 from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem\_original\_require’  
from  
/usr/local/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`require’  
from script/server:3

---

<div class="post-metadata">

**Author:** ![cabaret](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@cabaret](https://www.ruby-forum.com/u/cabaret)\
**Post date:** [June 2, 2009, 5:09pm UTC](https://www.ruby-forum.com/t/no-such-file-to-load-openssl-runtimeerror/169344/2 "2009-06-02T17:09:22Z")

</div>

On Jun 2, 3:55 pm, joris ooms [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Yet, it still fails to work… I woke up this morning with a lot of  
> enthusiasm to get this working, but after errors and more errors, it’s  
> getting pretty demotivational. Hopefully some friendly person here can  
> help me out!

Well it does look awfully like you don’t have the openssl bindings for  
ruby.

Did you install ruby by hand or did you use your OS’s ruby distro  
(which OS?)  
One reason could be that you have your ruby in /usr/local/… but  
installing libopenssl-ruby from your package manager installed that  
stuff for the OS’s version of ruby (not the one you are using).

Fred

---

<div class="post-metadata">

**Author:** ![cabaret](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/ad7895/32.png) [@cabaret](https://www.ruby-forum.com/u/cabaret)\
**Post date:** [June 3, 2009, 9:45am UTC](https://www.ruby-forum.com/t/no-such-file-to-load-openssl-runtimeerror/169344/3 "2009-06-03T09:45:29Z")

</div>

I did have the bindings, but for some reason it still wouldn’t work. I  
removed  
everything and started from source after I got the necessary openssl  
stuff.  
That did the trick, I now have everything running properly! Thanks for  
the reply

On Jun 2, 5:08 pm, Frederick C. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
