varnish安装提示configure: error: readline library not found

          今天搭建varnish缓存服务器环境的时候在安装过程中遇到一个问题,在执行 configure过程中报以下错误:

configure: error: readline library not found 

并且之前已经在系统中安装过readline包了。
具体情况如下:

 根据提示,应该是没有安装 readline包。
 检查系统是否安装 readline 包

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

确实已安装过,通过 yum 搜索相关的 readline 包:

# yum search readline

 于是根据提示,有一个包引起了我的注意 "readline-devel", 猜想可能与这个包有关并安装 readline-devel 包试试。

# yum -y install -y readline-devel

之后再进入varnish安装目录,果然可以正常安装了

#make && make install

发表评论

您的邮箱地址不会被公开。