Unable to find the varnish modules version suitable for varnish cache version varnish-5.1.3
Closed this issue · 10 comments
I am unable to find the specific version of varnish modules for the varnish version varnish-5.1.3.
Here I could find the modules only after varnish 6.0.
As per documentation, I am trying to find one for varnish-5.1.3 here https://download.varnish-software.com/varnish-modules/ but seems it's not available.
Please guide me on how we can install VMOD in RHEL system for the varnish cache version varnish-5.1.3
Hi,
You can use the 0.15.0 release for 5.1, but I would greatly encourage you to upgrade since 5.1 isn't supported anymore.
Kind regards,
Hi @gquintard ,
I tried to install the version 0.15.0 in RHEL using below installation procedure but it's not works.
- wget https://download.varnish-software.com/varnish-modules/varnish-modules-0.15.0.tar.gz
- tar -zxvf varnish-modules-0.15.0.tar.gz
- cd varnish-modules-0.15.0
- ./configure
After 4th step I see the below issue
_**checking for VARNISHAPI... no
configure: error: Package requirements (varnishapi) were not met:
No package 'varnishapi' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables VARNISHAPI_CFLAGS
and VARNISHAPI_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.**_
varnish_error.txt
Did you install the varnish-devel
package? It might be called varnish-libs-devel
, I don't remember when we renamed it (if that's even one of our packages).
@dridi ,
Thank you so much for your response. Seems we haven't install varnish-devel.
When I tried to install the same. I am getting below error
[root@XXXXXXXXX varnish-modules-0.15.0]# yum install varnish-libs-devel
Loaded plugins: enabled_repos_upload, getpagespeed, package_upload, product-id, search-disabled-repos, subscription-
: manager, versionlock
rhel-7-server-extras-rpms | 2.0 kB 00:00:00
rhel-7-server-optional-rpms | 2.0 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
rhel-server-rhscl-7-rpms | 2.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package varnish-devel.x86_64 0:5.2.1-1.el7 will be installed
--> Processing Dependency: varnish = 5.2.1-1.el7 for package: varnish-devel-5.2.1-1.el7.x86_64
--> Running transaction check
---> Package varnish.x86_64 0:5.1.3-1.el7 will be updated
--> Processing Dependency: libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit) for package: collectd-varnish-5.7.2.108.ge1dc0e7-3.el7.centos.x86_64
---> Package varnish.x86_64 0:5.2.1-1.el7 will be an update
--> Finished Dependency Resolution
Error: Package: collectd-varnish-5.7.2.108.ge1dc0e7-3.el7.centos.x86_64 (@Collectd)
Requires: libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Removing: varnish-5.1.3-1.el7.x86_64 (@varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Updated By: varnish-5.2.1-1.el7.x86_64 (varnishcache_varnish)
~libvarnishapi.so.1(LIBVARNISHAPI_2.0)(64bit)
Available: varnish-5.0.0-1beta1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.0.0-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.1.1-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.1.2-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.2.0-1.el7.x86_64 (varnishcache_varnish)
~libvarnishapi.so.1(LIBVARNISHAPI_2.0)(64bit)
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************
Error: Package: collectd-varnish-5.7.2.108.ge1dc0e7-3.el7.centos.x86_64 (@Collectd)
Requires: libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Removing: varnish-5.1.3-1.el7.x86_64 (@varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Updated By: varnish-5.2.1-1.el7.x86_64 (varnishcache_varnish)
~libvarnishapi.so.1(LIBVARNISHAPI_2.0)(64bit)
Available: varnish-5.0.0-1beta1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.0.0-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.1.1-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.1.2-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.2.0-1.el7.x86_64 (varnishcache_varnish)
~libvarnishapi.so.1(LIBVARNISHAPI_2.0)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager, versionlock
Our current varnish version :
[root@XXXXXXXXXXX varnish-modules-0.15.0]# varnishd -V
varnishd (varnish-5.1.3 revision 05c5ac6b9)
Copyright (c) 2006 Verdens Gang AS
Copyright (c) 2006-2015 Varnish Software AS
It's trying to install development files for Varnish 5.2.1, how did you install Varnish on this system?
@dridi ,
We have installed varnish using ansible by configuring yum repo https://packagecloud.io/varnishcache/varnish5/el/7/$basearch
---
- name: ensure Varnish 5 repository is present
yum_repository:
name: "varnishcache_varnish"
description: "Varnish 5 repository"
file: "varnishcache_varnish"
baseurl: "https://packagecloud.io/varnishcache/varnish5/el/7/$basearch"
gpgcheck: no
enabled: yes
gpgkey: "https://packagecloud.io/varnishcache/varnish5/gpgkey"
sslverify: yes
sslcacert: /etc/pki/tls/certs/ca-bundle.crt
- name: install Common Libraries from CentOS mirror
yum:
state: present
name:
- autoconf
- automake
- rh-varnish4-jemalloc-devel
- rh-varnish4-jemalloc
- libedit-devel
- libtool
- ncurses-devel
- pcre-devel
- pkgconfig
- python-docutils
- python-sphinx
- graphviz
---
- name: install varnish
package:
name: varnish-{{ varnish.version.current }}
update_cache: yes
state: present
Try installing varnish-devel
instead of varnish-libs-devel
.
Thank you for your swift response
I already tried to install but got the same issue
[root@XXXXXXXX yum.repos.d]# yum install varnish-devel
Loaded plugins: enabled_repos_upload, getpagespeed, package_upload, product-id, search-disabled-repos, subscription-
: manager, versionlock
rhel-7-server-extras-rpms | 2.0 kB 00:00:00
rhel-7-server-optional-rpms | 2.0 kB 00:00:00
rhel-7-server-rpms | 2.0 kB 00:00:00
rhel-server-rhscl-7-rpms | 2.0 kB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package varnish-devel.x86_64 0:5.2.1-1.el7 will be installed
--> Processing Dependency: varnish = 5.2.1-1.el7 for package: varnish-devel-5.2.1-1.el7.x86_64
--> Running transaction check
---> Package varnish.x86_64 0:5.1.3-1.el7 will be updated
--> Processing Dependency: libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit) for package: collectd-varnish-5.7.2.108.ge1dc0e7-3.el7.centos.x86_64
---> Package varnish.x86_64 0:5.2.1-1.el7 will be an update
--> Finished Dependency Resolution
Error: Package: collectd-varnish-5.7.2.108.ge1dc0e7-3.el7.centos.x86_64 (@Collectd)
Requires: libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Removing: varnish-5.1.3-1.el7.x86_64 (@varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Updated By: varnish-5.2.1-1.el7.x86_64 (varnishcache_varnish)
~libvarnishapi.so.1(LIBVARNISHAPI_2.0)(64bit)
Available: varnish-5.0.0-1beta1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.0.0-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.1.1-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.1.2-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.2.0-1.el7.x86_64 (varnishcache_varnish)
~libvarnishapi.so.1(LIBVARNISHAPI_2.0)(64bit)
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************
Error: Package: collectd-varnish-5.7.2.108.ge1dc0e7-3.el7.centos.x86_64 (@Collectd)
Requires: libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Removing: varnish-5.1.3-1.el7.x86_64 (@varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Updated By: varnish-5.2.1-1.el7.x86_64 (varnishcache_varnish)
~libvarnishapi.so.1(LIBVARNISHAPI_2.0)(64bit)
Available: varnish-5.0.0-1beta1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.0.0-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.1.1-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.1.2-1.el7.x86_64 (varnishcache_varnish)
libvarnishapi.so.1(LIBVARNISHAPI_1.0)(64bit)
Available: varnish-5.2.0-1.el7.x86_64 (varnishcache_varnish)
~libvarnishapi.so.1(LIBVARNISHAPI_2.0)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Uploading Enabled Repositories Report
Loaded plugins: product-id, subscription-manager, versionlock
Try installing varnish-devel-5.3.1
instead. Specifying an explicit version should prevent the upgrade attempt.
Thank you so much. It works well!
And able to install VMOD on top varnish now
Regards,
Pandithdurai