Resolving Dependencies
--> Running transaction check
---> Package varnish.x86_64 0:3.0.5-1.el5.centos set to be updated
--> Processing Dependency: varnish-libs = 3.0.5-1.el5.centos for package: varnish
--> Processing Dependency: libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit) for package: varnish
--> Processing Dependency: libvarnishapi.so.1()(64bit) for package: varnish
--> Processing Dependency: libedit.so.0()(64bit) for package: varnish
--> Running transaction check
---> Package varnish.x86_64 0:3.0.5-1.el5.centos set to be updated
--> Processing Dependency: libedit.so.0()(64bit) for package: varnish
---> Package varnish-libs.x86_64 0:3.0.5-1.el5.centos set to be updated
--> Finished Dependency Resolution
varnish-3.0.5-1.el5.centos.x86_64 from varnish-3.0 has depsolving problems
--> Missing Dependency: libedit.so.0()(64bit) is needed by package varnish-3.0.5-1.el5.centos.x86_64 (varnish-3.0)
Error: Missing Dependency: libedit.so.0()(64bit) is needed by package varnish-3.0.5-1.el5.centos.x86_64 (varnish-3.0)
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
修复处理方法如下,配置epel仓库即可
如果你的系统是centos5/redhat5的i386架构
# rpm -Uvh
如果是x86_64架构
# rpm -Uvh
同理,假如是centos6/redhat6的i386架构
# rpm -Uvh
如果是x86_64架构
# rpm -Uvh
安装完之后,再执行
# yum install varnish
配置varnish启动
# /etc/init.d/varnish start
# chkconfig --level 345 varnish on
Varnish配置
/etc/varnish/ 存放varnish VCL配置文件
/etc/sysconfig/varnish 【CentOS】 存放varnish服务器运行的参数
/usr/sbin/varnishd varnish服务器执行文件
/etc/init.d/varnish 运行程序
参考: