Ruby On Rails: no such file to load -- openssl (MissingSourceFile)
I was starting up a rails 2.3.8 project and got stuck in a problem, the console showed me the following error ...
`require': no such file to load -- openssl (MissingSourceFile)
I tried a lot to resolve this issue and finally i got a link while googling for the problem ... So here is the solution :-
There was need of ruby 1.8.7-p299. Earlier versions don't compile against openssl 1.0.0 without patching.
Here is the link to download the ruby 1.8.7-p299
Steps :-
Untar the file ruby-1.8.7-p299.tar.gz
Go inside the directory ruby-1.8.7-p299/ext/openssl/
Run => ruby extconf.rb --with-openssl-include=/usr/local/ssl/include --with-openssl-lib=/usr/local/ssl/lib
make
make install
cd ../..
(Note:- You will come back to the directory ruby-1.8.7-p299)
then run the following command :-
./configure
make
make install
Hope it will resolve your problem .... Cheers :-)

Leave a Comment