libavcodec.so.55:undefined reference to vpx_codec_vp9_dx_algo

When I install the OpenCV with the guide(in the website:http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html, some errors occured as I excute the command "make", the errors like: Linking CXX executable ../../bin/opencv_perf_core /lib/libavcodec.so.55: undefined reference to `vpx_codec_vp9_dx_algo “OpenCV Guide”)), some errors occured as I excute the command “make”, the errors like:

Linking CXX executable ../../bin/opencv_perf_core
/lib/libavcodec.so.55: undefined reference to vpx_codec_vp9_dx_algo' /lib/libavcodec.so.55: undefined reference tovpx_codec_vp9_cx_algo’
collect2: error: ld returned 1 exit status
make[2]: [bin/opencv_perf_core] Error 1
make[1]:
[modules/core/CMakeFiles/opencv_perf_core.dir/all] Error 2
make: *** [all] Error 2

So, I went to the net to search why, but nothing benefits me. I had tried these commands:

$sudo yum install ffmpeg
$sudo yum install avcodec

and they had no effects. In the end, I tried the follow command:

$sudo yum install libvpx.i686 libvpx-devel.i686 libvpx-utils.i686

and then it worked.