Yum 存储库 - 找不到正确的存储库
Yum repository - unable to find correct one
只是想知道是否有人可以帮我找到一个或多个允许我下载以下依赖项的 yum 存储库?
我正在尝试将这些项目安装在标准亚马逊 linux 盒子上
libopencv-dev
python-opencv
libfreetype6-dev
libgl1-mesa-dev
谢谢
达米恩
嗯,考虑到 Amazon Linux 基于 RHEL(RedHat Enterprise Linux)发行版,可以启用 EPEL(Extra Packages for Enterprise Linux,由 Fedora 发行版人员维护) 存储库,其中包含您想要的这些包,名称略有不同。我要引用 AWS 帮助页面:
Amazon Linux – The EPEL repo is already installed on Amazon Linux, but
it must be enabled by updating the epel.repo file. The following
command illustrates use of the vim editor to update the epel.repo
file. 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
您需要从源安装 opencv
包,请参阅
假设您使用的是 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
我已经安装了所有默认和额外的存储库,但我没有找到任何这些包的匹配项:
libopencv-dev
python-opencv
libfreetype6-dev
libgl1-mesa-dev
如果您需要下载基本回购配置,请访问 this link, pick the correct version and copy the CentOS-Base.repo
file to the path given above. If you need additional repos (Such as EPEL) then see 我为另一个用户回答的问题。
只是想知道是否有人可以帮我找到一个或多个允许我下载以下依赖项的 yum 存储库? 我正在尝试将这些项目安装在标准亚马逊 linux 盒子上 libopencv-dev python-opencv libfreetype6-dev libgl1-mesa-dev
谢谢 达米恩
嗯,考虑到 Amazon Linux 基于 RHEL(RedHat Enterprise Linux)发行版,可以启用 EPEL(Extra Packages for Enterprise Linux,由 Fedora 发行版人员维护) 存储库,其中包含您想要的这些包,名称略有不同。我要引用 AWS 帮助页面:
Amazon Linux – The EPEL repo is already installed on Amazon Linux, but it must be enabled by updating the epel.repo file. The following command illustrates use of the vim editor to update the epel.repo file. 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
您需要从源安装 opencv
包,请参阅
假设您使用的是 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
我已经安装了所有默认和额外的存储库,但我没有找到任何这些包的匹配项:
libopencv-dev
python-opencv
libfreetype6-dev
libgl1-mesa-dev
如果您需要下载基本回购配置,请访问 this link, pick the correct version and copy the CentOS-Base.repo
file to the path given above. If you need additional repos (Such as EPEL) then see