CentOS, libedit-devel not found
Asked Answered
T

2

6

I'm trying to install sqlsrv (ms sql) PHP drivers per https://learn.microsoft.com/en-us/sql/connect/php/installation-tutorial-linux-mac?view=sql-server-2017#installing-the-drivers-on-red-hat-7

I can get all the pre-reqs installed except php-devel which requires libedit-devel which does not seem to exist.

Where can I get libedit-devel?

Trafalgar answered 15/10, 2019 at 17:47 Comment(1)
Did you try to manually download from here? centos.pkgs.org/7/centos-x86_64/…Viburnum
V
5

Install the libedit-devel lib manually.

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
Viburnum answered 15/10, 2019 at 18:31 Comment(2)
I have the same problem on centos 8, but there apperas to be nothing at mirror.centos.org/centos/8 :(Frech
@NickWeavers Try this link: centos.pkgs.org/8/centos-powertools-x86_64/…Viburnum
H
6

Got this error in Centos 8.

The PowerTools repository is not enabled by default on CentOS 8 / RHEL 8 Linux. This repository contains a number of packages required as dependencies when installing other applications, and mostly building applications from source code.

To be able to enable PowerTools Repository on CentOS 8 / RHEL 8 from command line interface. First install DNF plugins package:

sudo dnf -y install dnf-plugins-core

Install EPEL repository – PowerTools repository & EPEL repository are best friends. So enable EPEL repository as well.

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

Enable PowerTools Repository on CentOS 8 / RHEL 8:

sudo dnf config-manager --set-enabled powertools

Confirm it is enabled:

sudo dnf repolist

Then you can try to download it automatically:

sudo yum -y install   libedit-devel

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

Hairraising answered 17/11, 2020 at 20:4 Comment(1)
Apparently, "powertools" must be lowercase. i.e. sudo dnf config-manager --set-enabled powertoolsFastidious
V
5

Install the libedit-devel lib manually.

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
Viburnum answered 15/10, 2019 at 18:31 Comment(2)
I have the same problem on centos 8, but there apperas to be nothing at mirror.centos.org/centos/8 :(Frech
@NickWeavers Try this link: centos.pkgs.org/8/centos-powertools-x86_64/…Viburnum

© 2022 - 2024 — McMap. All rights reserved.