CentOS,libedit-devel 未找到

问题描述 投票:0回答:2

我正在尝试安装 sqlsrv (ms sql) PHP 驱动程序 https://learn.microsoft.com/en-us/sql/connect/php/installation-tutorial-linux-mac?view=sql-server- 2017#在 red-hat-7 上安装驱动程序

我可以安装所有先决条件,除了 php-devel,它需要 libedit-devel,而它似乎不存在。

我在哪里可以获得 libedit-devel?

php centos centos7 yum centos8
2个回答
5
投票

在 Centos 8 中出现此错误。

CentOS 8 / RHEL 8 Linux 上默认未启用 PowerTools 存储库。该存储库包含安装其他应用程序时所需的许多依赖项,并且大多数是从源代码构建应用程序。

能够从命令行界面在 CentOS 8 / RHEL 8 上启用 PowerTools 存储库。首先安装DNF插件包:

sudo dnf -y install dnf-plugins-core

安装 EPEL 存储库 – PowerTools 存储库和 EPEL 存储库是最好的朋友。因此还要启用 EPEL 存储库。

sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm

在 CentOS 8 / RHEL 8 上启用 PowerTools 存储库:

sudo dnf config-manager --set-enabled powertools

确认已启用:

sudo dnf repolist

然后你可以尝试自动下载:

yum -y install   libedit-devel

https://computingforgeeks.com/enable-powertools-repository-on-centos-rhel-linux/


4
投票

手动安装libedit-devellib。

wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libedit-devel-3.0-12.20121213cvs.el7.x86_64.rpm
sudo rpm -i libedit-devel-3.0-12.20121213cvs.el7.x86_64.rpm
© www.soinside.com 2019 - 2024. All rights reserved.