I\'m trying to install OpenCV for use with Pastec on an Amazon Linux instance. This is my first time using an Amazon service, and I don\'t have much experience using linux..
It seems that default yum
repo for Amazon AMI doesn't contain OpenCV packages.
You can compile it from sources by yourself with the following simple steps:
sudo yum install git cmake gcc-c++
git clone https://github.com/Itseez/opencv.git
git checkout <required version>
cmake <path to sources>
make
sudo make install
It's basic steps - after this you will have OpenCV with some default modules. You can read cmake output and adjust your installation before actual build. Possibly you should install additional packages for your needs (like libpng, libjpg, python etc.).
cmake should be higher than 3.5 in latest linux versions for the purpose of installing opencv and other packages. To install in Fedora or similar flavour use
sudo yum install cmake3