Responsive image

Upgrade nghttp2 for brew with a fix for older MacOS versions

Script that automates the install / upgrade to the latest version of nghttp2:

  • Download the package: brew fetch nghttp2
  • Change into the Homebrew cache folder: cd $HOME/Library/Caches/Homebrew
  • Extract the archive: tar xJf nghttp2--1.38.0.tar.xz
  • Apply the code changes from #1319: sed -ibkp 's/return dconn;/return std::move(dconn);/g' nghttp2-1.38.0/src/
  • Compress the files to an archive and replace the original one: tar cJf nghttp2--1.38.0.tar.xz nghttp2-1.38.0
  • Get the checksum of the new archive: sha256sum nghttp2--1.38.0.tar.xz | awk '{print $1}'
  • Enter the new checksum in /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/nghttp2.rb
  • Attempt upgrade again


Share Button:


No Comment

Lets Comments

Noted: Your must login for comment. Login OR Register

Popular Post