Does that specify the right location ?
It's the '/usr/local/ray/lib/perl5/site_perl/5.8.5/i686-linux/' directory (not '/usr/local/ray/lib/perl5/site_perl') that needs to be searched when looking for Crypt/SSLeay.pm.
Similarly, for the other location of Crypt::SLLeay (which is the one I'd be trying first) you'd want
use lib '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/';