DEV Community

Asrar
Asrar

Posted on

Mac OS X brew install varnish specific version

In Mac OS X High Sierra or later version, let's say you upgraded Varnish HTTP Accelerator from 4.x.x/5.x.x to any latest versions 6.x.x using brew. And now for any reasons you want to go back to previous version i.e. 5.2.0 altogether? Good news folks!
You can do that by copying over the actual brew formulae on your local and defining the version you want in the rb file.
In the following example, I want to revert to version 5.2.0 from 6.2.0.

Let's copy over the file from https://github.com/Homebrew/homebrew-core/blob/master/Formula/varnish.rb to your local. Then edit the varnish.rb file, remove/comment out the following lines:

sha256 "c37af353aca25a83d22f9c5ce0ae800fe433e4d02e1457e02886a5849f988e53"

bottle do

    sha256 "7101ff2895f77803ea1e1ca6c8ebc1feef2c07b77fbf612f6dcf6983bf4ffc27" => :mojave

    sha256 "d1fd8751be2ddccb463b385377b88cc440632eb1a07c0175fab9ee77c57f986d" => :high_sierra

    sha256 "e124ad1c5638c7304743b5f3dbec996afa33c972dbe991ec35280c4d7787b3a4" => :sierra

end

Replace this line:

url "https://varnish-cache.org/_downloads/varnish-6.2.0.tgz"

with

url "https://varnish-cache.org/_downloads/varnish-5.2.0.tgz"

You can get all available versions in https://varnish-cache.org/releases/. All you need to do is to tap on the intended version and paste the download url.

Now, save this varnish.rb file and run:

chmod 775 varnish.rb
brew install ./varnish.rb

brew will execute this and install varnish 5.2.0 as expected.

That's all!

Top comments (1)

Collapse
 
bhaveshpp profile image
Bhavesh Prajapati
brew install ./varnish.rb
Error: Failed to load cask: ./varnish.rb
Cask 'varnish' is unreadable: wrong constant name #<Class:0x00007fe853bdb030>
Warning: Treating ./varnish.rb as a formula.
==> Fetching dependencies for varnish: python@3.11, docutils, fontconfig, little-cms2, jpeg-xl, aom, glib, jasper, netpbm, gts, xorgproto, libxau, libxdmcp, libxcb, libx11, libxext, libxrender, lzo, pixman, cairo, gdk-pixbuf, fribidi, graphite2, harfbuzz, pango, librsvg, graphviz, pkg-config, pygments and sphinx-doc
==> Fetching python@3.11
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.11/manifests/3.11.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/python/3.11/blobs/sha256:b668909b679a54930bd35a9a2738a27ef1d545db8a4d889b8d9a475e85519116
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:b668909b679a54930bd35a9a2738a27ef1d545db8a4d889b8d9a475e85519116?se=2023-02-01T12%3A30%3A00Z&sig=nzUJrbRsjD
######################################################################## 100.0%
==> Fetching docutils
==> Downloading https://ghcr.io/v2/homebrew/core/docutils/manifests/0.19-2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/docutils/blobs/sha256:137618cfdeedcb9cdb104c8ac7ba4e17d1f08dafc0ebabdddfe6f18dde061793
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:137618cfdeedcb9cdb104c8ac7ba4e17d1f08dafc0ebabdddfe6f18dde061793?se=2023-02-01T12%3A30%3A00Z&sig=jCjarKmv7B
######################################################################## 100.0%
==> Fetching fontconfig
==> Downloading https://ghcr.io/v2/homebrew/core/fontconfig/manifests/2.14.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/fontconfig/blobs/sha256:9678cbf8549fae9c149db90c810bb0465c4725adcae61dbf35e295f76ec306d2
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:9678cbf8549fae9c149db90c810bb0465c4725adcae61dbf35e295f76ec306d2?se=2023-02-01T12%3A30%3A00Z&sig=qz6r%2BY5E
######################################################################## 100.0%
==> Fetching little-cms2
==> Downloading https://ghcr.io/v2/homebrew/core/little-cms2/manifests/2.14
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/little-cms2/blobs/sha256:57a938e19b097c8b0b7da9e8969678ec5f76c6332ad0f5122dce4a5558a93817
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:57a938e19b097c8b0b7da9e8969678ec5f76c6332ad0f5122dce4a5558a93817?se=2023-02-01T12%3A30%3A00Z&sig=%2FWFr7K6g
######################################################################## 100.0%
==> Fetching jpeg-xl
==> Downloading https://ghcr.io/v2/homebrew/core/jpeg-xl/manifests/0.8.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/jpeg-xl/blobs/sha256:051508b719eabbeaf079ae17366442d1ff4cb93799e706b681b9cde76ccac879
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:051508b719eabbeaf079ae17366442d1ff4cb93799e706b681b9cde76ccac879?se=2023-02-01T12%3A30%3A00Z&sig=4XvyoOnn%2
######################################################################## 100.0%
==> Fetching aom
==> Downloading https://ghcr.io/v2/homebrew/core/aom/manifests/3.5.0_2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/aom/blobs/sha256:c968ba6f3d7b9010ce712348522aa1f94d9d8a9eda396bf27ffcd1bf96d97894
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:c968ba6f3d7b9010ce712348522aa1f94d9d8a9eda396bf27ffcd1bf96d97894?se=2023-02-01T12%3A30%3A00Z&sig=UxhxHfVCpD
######################################################################## 100.0%
==> Fetching glib
==> Downloading https://ghcr.io/v2/homebrew/core/glib/manifests/2.74.5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/glib/blobs/sha256:042c7d6a678ebde2d5d5915e8853e0542a41dfb38adfd728e52f4fd69e0b9169
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:042c7d6a678ebde2d5d5915e8853e0542a41dfb38adfd728e52f4fd69e0b9169?se=2023-02-01T12%3A30%3A00Z&sig=XQ%2BVUomO
######################################################################## 100.0%
==> Fetching jasper
==> Downloading https://ghcr.io/v2/homebrew/core/jasper/manifests/4.0.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/jasper/blobs/sha256:81f52cc0adf0bfaf6d5274fadcba9483ed52ae814452af22147709f111e2b4ec
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:81f52cc0adf0bfaf6d5274fadcba9483ed52ae814452af22147709f111e2b4ec?se=2023-02-01T12%3A30%3A00Z&sig=bouRz7NkhT
######################################################################## 100.0%
==> Fetching netpbm
==> Downloading https://ghcr.io/v2/homebrew/core/netpbm/manifests/10.86.37
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/netpbm/blobs/sha256:d9e210cc4ab4238aec0da59b967c9be1dc96fdafa2c82270e14b64814a7e6f7c
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d9e210cc4ab4238aec0da59b967c9be1dc96fdafa2c82270e14b64814a7e6f7c?se=2023-02-01T12%3A30%3A00Z&sig=14kr2mVTH4
######################################################################## 100.0%
==> Fetching gts
==> Downloading https://ghcr.io/v2/homebrew/core/gts/manifests/0.7.6_2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gts/blobs/sha256:7a4a3f8806004639c4006ca8b22d782cd9d9a55ee720468f7858875630882d0e
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:7a4a3f8806004639c4006ca8b22d782cd9d9a55ee720468f7858875630882d0e?se=2023-02-01T12%3A30%3A00Z&sig=RdCg1iXUhs
######################################################################## 100.0%
==> Fetching xorgproto
==> Downloading https://ghcr.io/v2/homebrew/core/xorgproto/manifests/2022.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/xorgproto/blobs/sha256:d6deb2e4712bdd55eadfdcd7156814a6c42c9d94eb5cda72b89c9e4221a8a99d
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d6deb2e4712bdd55eadfdcd7156814a6c42c9d94eb5cda72b89c9e4221a8a99d?se=2023-02-01T12%3A30%3A00Z&sig=%2BCMcKZJw
######################################################################## 100.0%
==> Fetching libxau
==> Downloading https://ghcr.io/v2/homebrew/core/libxau/manifests/1.0.11
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libxau/blobs/sha256:3b8790c3aaf98e0ce10fd088f66b2591e6b5fb8b6b95df8ec254f389e15f81cf
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:3b8790c3aaf98e0ce10fd088f66b2591e6b5fb8b6b95df8ec254f389e15f81cf?se=2023-02-01T12%3A30%3A00Z&sig=086tiVp6Rk
######################################################################## 100.0%
==> Fetching libxdmcp
==> Downloading https://ghcr.io/v2/homebrew/core/libxdmcp/manifests/1.1.4
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libxdmcp/blobs/sha256:16a26bf976f76e256466dc045e9691ef3cae5427fb7205274f17a1b37372c67b
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:16a26bf976f76e256466dc045e9691ef3cae5427fb7205274f17a1b37372c67b?se=2023-02-01T12%3A30%3A00Z&sig=%2BdQrfQs7
######################################################################## 100.0%
==> Fetching libxcb
==> Downloading https://ghcr.io/v2/homebrew/core/libxcb/manifests/1.15-2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libxcb/blobs/sha256:1f471c5dbe29f01607bf6ea8002ffd3aa4f8c4cba499b922a0f4934cbec1e8f5
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:1f471c5dbe29f01607bf6ea8002ffd3aa4f8c4cba499b922a0f4934cbec1e8f5?se=2023-02-01T12%3A30%3A00Z&sig=9e2pAErwPt
######################################################################## 100.0%
==> Fetching libx11
==> Downloading https://ghcr.io/v2/homebrew/core/libx11/manifests/1.8.3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libx11/blobs/sha256:4077385db58902e2ca2adfa41c461ffaf352a38dbd10b3765b82b4d9d7f913dc
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:4077385db58902e2ca2adfa41c461ffaf352a38dbd10b3765b82b4d9d7f913dc?se=2023-02-01T12%3A30%3A00Z&sig=B7wUeWxqY7
######################################################################## 100.0%
==> Fetching libxext
==> Downloading https://ghcr.io/v2/homebrew/core/libxext/manifests/1.3.5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libxext/blobs/sha256:9682e4720a940f352af2cea9e4633cdf14947e23b640bac524e1b3674b9493a9
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:9682e4720a940f352af2cea9e4633cdf14947e23b640bac524e1b3674b9493a9?se=2023-02-01T12%3A30%3A00Z&sig=C21paeww6C
######################################################################## 100.0%
==> Fetching libxrender
==> Downloading https://ghcr.io/v2/homebrew/core/libxrender/manifests/0.9.11
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/libxrender/blobs/sha256:ab54f6ca9a3dc9c86a16813ebc86456a012dace089f51b2c8d16aea72cd78ec5
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ab54f6ca9a3dc9c86a16813ebc86456a012dace089f51b2c8d16aea72cd78ec5?se=2023-02-01T12%3A30%3A00Z&sig=9n%2FAUq1D
######################################################################## 100.0%
==> Fetching lzo
==> Downloading https://ghcr.io/v2/homebrew/core/lzo/manifests/2.10
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/lzo/blobs/sha256:0a20a578e6a31ebbe3c5d708af38b1c3ca5ba503612ed28a197cd326505d31dd
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:0a20a578e6a31ebbe3c5d708af38b1c3ca5ba503612ed28a197cd326505d31dd?se=2023-02-01T12%3A30%3A00Z&sig=5tYJEaPf7X
######################################################################## 100.0%
==> Fetching pixman
==> Downloading https://ghcr.io/v2/homebrew/core/pixman/manifests/0.42.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pixman/blobs/sha256:f7c0d1f71dd2dae2ab48c6d50ca713f3b7a41d74289b41bc4935909e7e533c2c
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f7c0d1f71dd2dae2ab48c6d50ca713f3b7a41d74289b41bc4935909e7e533c2c?se=2023-02-01T12%3A30%3A00Z&sig=pzAR1%2BzN
######################################################################## 100.0%
==> Fetching cairo
==> Downloading https://ghcr.io/v2/homebrew/core/cairo/manifests/1.16.0_5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/cairo/blobs/sha256:ccf4f80f5115aad260e4d3f014dc0aebdd616dfac88f567d211bd8681d60c3a9
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ccf4f80f5115aad260e4d3f014dc0aebdd616dfac88f567d211bd8681d60c3a9?se=2023-02-01T12%3A30%3A00Z&sig=lOMxU9dYQg
######################################################################## 100.0%
==> Fetching gdk-pixbuf
==> Downloading https://ghcr.io/v2/homebrew/core/gdk-pixbuf/manifests/2.42.10-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/gdk-pixbuf/blobs/sha256:555cb431231ed77067e66782bfb00623fdbd1cb17350800f2e0cf8aa8ae6fb33
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:555cb431231ed77067e66782bfb00623fdbd1cb17350800f2e0cf8aa8ae6fb33?se=2023-02-01T12%3A30%3A00Z&sig=7z851U4%2B
######################################################################## 100.0%
==> Fetching fribidi
==> Downloading https://ghcr.io/v2/homebrew/core/fribidi/manifests/1.0.12
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/fribidi/blobs/sha256:9bf3206533100a9a3a1628d62c29845698e346fd582a44778cb90f9c784c0ea4
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:9bf3206533100a9a3a1628d62c29845698e346fd582a44778cb90f9c784c0ea4?se=2023-02-01T12%3A30%3A00Z&sig=oWF5U2%2FA
######################################################################## 100.0%
==> Fetching graphite2
==> Downloading https://ghcr.io/v2/homebrew/core/graphite2/manifests/1.3.14
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/graphite2/blobs/sha256:3469eaae77f6c9cb802730d060f26fd0bd56d390674490dc8b17c4624705df0e
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:3469eaae77f6c9cb802730d060f26fd0bd56d390674490dc8b17c4624705df0e?se=2023-02-01T12%3A30%3A00Z&sig=u1YlX%2FTx
######################################################################## 100.0%
==> Fetching harfbuzz
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/manifests/6.0.0_1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/harfbuzz/blobs/sha256:0459ed5214d1ec678d8e9c32d14eaeda53ca741ea71b78f49d27ffd1828f79b2
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:0459ed5214d1ec678d8e9c32d14eaeda53ca741ea71b78f49d27ffd1828f79b2?se=2023-02-01T12%3A30%3A00Z&sig=fuSDB3piTk
######################################################################## 100.0%
==> Fetching pango
==> Downloading https://ghcr.io/v2/homebrew/core/pango/manifests/1.50.12
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pango/blobs/sha256:8c06a68283a051294430d1d21b69488f5bfc9e75d4517c5edfb0cce50c85c0b3
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:8c06a68283a051294430d1d21b69488f5bfc9e75d4517c5edfb0cce50c85c0b3?se=2023-02-01T12%3A30%3A00Z&sig=WmyVA8pPkA
######################################################################## 100.0%
==> Fetching librsvg
==> Downloading https://ghcr.io/v2/homebrew/core/librsvg/manifests/2.55.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/librsvg/blobs/sha256:a60462f0695f53a813c1c1f68a38a48fcf8d55c94ee80c6992a169bf775b0d26
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a60462f0695f53a813c1c1f68a38a48fcf8d55c94ee80c6992a169bf775b0d26?se=2023-02-01T12%3A30%3A00Z&sig=12CdX57YLW
######################################################################## 100.0%
==> Fetching graphviz
==> Downloading https://ghcr.io/v2/homebrew/core/graphviz/manifests/7.1.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/graphviz/blobs/sha256:142317a4a3c9342bbb08d973ae167a5eeb3c6c73a9a8207999602477b9187ec5
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:142317a4a3c9342bbb08d973ae167a5eeb3c6c73a9a8207999602477b9187ec5?se=2023-02-01T12%3A30%3A00Z&sig=SfVgKfORZw
######################################################################## 100.0%
==> Fetching pkg-config
==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/manifests/0.29.2_3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pkg-config/blobs/sha256:a6ba80711f98b65d8a2bf2c9278540860415e9b5e545da338a4d94f39d119285
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:a6ba80711f98b65d8a2bf2c9278540860415e9b5e545da338a4d94f39d119285?se=2023-02-01T12%3A30%3A00Z&sig=eud4vTmkQ5
######################################################################## 100.0%
==> Fetching pygments
==> Downloading https://ghcr.io/v2/homebrew/core/pygments/manifests/2.14.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pygments/blobs/sha256:d4b2214521e36150b21673e1e3b3e627a22919a98274bebeaa1fb8daa0ec086d
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d4b2214521e36150b21673e1e3b3e627a22919a98274bebeaa1fb8daa0ec086d?se=2023-02-01T12%3A30%3A00Z&sig=PeNiM0nXA8
######################################################################## 100.0%
==> Fetching sphinx-doc
==> Downloading https://ghcr.io/v2/homebrew/core/sphinx-doc/manifests/6.1.3
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sphinx-doc/blobs/sha256:30a0e11dc8a8dffee879e2d2c11765fafa86218a30a54c092fa19e3b6cb94794
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:30a0e11dc8a8dffee879e2d2c11765fafa86218a30a54c092fa19e3b6cb94794?se=2023-02-01T12%3A30%3A00Z&sig=ZEyjIbRYbT
######################################################################## 100.0%
==> Fetching varnish
==> Downloading https://varnish-cache.org/_downloads/varnish-6.2.0.tgz
######################################################################## 100.0%
Warning: Cannot verify integrity of '4b9dcf81af0400107cc8f6ef72229274ff1b422bc393fcc2b955db4137029969--varnish-6.2.0.tgz'.
No checksum was provided for this resource.
For your reference, the checksum is:
  sha256 "c37af353aca25a83d22f9c5ce0ae800fe433e4d02e1457e02886a5849f988e53"
Warning: varnish 7.2.1 is available and more recent than version 6.2.0.
==> Installing dependencies for varnish: python@3.11, docutils, fontconfig, little-cms2, jpeg-xl, aom, glib, jasper, netpbm, gts, xorgproto, libxau, libxdmcp, libxcb, libx11, libxext, libxrender, lzo, pixman, cairo, gdk-pixbuf, fribidi, graphite2, harfbuzz, pango, librsvg, graphviz, pkg-config, pygments and sphinx-doc
==> Installing varnish dependency: python@3.11
==> Pouring python@3.11--3.11.1.monterey.bottle.tar.gz
==> /usr/local/Cellar/python@3.11/3.11.1/bin/python3.11 -m ensurepip
==> /usr/local/Cellar/python@3.11/3.11.1/bin/python3.11 -m pip install -v --no-deps --no-index --upgrade --isolated --target=/usr/local/lib/python3.11/site-packages /usr/local/Cellar/python@3.
🍺  /usr/local/Cellar/python@3.11/3.11.1: 3,163 files, 61.3MB
==> Installing varnish dependency: docutils
==> Pouring docutils--0.19.all.bottle.2.tar.gz
🍺  /usr/local/Cellar/docutils/0.19: 231 files, 2MB
==> Installing varnish dependency: fontconfig
==> Pouring fontconfig--2.14.2.monterey.bottle.tar.gz
==> Regenerating font cache, this may take a while
==> /usr/local/Cellar/fontconfig/2.14.2/bin/fc-cache -frv
🍺  /usr/local/Cellar/fontconfig/2.14.2: 88 files, 2.3MB
==> Installing varnish dependency: little-cms2
==> Pouring little-cms2--2.14.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/little-cms2/2.14: 21 files, 1.3MB
==> Installing varnish dependency: jpeg-xl
==> Pouring jpeg-xl--0.8.0.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/jpeg-xl/0.8.0: 41 files, 17.9MB
==> Installing varnish dependency: aom
==> Pouring aom--3.5.0_2.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/aom/3.5.0_2: 23 files, 13.7MB
==> Installing varnish dependency: glib
==> Pouring glib--2.74.5.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/glib/2.74.5: 449 files, 20.9MB
==> Installing varnish dependency: jasper
==> Pouring jasper--4.0.0.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/jasper/4.0.0: 44 files, 1.6MB
==> Installing varnish dependency: netpbm
==> Pouring netpbm--10.86.37.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/netpbm/10.86.37: 408 files, 17.5MB
==> Installing varnish dependency: gts
==> Pouring gts--0.7.6_2.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/gts/0.7.6_2: 26 files, 1.4MB
==> Installing varnish dependency: xorgproto
==> Pouring xorgproto--2022.2.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/xorgproto/2022.2: 268 files, 3.9MB
==> Installing varnish dependency: libxau
==> Pouring libxau--1.0.11.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/libxau/1.0.11: 21 files, 105.5KB
==> Installing varnish dependency: libxdmcp
==> Pouring libxdmcp--1.1.4.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/libxdmcp/1.1.4: 11 files, 113.8KB
==> Installing varnish dependency: libxcb
==> Pouring libxcb--1.15.monterey.bottle.2.tar.gz
🍺  /usr/local/Cellar/libxcb/1.15: 2,461 files, 6.9MB
==> Installing varnish dependency: libx11
==> Pouring libx11--1.8.3.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/libx11/1.8.3: 1,054 files, 7.0MB
==> Installing varnish dependency: libxext
==> Pouring libxext--1.3.5.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/libxext/1.3.5: 87 files, 426.9KB
==> Installing varnish dependency: libxrender
==> Pouring libxrender--0.9.11.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/libxrender/0.9.11: 12 files, 197.9KB
==> Installing varnish dependency: lzo
==> Pouring lzo--2.10.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/lzo/2.10: 31 files, 572.8KB
==> Installing varnish dependency: pixman
==> Pouring pixman--0.42.2.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/pixman/0.42.2: 11 files, 1.3MB
==> Installing varnish dependency: cairo
==> Pouring cairo--1.16.0_5.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/cairo/1.16.0_5: 126 files, 6.3MB
==> Installing varnish dependency: gdk-pixbuf
==> Pouring gdk-pixbuf--2.42.10.monterey.bottle.1.tar.gz
==> /usr/local/Cellar/gdk-pixbuf/2.42.10/bin/gdk-pixbuf-query-loaders --update-cache
🍺  /usr/local/Cellar/gdk-pixbuf/2.42.10: 150 files, 3.7MB
==> Installing varnish dependency: fribidi
==> Pouring fribidi--1.0.12.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/fribidi/1.0.12: 67 files, 625.7KB
==> Installing varnish dependency: graphite2
==> Pouring graphite2--1.3.14.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/graphite2/1.3.14: 18 files, 276KB
==> Installing varnish dependency: harfbuzz
==> Pouring harfbuzz--6.0.0_1.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/harfbuzz/6.0.0_1: 69 files, 8.3MB
==> Installing varnish dependency: pango
==> Pouring pango--1.50.12.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/pango/1.50.12: 68 files, 3.2MB
==> Installing varnish dependency: librsvg
==> Pouring librsvg--2.55.1.monterey.bottle.tar.gz
==> /usr/local/opt/gdk-pixbuf/bin/gdk-pixbuf-query-loaders --update-cache
🍺  /usr/local/Cellar/librsvg/2.55.1: 24 files, 56.5MB
==> Installing varnish dependency: graphviz
==> Pouring graphviz--7.1.0.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/graphviz/7.1.0: 328 files, 12.8MB
==> Installing varnish dependency: pkg-config
==> Pouring pkg-config--0.29.2_3.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/pkg-config/0.29.2_3: 11 files, 657KB
==> Installing varnish dependency: pygments
==> Pouring pygments--2.14.0.all.bottle.tar.gz
🍺  /usr/local/Cellar/pygments/2.14.0: 624 files, 8.1MB
==> Installing varnish dependency: sphinx-doc
==> Pouring sphinx-doc--6.1.3.monterey.bottle.tar.gz
🍺  /usr/local/Cellar/sphinx-doc/6.1.3: 3,641 files, 55.0MB
==> Installing varnish
==> ./configure --prefix=/usr/local/Cellar/varnish/6.2.0 --localstatedir=/usr/local/var
==> make install CFLAGS=-DVARNISH_VMOD_DIR='"/usr/local/lib/varnish/vmods"' -DVARNISH_VCL_DIR='"/usr/local/etc/varnish:/usr/local/share/varnish/vcl"'
Last 15 lines from /Users/bhavesh/Library/Logs/Homebrew/varnish/02.make:
  CC       libvarnish_a-vjsn.o
  CC       libvarnish_a-vlu.o
  CC       libvarnish_a-vmb.o
  CC       libvarnish_a-vnum.o
  CC       libvarnish_a-vpf.o
  CC       libvarnish_a-vre.o
  CC       libvarnish_a-vrnd.o
vre.c:31:10: fatal error: 'pcre.h' file not found
#include <pcre.h>
         ^~~~~~~~
1 error generated.
make[2]: *** [libvarnish_a-vre.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [install-recursive] Error 1
make: *** [install-recursive] Error 1

Do not report this issue to Homebrew/brew or Homebrew/core!

Enter fullscreen mode Exit fullscreen mode

Got error and stoped!