如何在 EC2 实例上安装 mdbtools? [英] How do I install mdbtools on an EC2 instance?
问题描述
要在 EC2 实例上安装 mdbtools
,我输入了以下内容:
To install mdbtools
on an EC2 instance I entered the following:
curl http://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/m/mdbtools-0.7.1-3.el7.x86_64.rpm > mdbtools-0.7.1-3.el7.x86_64.rpm
rpm -Uvh mdbtools-0.7.1-3.el7.x86_64.rpm
yum -q install mdbtools -y
但我得到以下内容
error: Failed dependencies:
libmdb.so.2()(64bit) is needed by mdbtools-0.7.1-3.el7.x86_64
libmdbsql.so.2()(64bit) is needed by mdbtools-0.7.1-3.el7.x86_64
mdbtools-libs = 0.7.1-3.el7 is needed by mdbtools-0.7.1-3.el7.x86_64
我不知道如何在 EC2 上修复这些问题.
I have no idea how to fix these on EC2.
有什么建议吗?
推荐答案
您正在直接获取单个包,然后尝试安装它.
You're fetching a single package directly, then attempting to install it.
包有一堆依赖项,当它被带出存储库上下文时无法满足.
The package has a bunch of dependencies that can't be satisfied when it is taken outside a repository context.
您应该做的是按照详细的这里.
What you should do, is install the EPEL repository configuration as detailed here.
然后让 yum
安装软件包,同时选择所需的任何依赖项:
Then let yum
install the package while picking up whichever dependencies required:
yum install mdbtools
如果出于某种原因,您想在没有配置 EPEL 存储库的情况下安装东西,您将有一个有趣的时间来获取所有依赖项,这取决于特定的包:)
If for whatever reason, you want to install things without EPEL repository being configured, you will have one fun time fetching all the dependencies, which depends on a particular package :)
在这种特殊情况下,您至少需要 mdbtools-libs
,其直接 URL 是 https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/m/mdbtools-libs-0.7.1-3.el7.x86_64.rpm
In this particular case you need at least mdbtools-libs
, which direct URL is https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/m/mdbtools-libs-0.7.1-3.el7.x86_64.rpm
这篇关于如何在 EC2 实例上安装 mdbtools?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!