TypeError: no implicit conversion of false into String #4279
Unanswered
derekPrivate
asked this question in
Linux
Replies: 3 comments 2 replies
-
Can you report this at https://github.com/Homebrew/homebrew-core/issues? As a workaround for now, try export HOMEBREW_NO_INSTALL_FROM_API=1
brew tap homebrew/core
brew update
brew reinstall gcc |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for the tip
When I do that, no error are reported, BUT the homebew gcc does not seem to be installed (at least, it is not on the PATH).
Running ‘which gcc’ is /usr/bin/gcc and reports gcc version 4.8.5 20150623 (Red Hat 4.8.5-28) (GCC)
—
Derek Morris
***@***.***
… On 28 Feb 2023, at 15:55, Carlo Cabrera ***@***.***> wrote:
Can you report this at https://github.com/Homebrew/homebrew-core/issues?
As a workaround for now, try
export HOMEBREW_NO_INSTALL_FROM_API=1
brew tap homebrew/core
brew update
brew reinstall gcc
—
Reply to this email directly, view it on GitHub <#4279 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABU4OWCEUJFCU34LETW56JDWZYNWFANCNFSM6AAAAAAVK3POVE>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
-
/home/linuxbrew/.linuxbrew/bin/gcc-12
But gcc is not linked. Is that expected?
—
Derek Morris
***@***.***
… On 28 Feb 2023, at 16:48, Carlo Cabrera ***@***.***> wrote:
Try which gcc-12.
—
Reply to this email directly, view it on GitHub <#4279 (reply in thread)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABU4OWBMT4ZYGDTA2X75R6TWZYT4XANCNFSM6AAAAAAVK3POVE>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Additional Info
Output of
brew config
Output of
brew doctor
Description of issue
Trying to
brew install gcc
on Amazon Linux 1 fails. Using --verbose --debug shows
==> Postinstalling gcc
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/brew.rb (Formulary::FromPathLoader): loading /home/linuxbrew/.linuxbrew/opt/gcc/.brew/gcc.rb
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall gcc
==> An exception occurred within a child process:
TypeError: no implicit conversion of false into String
/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/popen.rb:47:in
'initialize' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/popen.rb:47:in
popen'/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/popen.rb:47:in
popen' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/popen.rb:9:in
popen_read'/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils/popen.rb:16:in
safe_popen_read' /home/linuxbrew/.linuxbrew/opt/gcc/.brew/gcc.rb:151:in
post_install'/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1160:in
block (2 levels) in run_post_install' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:968:in
with_logging'/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1159:in
block in run_post_install' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/utils.rb:606:in
with_env'/home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/formula.rb:1148:in
run_post_install' /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/postinstall.rb:24:in
How can I fix?
Beta Was this translation helpful? Give feedback.
All reactions