# Recreated app and now it can't load OpenSSL

**URL:** <https://www.ruby-forum.com/t/recreated-app-and-now-it-cant-load-openssl/151545>\
**Category:** Rails\
**Created:** [October 22, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/recreated-app-and-now-it-cant-load-openssl/151545 "2008-10-22T17:57:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [October 22, 2008, 5:57pm UTC](https://www.ruby-forum.com/t/recreated-app-and-now-it-cant-load-openssl/151545/1 "2008-10-22T17:57:10Z")

</div>

hi -

i have a hosted app on dreamhost, i made some change to environment.rb  
and it totally screwed up my app. I cannot remember what i did. So,  
i decided to recreate it by deleting environment.rb and running rails  
myapp. everything works fine, except when use one of my controllers,  
it dies. the error is that it cannot locate blackbook (a gem).  
blackbook is there and the GEM\_PATH and GEM\_ROOT both point to the  
right place. In irb, i do:

require ‘rubygems’  
require ‘blackbook’

the first returns true, the second returns this:

LoadError: no such file to load – openssl

So, I screwed something up. I don’t have root access and I’m 90% sure  
this can be fixed by correcting something in environment.rb, but I  
don’t know what. Can anyone give me a push in the right direction?

Thanks,  
Dino

---

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [October 22, 2008, 7:59pm UTC](https://www.ruby-forum.com/t/recreated-app-and-now-it-cant-load-openssl/151545/2 "2008-10-22T19:59:52Z")

</div>

is openssl installed? Is this centos? rpm -qa | grep openssl

If you get that in irb its not a environment.rb issue…

---

<div class="post-metadata">

**Author:** ![dino\_d](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/b5ac83/32.png) [@dino\_d](https://www.ruby-forum.com/u/dino_d)\
**Post date:** [October 22, 2008, 8:02pm UTC](https://www.ruby-forum.com/t/recreated-app-and-now-it-cant-load-openssl/151545/3 "2008-10-22T20:02:48Z")

</div>

well, as far as i know, i don’t purposely use openssl, anyway, i’ve  
recompiled ruby and that problem is now solved. now i can load the  
blackbook gem from irb, but it still dies from the application, i get:

MissingSourceFile (no such file to load – blackbook)

but in irb if i do

require ‘blackbook’

i get true (success)

so somehow, it seems,my app is not getting the right gems path. any  
ideas?
