Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to install openCv for learning purpose and then using it for OCR(Optical Character Recognition) but i am unable to install it in Ubuntu 12.04

I am following this link and able to carry upto step of downloading ffmpeg but while configuring it getting following error

ERROR: libmp3lame >= 3.98.3 not found

I tried to install libmp3lame following this link but get this error again when configuring ffmpeg

ERROR: libmp3lame >= 3.98.3 not found
share|improve this question
Don't follow a link. It's in repository. Just use apt-get. – RobotHumans Jul 2 '13 at 12:20
its not working, apt-get install libmp3lame, giving error E: Invalid operation libmp3lame – shailendra Jul 2 '13 at 12:46
Not lame, opencv. I have it installed on 12.04 via apt-get install python-opencv and it works fine. – RobotHumans Jul 2 '13 at 12:47

To install OpenCV using the terminal on Ubuntu:

$ su -
# apt-get update
# apt-get install build-essential
# apt-get install libavformat-dev
# apt-get install x264 v4l-utils ffmpeg
# apt-get install libcv2.3 libcvaux2.3 libhighgui2.3 python-opencv \
   opencv-doc libcv-dev libcvaux-dev libhighgui-dev


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.