scanner: Broken pipe error while installing on Mac OS
I’m trying to install scanner on OS X High Sierra (10.13.6) using Homebrew. However, during the installation I get this error:
[ 78%] Built target engine
make: *** [all] Error 2
/usr/local/Homebrew/Library/Homebrew/utils/fork.rb:49:in `write': Broken pipe (Errno::EPIPE)
from /usr/local/Homebrew/Library/Homebrew/utils/fork.rb:49:in `puts'
from /usr/local/Homebrew/Library/Homebrew/utils/fork.rb:49:in `rescue in block (3 levels) in safe_fork'
from /usr/local/Homebrew/Library/Homebrew/utils/fork.rb:31:in `block (3 levels) in safe_fork'
from /usr/local/Homebrew/Library/Homebrew/utils/fork.rb:30:in `fork'
from /usr/local/Homebrew/Library/Homebrew/utils/fork.rb:30:in `block (2 levels) in safe_fork'
from /usr/local/Homebrew/Library/Homebrew/utils/fork.rb:27:in `open'
from /usr/local/Homebrew/Library/Homebrew/utils/fork.rb:27:in `block in safe_fork'
from /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/tmpdir.rb:89:in `mktmpdir'
from /usr/local/Homebrew/Library/Homebrew/utils/fork.rb:26:in `safe_fork'
from /usr/local/Homebrew/Library/Homebrew/formula_installer.rb:719:in `build'
from /usr/local/Homebrew/Library/Homebrew/formula_installer.rb:311:in `install'
from /usr/local/Homebrew/Library/Homebrew/cmd/install.rb:321:in `install_formula'
from /usr/local/Homebrew/Library/Homebrew/cmd/install.rb:253:in `block in install'
from /usr/local/Homebrew/Library/Homebrew/cmd/install.rb:251:in `each'
from /usr/local/Homebrew/Library/Homebrew/cmd/install.rb:251:in `install'
from /usr/local/Homebrew/Library/Homebrew/brew.rb:89:in `<main>'
What can be the cause of this error? Anyone experiences something similar? Thanks.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 27 (12 by maintainers)
https://github.com/Homebrew/brew/pull/4853 should fix this. The underlying issue was that fetch/build errors were being masked.
@claui Ok, I think I figured out the issue. The problem is that brew does not let you touch system installed python packages via pip inside the build script. This means that if Scanner needs a different version of protobuf than what is installed, then it will fail. I’ve changed the script to not install the python dependencies and instead inform the user to run:
Try that out and let me know if it works! I suggest first running: