Reputation: 4121
Just wondering if someone can help me find a yum repository or repositories that will allow me to download the following dependencies? I am trying to install these items on a standard Amazon linux box libopencv-dev python-opencv libfreetype6-dev libgl1-mesa-dev
Thanks Damien
Upvotes: 1
Views: 4163
Reputation: 3093
Presuming you are using a CentOS/RHEL build then you can use the standard repos;
All of you missing dependencies are provided by the 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.
Have a look in; /etc/yum.repos.d/
and see if you have a config file with the name CentOS-Base.repo
if you have open it with an editor and check the required lines have enabled=1
I have all of the default & additional repos installed but I don't get matches for any of these packages:
libopencv-dev
python-opencv
libfreetype6-dev
libgl1-mesa-dev
If you need to download the base repo config then visit 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 this link to a question I answered for another user.
Upvotes: 1
Reputation: 1865
You need to install the opencv
pakage from sources, see How to install OpenCV on Amazon Linux?
Upvotes: 1
Reputation: 11
Well, considering Amazon Linux is based on RHEL (RedHat Enterprise Linux) distro it's possible to enable the EPEL (Extra Packages for Enterprise Linux, maintained by Fedora distro guys) repository that contains these packages you want with slightly different names. I'm going to quote AWS help page:
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.
Now, pay attention that the package names you want follow conventions from other distros, so on RHEL/EPEL repositories might be different. Because of that, try:
# yum install mesa-libGL-devel freetype-devel opencv-devel opencv-python
Upvotes: 1