From 39c572b5467bf09b6bc934def54c10d32cd161f8 Mon Sep 17 00:00:00 2001 From: rmnull Date: Thu, 28 May 2020 00:34:02 +0530 Subject: [PATCH] Instructions to install patchelf, when development tools cant locate patchelf. --- Library/Homebrew/extend/os/linux/keg_relocate.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/extend/os/linux/keg_relocate.rb b/Library/Homebrew/extend/os/linux/keg_relocate.rb index 0ec90cac9a..5371e2ab1e 100644 --- a/Library/Homebrew/extend/os/linux/keg_relocate.rb +++ b/Library/Homebrew/extend/os/linux/keg_relocate.rb @@ -19,6 +19,8 @@ class Keg return if !file.elf? || !file.dynamic_elf? patchelf = DevelopmentTools.locate "patchelf" + odie "Could not locate patchelf, please: brew install patchelf." if patchelf.nil? + cmd_rpath = [patchelf, "--print-rpath", file] old_rpath = Utils.popen_read(*cmd_rpath, err: :out).strip