tfutils / tfenv

Terraform version manager
MIT License
4.54k stars 455 forks source link

Unable to install tfenv 2.2.1 via homebrew on linux #266

Closed larsLarski closed 2 years ago

larsLarski commented 3 years ago

Attempting to install tfenv in github actions or ubuntu docker image result in the following error:

root@06ece49cba62:/foo# brew install tfenv
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:97e639a64dcec285392b53ad804b5334c324f1d2a8bdc2b5087b8bf8051e332f
########################################################################################################################################################################### 100.0%
==> Pouring portable-ruby-2.6.3_2.x86_64_linux.bottle.tar.gz
==> Homebrew has enabled anonymous aggregate formula and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics have been recorded yet (nor will be during this `brew` run).

Updating Homebrew...
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Tapping homebrew/core
Cloning into '/root/.linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 1185624, done.
remote: Counting objects: 100% (7353/7353), done.
remote: Compressing objects: 100% (2692/2692), done.
remote: Total 1185624 (delta 4903), reused 6964 (delta 4661), pack-reused 1178271
Receiving objects: 100% (1185624/1185624), 411.57 MiB | 8.68 MiB/s, done.
Resolving deltas: 100% (838057/838057), done.
Tapped 2 commands and 5607 formulae (5,921 files, 455.2MB).
==> Downloading https://ghcr.io/v2/linuxbrew/core/xz/manifests/5.2.5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/xz/blobs/sha256:676b0e178b3e7644f86385cb2497ac5ec490e2222ba3d0147e28bd85aff365cf
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:676b0e178b3e7644f86385cb2497ac5ec490e2222ba3d0147e28bd85aff365cf?se=2021-05-04T19%3A30%3A0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/m4/manifests/1.4.18-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/m4/blobs/sha256:1552dd0379252680e0c32085df6b6ab59aa32f45be389ff18620a073a8f3c78c
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:1552dd0379252680e0c32085df6b6ab59aa32f45be389ff18620a073a8f3c78c?se=2021-05-04T19%3A30%3A0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/gmp/manifests/6.2.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/gmp/blobs/sha256:47ec066627ce0564e7c6b5da2a3311cdcbf09762dce6bad3f0cad46c1377aabc
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:47ec066627ce0564e7c6b5da2a3311cdcbf09762dce6bad3f0cad46c1377aabc?se=2021-05-04T19%3A30%3A0
######################################################################## 100.0%
Warning: isl@0.18 has been deprecated because it is a versioned formula!
==> Downloading https://ghcr.io/v2/linuxbrew/core/isl/0.18/manifests/0.18
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/isl/0.18/blobs/sha256:3ef95686496676a3c73c57db6eee32a9f039e9c2b7ccf173c3b1941124ef6f78
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:3ef95686496676a3c73c57db6eee32a9f039e9c2b7ccf173c3b1941124ef6f78?se=2021-05-04T19%3A30%3A0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/mpfr/manifests/4.1.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/mpfr/blobs/sha256:5fa04c762dd682c46b3c15d2c28e89a36353717c533e7aaa12298b5202aeeba8
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:5fa04c762dd682c46b3c15d2c28e89a36353717c533e7aaa12298b5202aeeba8?se=2021-05-04T19%3A30%3A0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/libmpc/manifests/1.2.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/libmpc/blobs/sha256:c12f0406fb375c08d4c9f699ec2d28099088bb999fe9cceefe9145c001f24f89
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:c12f0406fb375c08d4c9f699ec2d28099088bb999fe9cceefe9145c001f24f89?se=2021-05-04T19%3A30%3A0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/zlib/manifests/1.2.11
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/zlib/blobs/sha256:6f604280b9e056da163b81cef3076b2e39bbd2b8d3cc8c36d27c19c472c760a4
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:6f604280b9e056da163b81cef3076b2e39bbd2b8d3cc8c36d27c19c472c760a4?se=2021-05-04T19%3A30%3A0
######################################################################## 100.0%
Warning: Building binutils from source as the bottle needs:
- HOMEBREW_CELLAR: /home/linuxbrew/.linuxbrew/Cellar (yours is /root/.linuxbrew/Cellar)
- HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew (yours is /root/.linuxbrew)
==> Downloading https://ftp.gnu.org/gnu/binutils/binutils-2.36.1.tar.xz
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/gcc/5/manifests/5.5.0_6
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/gcc/5/blobs/sha256:42f8f7e567c1baababdb35095b536610503d39511916f8854e70188e842b664b
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:42f8f7e567c1baababdb35095b536610503d39511916f8854e70188e842b664b?se=2021-05-04T19%3A30%3A0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/bzip2/manifests/1.0.8-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/bzip2/blobs/sha256:2a4cbb681a3aeda2361625bd10d329e47bf986feaccd50bf3a1dce7753ad42d6
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:2a4cbb681a3aeda2361625bd10d329e47bf986feaccd50bf3a1dce7753ad42d6?se=2021-05-04T19%3A30%3A0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/unzip/manifests/6.0_7
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/linuxbrew/core/unzip/blobs/sha256:7f64b1d75f83c936125e0ae873668c992ca1f2041480f899b178959da4cafa1b
==> Downloading from https://pkg-containers-az.githubusercontent.com/ghcr1/blobs/sha256:7f64b1d75f83c936125e0ae873668c992ca1f2041480f899b178959da4cafa1b?se=2021-05-04T19%3A30%3A0
######################################################################## 100.0%
==> Downloading https://github.com/tfutils/tfenv/archive/v2.2.1.tar.gz
==> Downloading from https://codeload.github.com/tfutils/tfenv/tar.gz/v2.2.1
######################################################################## 100.0%
Error: The following formula cannot be installed from bottle and must be
built from source.
  tfenv
Install Clang or run `brew install gcc`.

Thank you!

wpr101 commented 3 years ago

I'm experiencing something similar with getting:

Error: tfenv: no bottle available

I tried installing from a previous commit and got the message: Installation of tfenv from a GitHub commit URL is unsupported

Will the 2.2.2 release fix this issue and when is that scheduled to deploy? Any ideas on quick fix?

Thank you.

antonmos commented 3 years ago

workaround is brew install tfenv --build-from-source (on ubuntu, that requires apt-get install llvm clang to get clang).

tb102122 commented 3 years ago

Facing the same issue. Is there any timeline when the patch will be released?

Zordrak commented 2 years ago

This looks like a homebrew problem. Homebrew packaging is done by an unrelated 3rd party.