Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant install mas-cli on macOS sierra with this tap #5

Closed
dragonandy opened this issue Nov 18, 2018 · 7 comments · Fixed by #20
Closed

Cant install mas-cli on macOS sierra with this tap #5

dragonandy opened this issue Nov 18, 2018 · 7 comments · Fixed by #20
Assignees
Labels
bug Something isn't working

Comments

@dragonandy
Copy link

I cant install mas-cli with the pre built bottle by the instruction
macOS sierra can't satisfy the build requirement
but I prefer to install the prebuilt bottle rather than build it from source

$ brew tap mas-cli/tap
$ brew tap-pin mas-cli/tap
==> Pinned mas-cli/tap
$ brew install mas
Updating Homebrew...
To restore the stashed changes to /usr/local/Homebrew run:
  'cd /usr/local/Homebrew && git stash pop'
mas: A full installation of Xcode.app 10.0 is required to compile this software.
Installing just the Command Line Tools is not sufficient.
Xcode 10.0 cannot be installed on macOS 10.12.
You must upgrade your version of macOS.
Error: An unsatisfied requirement failed this build.
@fmasuhr
Copy link

fmasuhr commented Nov 19, 2018

I also got this issue! This currently does not allow installation of mas via homebrew on macOS Sierra

@phatblat
Copy link
Member

I suspect this is due to the introduction of carthage as a dependency in the formula.

Can you try adding the --force-bottle option to the install command? I'm not sure whether it will help but might give a more informative error. If that doesn't work run brew cat mas and post the output you get. That will let us know which version of the formula brew is using.

@phatblat phatblat self-assigned this Nov 26, 2018
@phatblat phatblat added question Further information is requested bug Something isn't working labels Nov 26, 2018
@dragonandy
Copy link
Author

dragonandy commented Nov 29, 2018

Here are some updates
I do a clean reinstall

$ brew tap-unpin mas-cli/tap
==> Unpinned mas-cli/tap
$ brew uninstall mas
Uninstalling /usr/local/Cellar/mas/1.4.3... (39 files, 11.5MB)
$ brew untap mas-cli/tap
Untapping mas-cli/tap...
Untapped 1 formula (35 files, 31.3KB).

After that I do

$ brew tap mas-cli/tap
==> Tapping mas-cli/tap
Cloning into '/usr/local/Homebrew/Library/Taps/mas-cli/homebrew-tap'...
remote: Enumerating objects: 7, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 7 (delta 0), reused 4 (delta 0), pack-reused 0
Unpacking objects: 100% (7/7), done.
Tapped 1 formula (34 files, 30.2KB).
$ brew tap-pin mas-cli/tap
==> Pinned mas-cli/tap
$ brew install mas
Warning: mas is provided by core, but is now shadowed by mas-cli/tap/mas.
To refer to the core formula, use Homebrew/core/mas instead.
==> Installing mas from mas-cli/tap
==> Downloading https://dl.bintray.com/phatblat/mas-bottles/mas-1.4.3.sierra.bot
######################################################################## 100.0%
==> Pouring mas-1.4.3.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/mas/1.4.3: 39 files, 11.5MB

Haven't figure out why It work again

By the way I edit the depends_on statement in the formula manually to install this bottle before I do this uninstallation .

@phatblat phatblat removed the question Further information is requested label Dec 6, 2018
@phatblat
Copy link
Member

phatblat commented Dec 6, 2018

FYI, you can use use the --ignore-dependencies option so that you don't have to modify the formula.

brew uninstall --ignore-dependencies mas

@enkunkun
Copy link

I got the same error.
I ran the following command and it worked.

brew tap mas-cli/tap
brew tap-pin mas-cli/tap
cd /usr/local/Homebrew && git stash pop && git add . && git commit -m 'add mas-cli/tap'
brew install --force-bottle mas

result

$ brew install --force-bottle mas
Warning: mas is provided by core, but is now shadowed by mas-cli/tap/mas.
To refer to the core formula, use Homebrew/core/mas instead.
==> Installing mas from mas-cli/tap
==> Downloading https://dl.bintray.com/phatblat/mas-bottles/mas-1.4.4.sierra.bot
######################################################################## 100.0%
==> Pouring mas-1.4.4.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/mas/1.4.4: 39 files, 11.5MB

Homebrew versions

$ brew config
HOMEBREW_VERSION: 1.8.6-36-gf050e42
ORIGIN: https://github.com/Homebrew/brew
HEAD: f050e42d7d40fd0050e63e263be2aa3eed68ef83
Last commit: 2 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 85a29855d7cc85fb93371bdc6c9a3af3315be438
Core tap last commit: 62 minutes ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_NO_ANALYTICS_THIS_RUN: 1
CPU: octa-core 64-bit skylake
Homebrew Ruby: 2.3.7 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.3.7/bin/ruby
Clang: 9.0 build 900
Git: 2.20.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_131
macOS: 10.12.6-x86_64
CLT: 9.2.0.0.1.1510905681
Xcode: 9.2
XQuartz: 2.7.11 => /opt/X11

@ForensicPhotog
Copy link

I have a similar problem - trying to upgrade mavericks to sierra, however Apple download centre says I already have sierra installed. Cannot redownload file. Found suggestions to try Homebrew/MAS to help download and install file, however Homebrew/mas tells me that i have to upgrade my operating system first!

I have tried the various combinations listed above but to no avail - any other suggestions (Homebrew v2.1.1, Mavericks 10.9.5, apparently need Xcode 10.1 to install MAS)

@chris-araman
Copy link
Contributor

chris-araman commented May 2, 2021

The Carthage dependency has been removed in mas-cli/mas#350 for the upcoming mas release. I suspect that will address this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants