简体   繁体   English

如何在Amazon Linux AMI上安装Caffe所需的软件包

[英]How to install packages required for Caffe on Amazon Linux AMI

I'm trying to install caffe on a Amazon Linux AMI. 我正在尝试在亚马逊Linux AMI上安装caffe。 It has "yum" package manager. 它有“yum”包经理。 When I look at requirements, I see that, I have to run the following command: 当我查看需求时,我看到了,我必须运行以下命令:

sudo yum install gflags-devel glog-devel lmdb-devel

However, when I do this, I always get the following error: 但是,当我这样做时,我总是得到以下错误:

No package gflags-devel available.
No package glog-devel available.
No package lmdb-devel available.

So, this command is from the official web page of caffe and therefore I believe there is no mistake in the installation command. 所以,这个命令来自caffe的官方网页,因此我相信安装命令没有错误。 My question is how can I fix the problem ? 我的问题是如何解决问题? I'm a newbie on this issues and therefore sorry if my question is so simple. 我是这个问题的新手,对不起,如果我的问题很简单的话。

Note : I know that there is a pre-installed caffe AMI available but I need to install it on my own instance. 注意:我知道有预先安装的caffe AMI可用,但我需要在我自己的实例上安装它。

EDIT 编辑

The only thing I could find is the that instance is Linux AMI 2016.03 Release. 我唯一能找到的是该实例是Linux AMI 2016.03 Release。

EDIT2 EDIT2

I was able to install the aforamentioned packages by enabling other repositories as explained here and here . 我能够通过启用其他存储库来安装所提到的软件包,如此此处所述 As a final step I have to install opencv-devel package but guess what? 作为最后一步,我必须安装opencv-devel包,但猜猜是什么? Thanks to Amazon Linux AMI it does not exist too! 感谢Amazon Linux AMI,它也不存在! So, if is there anyone who could tell me how could I solve this new problem, I'd be very appreciate. 所以,如果有人能告诉我如何解决这个新问题,我将非常感激。

You have to install opencv from source. 您必须从源安装opencv。 Linux AMI is based on cent OS. Linux AMI基于分操作系统。 Here is a guide while wil help you to install opencv from source. 是一个指南,同时将帮助您从源代码安装opencv。 Link: https://www.vultr.com/docs/how-to-install-opencv-on-centos-7 链接: https//www.vultr.com/docs/how-to-install-opencv-on-centos-7

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM