Varnish Install Error: readline library not found Fix

          Today while setting up a Varnish cache server environment, I encountered an issue during installation. When running the configure script, it threw the following error:

configure: error: readline library not found 

I had already installed the readline package on the system beforehand.
Here are the details:

 According to the error message, it seems the readline package was not installed.
 Checked whether the readline package was installed on the system:

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

It was indeed already installed. Searched for related readline packages via yum:

# yum search readline

 Then, as the results suggested, a package caught my attention: "readline-devel". I guessed it might be related and decided to install the readline-devel package to test.

# yum -y install -y readline-devel

After that, I went back into the Varnish installation directory, and sure enough, it could now be installed normally:

#make && make install

Leave a Comment

Your email address will not be published.