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

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.
10da297eedcca67860268ec3490f6f06?d=identicon&s=25 dino d. (Guest)
on 2008-10-22 17: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?

Thanks,
Dino
4c438a80fc30661ad619ea177cf9cbd0?d=identicon&s=25 Freddy Andersen (Guest)
on 2008-10-22 19: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....
10da297eedcca67860268ec3490f6f06?d=identicon&s=25 dino d. (Guest)
on 2008-10-22 20: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
ideas?
This topic is locked and can not be replied to.