Skip to content

Linux gcc@8 gcc@9 error cannot find -lc #4802

Answered by ZhongRuoyu
andreish asked this question in Linux
Discussion options

You must be logged in to vote

The post_install method for gcc@8 was updated in Homebrew/homebrew-core@30c8466 (which I believe should fix this issue), but without the bottles being published (bottles last updated in Homebrew/homebrew-core@34199a7). Now with API installs, the outdated post_install method from the bottle was used.

Same for gcc@9 (post_install updated in Homebrew/homebrew-core@fd6177b, bottles updated in Homebrew/homebrew-core@fba5ca9).

gcc@10 worked because it was updated recently (Homebrew/homebrew-core#136039).

As a workaround, please try:

export HOMEBREW_NO_INSTALL_FROM_API=1
brew postinstall gcc@8
brew postinstall gcc@9

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andreish
Comment options

Answer selected by andreish
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Linux
Labels
None yet
2 participants