Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 need to find the installation directory of OpenCv so that I can add it's path to PKG_CONFIG_PATH so I can run OpenCv programs the problem is I don't know where to look for it since I'm completely new to ubuntu.

I'm using ubuntu 10.04 Any help would be appreciated.Thanks!!!

share|improve this question

migrated from May 20 '12 at 23:00

This question came from our site for professional and enthusiast programmers.

You can add following lines to /etc/bash.bashrc using your favorite text editor so that you dont have to export path everytime.


and restart your system.

share|improve this answer

Your Answer


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