如何将目录添加到PKG_CONFIG_PATH环境变量? [英] How to add a directory to the PKG_CONFIG_PATH environment variable?

查看:1894
本文介绍了如何将目录添加到PKG_CONFIG_PATH环境变量?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是使用Ubuntu的新手,问题是我想安装opencv,然后我想用这句话查看已安装程序的版本

Im new using Ubuntu, the problem is that i want to install opencv, then i want to see the version of the installed program using this sentence

pkg-config --modversion opencv

然后终端显示出这种类型的错误"

Then the terminal shows me this type of "error"

Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found

我试图做所有事情,但是它不起作用,有人知道如何解决?

I tried to do everything and it doesnt work, someone knows how to fix it?

推荐答案

将开发包安装为:

apt install libopencv-dev

这篇关于如何将目录添加到PKG_CONFIG_PATH环境变量?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆