只是想知道是否有人可以帮我找到一个yum存储库或存储库,允许我下载以下依赖项? 我试图在标准的亚马逊Linux机器上安装这些项目 libopencv-dev的 蟒蛇-的OpenCV libfreetype6-dev的 的libgl1-台面-dev的
由于 达明
答案 0 :(得分:1)
好吧,考虑到Amazon Linux基于RHEL(RedHat Enterprise Linux)发行版,可以启用EPEL(由Fedora发行版维护的企业Linux额外软件包)存储库,其中包含您想要的名称略有不同的软件包。我将引用AWS帮助页面:
Amazon Linux - EPEL repo已安装在Amazon Linux上,但是 必须通过更新epel.repo文件来启用它。下列 命令说明了如何使用vim编辑器更新epel.repo 文件。 vim /etc/yum.repos.d/epel.repo
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
答案 1 :(得分:1)
您需要从来源安装opencv
包,请参阅How to install OpenCV on Amazon Linux?
答案 2 :(得分:1)
假设您使用的是CentOS / RHEL版本,那么您可以使用标准回购;
所有缺少的依赖项都由base
repo。
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
如果您需要下载基本repo配置,请访问this link,选择正确的版本并将libopencv-dev
python-opencv
libfreetype6-dev
libgl1-mesa-dev
文件复制到上面给出的路径。如果您需要额外的回购(例如EPEL),请参阅this link我为其他用户回答的问题。