If you found any payment issue due to openssl (like require 'openssl' fails) then you have to be very careful.
Exact error might be:
This error occurred because you have installed your ruby without openssl support. So first install openssl then install ruby with openssl support.
If you still getting the error then you can follow the steps:
1. Check whether the openssl package is installed, if not please use 'yum install openssl'
2. Still the issue not solved then install openssl-dev, also make sure the library 'libruby' is installed
3. Still the issue not solved then check the ruby lib has the directory called 'openssl'
Note: In my server, the ruby lib is located at: /usr/local/lib/ruby/1.8/, better you can search the exact ruby's lib through 'whereis ruby' command
4. If openssl directory is not in your ruby lib then possibly you might get the openssl load error, then you can follow the simple steps:
a) copy openssl directory from any one of your other servers which is processing the 'openssl' and 'payment' things successfully
b) Then try 'require openssl' in your irb environment, If you get any "openssl.so" error, then search the file "openssl.so" and make a symbolic link to the x86_64-linux directory, if the file is not in your system then simply copy the openssl.so from other servers to 'x86_64-linux' that is /usr/local/lib/ruby/1.8/x86_64-linux'
5. Don't forget to restart your server (not only the web servers)
Comments
Post a Comment