Friday, April 8, 2022

[SOLVED] CentOS, libedit-devel not found

Issue

I'm trying to install sqlsrv (ms sql) PHP drivers per href="https://docs.microsoft.com/en-us/sql/connect/php/installation-tutorial-linux-mac?view=sql-server-2017#installing-the-drivers-on-red-hat-7" rel="nofollow noreferrer">https://docs.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?


Solution

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


Answered By - fonini
Answer Checked By - Pedro (WPSolving Volunteer)