Responsive image

Upgrade nghttp2 for brew with a fix for older MacOS versions

Update:
Script that automates the install / upgrade to the latest version of nghttp2:
https://gist.github.com/noplanman/eb360d6e82ec0d58a9da884bd4b279d1

  • 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/shrpx_client_handler.cc
  • 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:


0 Comments

No Comment


Lets Comments

Noted: Your must login for comment. Login OR Register


Popular Post