Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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.

1 Answer 1

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.