我正在尝试在Centos 6中安装openCV。当我运行命令[root @ cosmas opt]#sudo yum install libtiff4-dev libjpeg-dev libjasper-dev时,它返回以下信息:

Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * epel: mirror.fraunhofer.de
 * rpmforge: nl.mirror.eurid.eu
Setting up Install Process
No package libtiff4-dev available.
No package libjpeg-dev available.
No package libjasper-dev available.
Error: Nothing to do

我做错了什么?谁能帮我?

最佳答案

1.如何安装和启用EPEL存储库:

CentOS的6

yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm

CentOS的6
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

2.安装opencv依赖项:

安装基本依赖项:
 yum -y install libjpeg libpng libtiff jasper-libs ilmbase OpenEXR-libs gtk2 gstreamer gstreamer-plugins-base

您也可以手动搜索所需的库(* .so)或软件包:
yum provides "*/*some.file"

如何禁用rpmforge存储库
编辑/etc/yum.repos.d/rpmforge.repo

设定属性
enabled=0

关于opencv - 在Centos中安装openCV,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20108388/

10-16 21:04