Forum: Ruby on Rails recreated app and now it can't load OpenSSL

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
dino d. (Guest)
on 2008-10-22 19:57
(Received via mailing list)
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?

Freddy A. (Guest)
on 2008-10-22 21:59
(Received via mailing list)
is openssl installed? Is this centos? rpm -qa | grep openssl

If you get that in irb its not a environment.rb issue....
dino d. (Guest)
on 2008-10-22 22:02
(Received via mailing list)
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
This topic is locked and can not be replied to.