I have seen several methods for building bitcoin from source on Fedora, but I have not seen corresponding information for vanitygen. It builds, and it starts up, but then it gives me the error: "pattern.c:164: vg_exec_context_init: Assertion `vxcp->vxc_key' failed." Of course, the cause is easily searchable: the Fedora implementation of OpenSSL does not include the algorithms that bitcoin depends on. Bicoin got around this, but vanitygen does not seem to be able to. I downloaded and built the most recent version of OpenSSL from their website. Using "make -rpath [path to the openssl I built]", however, does not change anything.
So my question is: How do I get vanitygen to point to my OpenSSL rather than the default OpenSSL? I don't want my entire system to use the custom OpenSSL because I trust the Fedora implementation more than the one I downloaded; however I don't intend to use the generated addresses for more than small bitcoin amounts, so they don't have to be as safe.
References: How do I build Bitcoin in Fedora 18?
EDIT: For reference, the procedure referenced in the accepted answer below is:
NOTE: In both this and the accepted answer below, REPLACE openssl-1.0.1g WITH THE LATEST VERSION OF OPENSSL. 1.0.1g may have security flaws that are patched in future versions - it is current as of this writing, but probably will not be in six months.
tar xfz openssl-1.0.1g.tar.gz
./config --prefix=/opt/openssl-1.0.1g zlib-dynamic shared
sudo make install_sw