Compiling ffmpeg with x264 support

Hey, sorry for a second post so quickly. I have figured out a lot of my issues, but am confused on the syntax I am to use for the config of ffmpeg. I have already compiled x264 and lame. Here is the syntax I have been using:

./configure --prefix=–prefix=$HOME --enable-mp3lame --prefix=/home/jrich/bin --extra-cflags=-I/home/jrich/bin/include --extra-ldflags=-L/home/jrich/lib --cross-compile --enable-x264 --prefix=/home/jrich/bin --extra-cflags=-I/home/jrich/bin/include --extra-ldflags=-L/home/jrich/lib --enable-gpl --enable-shared --enable-pthreads

As you can see, I am using /home/jrich/bin to hold the lame and x264 codecs, and would like to have ffmpeg there as well. I thought this was all correct, I went to execute ffmpeg, and got this error:

“./ffmpeg: error while loading shared libraries: cannot open shared object file: No such file or directory”

Thanks in advance for any help.