Remember to follow the pre bug report guide beforehand. Failure to do so might get your issue closed.
Permission denied errors with brew cask install google-cloud-sdk, on an out-of-the-box Mac (OS X 10.12.13).
Output of
brew cask <command> --verbose
==> Caveats
google-cloud-sdk is installed at /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk. Add your profile:
for bash users
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc'
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc'
for zsh users
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc'
source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc'
for fish users
set fish_user_paths /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin
set -x MANPATH /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/help/man /usr/local/share/man /usr/share/man /opt/x11/share/man
Run fish_update_completions to generate completions for fish based on the man pages
==> Downloading https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz
/usr/bin/curl --remote-time --location --user-agent Homebrew/1.1.11 (Macintosh; Intel macOS 10.12.3) curl/7.51.0 --fail --silent https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.tar.gz -C 0 -o /Users/bmh/Library/Caches/Homebrew/Cask/google-cloud-sdk--latest.tar.gz.incomplete
==> No checksum defined for Cask google-cloud-sdk, skipping verification
==> Running installer script google-cloud-sdk/install.sh
==> Welcome to the Google Cloud SDK!
==>
==>
==> Your current Cloud SDK version is: 148.0.0
==> Installing components from version: 148.0.0
==>
==> +----------------------------------------------------------------------------+
==> | These components will be installed. |
==> +-----------------------------------------------------+------------+---------+
==>
==> | Name | Version | Size |
==> +-----------------------------------------------------+------------+---------+
==> |
==> BigQuery Command Line Tool
==>
==> |
==> 2.0.24
==>
==> |
==> < 1 MiB
==>
==> |
==>
==> |
==> BigQuery Command Line Tool (Platform Specific)
==> |
==> 2.0.24
==>
==> |
==> < 1 MiB
==>
==> |
==> |
==> Cloud SDK Core Libraries (Platform Specific)
==>
==> |
==> 2016.11.07
==> |
==> < 1 MiB
==>
==> |
==> |
==> Cloud Storage Command Line Tool
==> |
==> 4.23
==>
==> |
==> 2.8 MiB
==> |
==>
==> |
==> Cloud Storage Command Line Tool (Platform Specific)
==> |
==> 4.18
==> |
==> < 1 MiB
==>
==> |
==>
==> |
==> Default set of gcloud commands
==> |
==>
==> |
==>
==>
==> |
==> |
==> gcloud-deps (Mac OS X, x86_64)
==> |
==> 2017.02.21
==> |
==> 2.1 MiB
==>
==> |
==>
==> +-----------------------------------------------------+------------+---------+
==>
==> For the latest full release notes, please visit:
==> https://cloud.google.com/sdk/release_notes
==>
==> #============================================================#
==> #= Creating update staging area =#
==> #
==> ======
==> ======
==> ======
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> #
==> #= Installing: BigQuery Command Line Tool =#
==> #
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> ==
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> #
==> #= Installing: BigQuery Command Line Tool (Platform Spec... =#
==> #
==> ==============================
==> ===============
==> ===============
==> #
==> #= Installing: Cloud SDK Core Libraries (Platform Specific) =#
==> #
==> ==============================
==> ==========
==> =========
==> ===========
==> #
==> #= Installing: Cloud Storage Command Line Tool =#
==> #
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> #
==> #= Installing: Cloud Storage Command Line Tool (Platform... =#
==> #
==> ==============================
==> ===============
==> ===============
==> #
==> #= Installing: Default set of gcloud commands =#
==> #
==> ============================================================#
==> #= Installing: gcloud-deps (Mac OS X, x86_64) =#
==> #
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> =
==> #
==> #= Creating backup and activating new installation =#
==> #
==> ==============================
==> ==============================
==> #
==>
==> Performing post processing steps...
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> .
==> done.
==>
==> Update done!
==>
==>
==> This will install all the core command line tools necessary for working with
==> the Google Cloud Platform.
==>
==> ==> Source [/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc]in your profile to enable shell command completion for gcloud.
==> ==> Source [/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc] in your profile to add the Google Cloud SDK command line tools to your $PATH.
==>
==> For more information on how to get started, please visit:
==> https://cloud.google.com/sdk/docs/quickstarts
==>
==>
==> Symlinking Binary 'bq' to '/usr/local/bin/bq'
==> Symlinking Binary 'gcloud' to '/usr/local/bin/gcloud'
==> Symlinking Binary 'git-credential-gcloud.sh' to '/usr/local/bin/git-credential-gcloud'
==> chmod: Unable to change file mode on /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/.install/bq-nix.manifest: Operation not permitted
*** MANY MORE ... (see att. gcloud.txt for full list) ***
[gcloud.txt](https://github.com/caskroom/homebrew-cask/files/865782/gcloud.txt)
==> chmod: Unable to change file mode on /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/VERSION: Operation not permitted
==> Using sudo to gain ownership of path '/usr/local/Caskroom/google-cloud-sdk/latest'
Error: Command failed to execute!
==> Failed command:
/usr/bin/xattr -w com.apple.metadata:kMDItemAlternateNames (\"git-credential-gcloud\") /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/git-credential-gcloud.sh
==> Standard Output of failed command:
==> Standard Error of failed command:
xattr: [Errno 13] Permission denied: '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/git-credential-gcloud.sh'
==> Exit status of failed command:
#<Process::Status: pid 31681 exit 1>
Error: nothing to install
Error: Kernel.exit
Output of
brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/bin/bq
/usr/local/bin/gcloud
/usr/local/bin/git-credential-gcloud
Output of
brew cask doctor
==> Homebrew-Cask Version
Homebrew-Cask 1.1.11
caskroom/homebrew-cask (git revision f97c; last commit 2017-03-23)
==> Homebrew-Cask Install Location
<NONE>
==> Homebrew-Cask Staging Location
/usr/local/Caskroom
==> Homebrew-Cask Cached Downloads
~/Library/Caches/Homebrew/Cask (19 files, 3.9GB)
==> Homebrew-Cask Taps:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask (3619 casks)
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-fonts (1098 casks)
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-versions (173 casks)
==> Contents of $LOAD_PATH
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin16
/Library/Ruby/Site/2.0.0/universal-darwin16
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin16
==> Environment Variables
LANG="en_CA.UTF-8"
PATH="~/context/tex/texmf-osx-64/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/Homebrew/Library/Homebrew/shims/scm"
SHELL="/bin/bash"
Already discussed in other issues. This will be automatically fixed when there鈥檚 a new homebrew tagged release.
Next time, please fill the title as well.
@brianmhunt quick workaround:
sudo chown -R $(whoami):staff ~/.config/gcloud/
Thanks @yurikoles - That appears to fix a generic issue with google cloud sdk installer on Mac (i.e. your fix resolves a problem when installing google SDK from source), but there appear to be ongoing, unrelated issues of the sort I reported above (i.e. chmod: Unable to change file mode on /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/)
This will be automatically fixed when there鈥檚 a new homebrew tagged release.
What exactly do you mean? A new version of Homebrew, or a new version of the Google Cloud SDK?
Edit: Grammar
@yhoiseth Of Homebrew.
Most helpful comment
Thanks @yurikoles - That appears to fix a generic issue with google cloud sdk installer on Mac (i.e. your fix resolves a problem when installing google SDK from source), but there appear to be ongoing, unrelated issues of the sort I reported above (i.e.
chmod: Unable to change file mode on /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/)