在Centos中安装openCV

时间:2013-11-20 22:26:25

标签: opencv centos

我正在尝试在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

我做错了什么?任何人都可以帮助我吗?

2 个答案:

答案 0 :(得分:1)

<强> 1。如何安装和启用EPEL回购:

CentOS 6

java -classpath "./sajdbc4.jar;." DbConnection

CentOS 6

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

<强> 2。安装opencv依赖项:

安装基本依赖项:

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

您也可以手动搜索所需的库(* .so)或包:

 yum -y install libjpeg libpng libtiff jasper-libs ilmbase OpenEXR-libs gtk2 gstreamer gstreamer-plugins-base

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

设置属性

yum provides "*/*some.file"

答案 1 :(得分:0)

我可以看到你正试图通过yum安装debian命名的包。

  1. 在此处禁用rpmforge repo /etc/yum.repos.d/rpmforge.repo
  2. 尝试运行yum --enable-repo = epel search opencv
  3. 安装opencv