Subversion build fails



I am trying to install a newer version of Subversion than the one that already exists on Dreamhost (1.4.6). I am following the instructions in but I have a problem, When I try the configure line ./configure --prefix=/home/{yourlogin} --with-ssl
After some time, I get the error
checking for openssl pkg-config data… not found
checking for library containing RSA_new… not found.
configue: error: could not find library containing RSA_new.
I have tried building openssl but that failed and I am getting out of my depth. I am fairly new to this kind of “linuxy” stuff. Anyone managed to build subversion successfully including ssl?