homebrew-fb
homebrew-fb copied to clipboard
Error installing buck-2021.01.12.01.yosemite.bottle.tar.gz
The bottled buck 2021.01.12.01 seems to be broken:
$ brew install buck
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from 99991bbc6 to d8a659f5d.
No changes to formulae.
==> Downloading https://github.com/facebook/buck/releases/download/v2021.01.12.01/buck-2021.01.12.01.yosemite.
Already downloaded: /Users/raman/Library/Caches/Homebrew/downloads/2ab45ceec4daf7c5124e199210a577ad8db53a56c80456dd5f9847b020baa0ae--buck-2021.01.12.01.yosemite.bottle.tar.gz
==> Installing buck from facebook/fb
==> Pouring buck-2021.01.12.01.yosemite.bottle.tar.gz
Error: /usr/local/Cellar/buck/2021.01.12.01 is not a directory
Somehow the archive gets unpacked into a different directory:
$ ls -laF /usr/local/Cellar/buck/
total 0
drwxr-xr-x 3 raman wheel 96 Sep 20 21:53 ./
drwxrwxr-x 195 raman admin 6240 Sep 20 21:53 ../
drwxr-xr-x 7 raman wheel 224 Jan 12 2021 2021.01.12.01_1/
$ ls -laF /usr/local/Cellar/buck/2021.01.12.01_1
total 40
drwxr-xr-x 7 raman wheel 224 Jan 12 2021 ./
drwxr-xr-x 3 raman wheel 96 Sep 20 21:53 ../
drwxr-xr-x 3 raman wheel 96 Jan 12 2021 .brew/
-rw-r--r-- 1 raman wheel 710 Jan 12 2021 INSTALL_RECEIPT.json
-rw-r--r-- 1 raman wheel 11358 Jan 12 2021 LICENSE
-rw-r--r-- 1 raman wheel 3134 Jan 12 2021 README.md
drwxr-xr-x 3 raman wheel 96 Jan 12 2021 bin/
This can be worked around this way:
$ mv /usr/local/Cellar/buck/2021.01.12.01_1 /usr/local/Cellar/buck/2021.01.12.01
$ buck version
zsh: command not found: buck
$ brew link buck
Linking /usr/local/Cellar/buck/2021.01.12.01... 1 symlinks created.
$ buck
This does not appear to be the root of a Buck project. Please 'cd'
to the root of your project before running buck. If this really is
the root of your project, run
'touch .buckconfig'
and then re-run your buck command.
Homebrew config
$ brew config
HOMEBREW_VERSION: 3.2.13-34-gf9cedd1
ORIGIN: https://github.com/Homebrew/brew
HEAD: f9cedd1fa46c2ebaf069ed461a364668dcdf6f19
Last commit: 6 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 959804e7cbda1156480238a88ade07c7b3ceb559
Core tap last commit: 23 minutes ago
Core tap branch: master
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CASK_OPTS: []
HOMEBREW_EDITOR: /Users/raman/.oh-my-zsh/plugins/emacs/emacsclient.sh
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 2.6.3 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby
CPU: octa-core 64-bit kabylake
Clang: 12.0.5 build 1205
Git: 2.33.0 => /usr/local/bin/git
Curl: 7.64.1 => /usr/bin/curl
macOS: 11.6-x86_64
CLT: 12.5.0.22.9
Xcode: 12.5.1
Do you have an idea why it goes this way?
Thanks for your time.
I encountered this as well.
Then I did
ls -l /usr/local/Cellar/buck/
drwxr-xr-x 6 denis admin 192 Feb 21 2017 2016.11.11.01
drwxr-xr-x 7 denis admin 224 May 17 2018 2018.03.26.01
drwxr-xr-x 7 denis admin 224 Jan 12 2021 2021.01.12.01_1
Note that there's a directory named 2021.01.12.01_1
, not 2021.01.12.01
. I simply renamed it:
mv /usr/local/Cellar/buck/2021.01.12.01_1 /usr/local/Cellar/buck/2021.01.12.01
and all was well. Not sure how that happened though.
I encountered this as well.
Then I did
ls -l /usr/local/Cellar/buck/ drwxr-xr-x 6 denis admin 192 Feb 21 2017 2016.11.11.01 drwxr-xr-x 7 denis admin 224 May 17 2018 2018.03.26.01 drwxr-xr-x 7 denis admin 224 Jan 12 2021 2021.01.12.01_1
Note that there's a directory named
2021.01.12.01_1
, not2021.01.12.01
. I simply renamed it:mv /usr/local/Cellar/buck/2021.01.12.01_1 /usr/local/Cellar/buck/2021.01.12.01
and all was well. Not sure how that happened though.
It works for me.