【问题标题】:CentOS, libedit-devel not foundCentOS,未找到 libedit-devel
【发布时间】:2020-02-12 10:54:22
【问题描述】:

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

我可以安装所有 pre-reqs,除了 php-devel 需要 libedit-devel 似乎不存在。

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

【问题讨论】:

标签: php centos centos7 yum centos8


【解决方案1】:

手动安装libedit-devel 库。

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

【讨论】:

【解决方案2】:

在 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/

【讨论】:

  • 显然,“powertools”必须是小写的。即 sudo dnf config-manager --set-enabled powertools
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-03-21
  • 2018-08-23
  • 2016-11-15
  • 2014-06-06
  • 2011-02-02
相关资源
最近更新 更多