代码之家  ›  专栏  ›  技术社区  ›  Damien

Yum存储库-找不到正确的存储库

  •  1
  • Damien  · 技术社区  · 8 年前

    libopencv开发 libfreetype6开发 libgl1 mesa开发

    达米恩

    3 回复  |  直到 8 年前
        1
  •  1
  •   user3788685    8 年前

    假设您使用的是CentOS/RHEL构建,那么您可以使用标准回购;

    所有缺失的依赖项都由 base

    Available Packages
    Name        : opencv-python
    Arch        : x86_64
    Version     : 2.0.0
    Release     : 12.el6
    Size        : 843 k
    Repo        : base
    Summary     : Python bindings for apps which use OpenCV
    URL         : http://opencv.willowgarage.com/wiki/
    License     : BSD
    Description : This package contains Python bindings for the OpenCV library.
    
    Name        : opencv-devel
    Arch        : x86_64
    Version     : 2.0.0
    Release     : 12.el6
    Size        : 179 k
    Repo        : base
    Summary     : Development files for using the OpenCV library
    URL         : http://opencv.willowgarage.com/wiki/
    License     : BSD
    Description : This package contains the OpenCV C/C++ library and header files, as well as
                : documentation. It should be installed if you want to develop programs that
                : will use the OpenCV library. You should consider installing opencv-devel-docs
                : package.
    
    
    Name        : opencv
    Arch        : x86_64
    Version     : 2.0.0
    Release     : 12.el6
    Size        : 4.6 M
    Repo        : base
    Summary     : Collection of algorithms for computer vision
    URL         : http://opencv.willowgarage.com/wiki/
    License     : BSD
    Description : OpenCV means Intel® Open Source Computer Vision Library. It is a collection of
                : C functions and a few C++ classes that implement some popular Image Processing
                : and Computer Vision algorithms.
    

    /etc/yum.repos.d/ 然后查看是否有一个名为 CentOS-Base.repo 如果您已使用编辑器打开它,并检查所需的行是否已 enabled=1

    我有所有的默认值&安装了其他repos,但我没有找到与这些软件包匹配的软件包:

    libopencv-dev
    python-opencv
    libfreetype6-dev
    libgl1-mesa-dev
    

    this link ,选择正确的版本并复制 CentOS基地。回购 this link

        2
  •  1
  •   Bruno Meneguele    8 年前

    嗯,考虑到Amazon Linux基于RHEL(RedHat Enterprise Linux)发行版,可以启用EPEL(企业Linux的额外软件包,由Fedora发行版维护)存储库,其中包含您想要的名称稍有不同的软件包。我将引用AWS帮助页面:

    亚马逊Linux EPEL repo已经安装在亚马逊Linux上,但是 它必须通过更新epel来启用。回购文件。以下内容 文件vim/etc/yum。回购协议d/epel。回购

    a. Locate and change the entry enabled=0 to enabled=1 that is located in the $basearch section of the epel.repo file.
    b. Save and exit the vim editor.
    

    现在,请注意,您想要的包名称遵循其他发行版的约定,因此在RHEL/EPEL存储库上可能会有所不同。因此,请尝试:

    # yum install mesa-libGL-devel freetype-devel opencv-devel opencv-python
    
        3
  •  1
  •   Thomas    8 年前

    opencv 来源的包装,请参阅 How to install OpenCV on Amazon Linux?

    推荐文章