Homebrew/linuxbrew-core

Homebrew installation failed

XiaoboLinlin opened this issue · 0 comments

brew gist-logs <formula> link OR brew config AND brew doctor output

(base) [linx6@master ~]$ brew config
bash: brew: command not found...

(base) [linx6@master ~]$ brew doctor
bash: brew: command not found...

  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.

What were you trying to do (and why)?

I was just trying to install Homebrew

What happened (include all command output)?

I typed down the link on Homebrew website /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)", but showed errors like this:

==> Summary
🍺  /raid6/homes/linx6/.linuxbrew/Cellar/util-linux/2.36.2: 395 files, 18.9MB, built in 52 seconds
==> Installing curl dependency: fontconfig
==> Patching
==> Applying 6def66164a36eed968aae872d76acfac3173d44a.patch
patching file src/fcatomic.h
==> ./configure --enable-static --with-add-fonts=/System/Library/Fonts,/Library/
==> make install RUN_FC_CACHE_TEST=false
Last 15 lines from /raid6/homes/linx6/.cache/Homebrew/Logs/fontconfig/02.make:
mv -f fcobjshash.h.tmp fcobjshash.h || ( rm -f fcobjshash.h.tmp && false )
gperf: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
WARNING: 'gperf' is missing on your system.
         You might have modified some files without having the proper
         tools for further handling them.  Check the 'README' file, it
         often tells you about the needed prerequisites for installing
         this package.  You may also peek at any GNU archive site, in
         case some other package contains this missing 'gperf' program.
make[1]: *** [fcobjshash.h] Error 1
make[1]: *** Waiting for unfinished jobs....
config.status: executing src/fcstdint.h commands
config.status: creating src/fcstdint.h : _FONTCONFIG_SRC_FCSTDINT_H
config.status: src/fcstdint.h is unchanged
make[1]: Leaving directory `/tmp/fontconfig-20210512-12798-10d54dd/fontconfig-2.13.1/src'
make: *** [install-recursive] Error 1

READ THIS: https://docs.brew.sh/Troubleshooting

Error: 'curl' must be installed and in your PATH!
Failed during: /raid6/homes/linx6/.linuxbrew/bin/brew update --force --quiet

What did you expect to happen?

I expected homebrew can be smoothly installed.

Step-by-step reproduction instructions (by running brew commands)

I just used one command line, which caused homebrew installation errors
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"