Closed flexwang2 closed 1 year ago
Warning: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew. Some of Homebrew's bottles (binary packages) can only be used with the default prefix (/home/linuxbrew/.linuxbrew). You will encounter build failures with some formulae. Please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. You are responsible for resolving any issues you experience while you are running this unsupported configuration.
i have the same problem My computer configuration is exactly the same
$ brew install --build-from-source ncurses ==> Downloading https://ftp.gnu.org/gnu/ncurses/ncurses-6.3.tar.gz Already downloaded: /home/wxy/.cache/Homebrew/downloads/6ead41de35c5a527bcc6c589b716a81d7741bb348d72e942ee7b640f960dbb4c--ncurses-6.3.tar.gz /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/language/python.rb:10: warning: Insecure world writable dir /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/shims/shared in PATH, mode 040777 ==> ./configure --prefix=/home/linuxbrew/.linuxbrew/Homebrew/Cellar/ncurses/6.3 --enable-pc-files --with-pkg-config-libdir=/home/linuxbrew/.linuxbrew/Homebrew/Cellar/ncurses/6.3/lib/pkgconfig --enable-sigwinch --enable-symlinks --enable-wide Last 15 lines from /home/wxy/.cache/Homebrew/Logs/ncurses/01.configure: --with-terminfo-dirs=/home/linuxbrew/.linuxbrew/Homebrew/Cellar/ncurses/6.3/share/terminfo:/etc/terminfo:/lib/terminfo:/usr/share/terminfo
checking for ggrep... no checking for grep... grep checking for egrep... grep -E Configuring NCURSES 6.3 ABI 6 (Sun Sep 18 04:47:10 UTC 2022) checking for package version... 6.3 checking for package patch date... 20211021 checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu Configuring for linux-gnu checking for fgrep... grep -F checking for prefix... /home/linuxbrew/.linuxbrew/Homebrew/Cellar/ncurses/6.3 checking for C compiler default output... configure: error: C compiler cannot create executables
Warning: Your Homebrew's prefix is not /home/linuxbrew/.linuxbrew. Some of Homebrew's bottles (binary packages) can only be used with the default prefix (/home/linuxbrew/.linuxbrew). You will encounter build failures with some formulae. Please create pull requests instead of asking for help on Homebrew's GitHub, Twitter or any other official channels. You are responsible for resolving any issues you experience while you are running this unsupported configuration.
This is a regression rather than an old issue, as everything used to work just fine, suddenly breaking many people's setups. Being passive aggressive doesn't help.
That reply isn't being passive aggressive: we just don't provide support for using Homebrew outside the default prefix. Doing this requires building from source, which can break for a plethora of reasons, and we don't have the resources to address these.
We'll review pull requests to fix this, but won't keep issues open for it.
That said, doing
brew install binutils
will likely help.
This is a regression rather than an old issue, as everything used to work just fine, suddenly breaking many people's setups. Being passive aggressive doesn't help.
I quoted this because the literal message you have pasted here tells you to not open issues.
brew config
outputbrew doctor
outputVerification
brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
brew install hello
What happened (include all command output)?
The config log
What did you expect to happen?
The installation succeed
Step-by-step reproduction instructions (by running
brew
commands)