Skip to content

brew installation on WSL is confusing, doesn't install without gcc present #260

Description

@CodingDoug
$ brew install turso
==> Fetching chiselstrike/tap/turso
==> Downloading https://github.com/chiselstrike/homebrew-tap/releases/download/v0.39.0/homebrew-tap_Linux_x86_64.tar.gz
Already downloaded: /home/doug/.cache/Homebrew/downloads/28de2b726b0d076addf705e5b834fb77b8ecb9d0d0729eada9b157aa703a7a43--homebrew-tap_Linux_x86_64.tar.gz
==> Installing turso from chiselstrike/tap
Error: The following formula cannot be installed from bottle and must be
built from source.
  turso
Install Clang or run `brew install gcc`.
$ brew install gcc
==> Fetching gcc
==> Downloading https://ghcr.io/v2/homebrew/core/gcc/manifests/12.2.0-2
Already downloaded: /home/doug/.cache/Homebrew/downloads/a4a4a48db6f1c5ebc47c0929825c735a0c4837922713f6773cb4fbec928e5a8f--gcc-12.2.0-2.bottle_manifest.json
==> Downloading https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:d2080ede63b45e711bbb05c474af6affe3edc255fecf81009a85e2
Already downloaded: /home/doug/.cache/Homebrew/downloads/ab6926110713961da39411864073329dbfc562bde4cdad0f4f3f17fe1b4640cd--gcc--12.2.0.x86_64_linux.bottle.2.tar.gz
==> Pouring gcc--12.2.0.x86_64_linux.bottle.2.tar.gz
Warning: The post-install step did not complete successfully
You can try again using:
  brew postinstall gcc
==> Summary
🍺  /home/linuxbrew/.linuxbrew/Cellar/gcc/12.2.0: 1,623 files, 306.6MB
==> Running `brew cleanup gcc`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).

I could only get this to work by first doing sudo apt get gcc. Apparently the turso formulae requires a gcc to be in the path, but that doesn't make sense because there's no source. Is there something we can do to our homebrew formulae that makes it clear there isn't source that needs to be compiled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions