diff --git a/Library/Homebrew/os/linux/elf.rb b/Library/Homebrew/os/linux/elf.rb index 244a22e114..11603dee71 100644 --- a/Library/Homebrew/os/linux/elf.rb +++ b/Library/Homebrew/os/linux/elf.rb @@ -132,6 +132,8 @@ module ELFShim elsif DevelopmentTools.locate "patchelf" needed_libraries_using_patchelf path else + return [nil, []] if path.basename.to_s == "patchelf" + raise "patchelf must be installed: brew install patchelf" end end