Varnish Install Error: Readline Library Not Found Fix

          While setting up a Varnish cache server environment today, I ran into an error during the installation. The configure script threw the following error:

configure: error: readline library not found 

However, thereadlinepackage had already been installed on the system.
The details are as follows:

 According to the prompt, the readline package was not installed.
 Check whether the system has the readline package installed:

# rpm -qa | grep readline
 readline-5.1-3.el5

It was indeed already installed.Search for related readline packages using yum:

# yum search readline

 Based on the search results, one package caught my eye — "readline-devel". I suspected it might be related, so Itried installing the readline-devel package.

# yum -y install -y readline-devel

After that, I went back into the Varnish installation directory, andsure enough, the installation proceeded without issues:

#make && make install

Leave a Comment

Your email address will not be published.