pivotal-sprout / sprout-wrap

Pivotal Labs uses this project with sprout, soloist and librarian-chef to build developer workstations
The Unlicense
157 stars 250 forks source link

iterm on 10.12.3 #101

Closed robb1e closed 7 years ago

robb1e commented 7 years ago

I'm getting this error on a new install of OS 10.12.3


STDOUT: ==> Satisfying dependencies
complete
==> Downloading https://iterm2.com/downloads/stable/iTerm2-3_0_14.zip
Already downloaded: /Users/rclutton/Library/Caches/Homebrew/Cask/iterm2--3.0.14.zip
==> Verifying checksum for Cask iterm2
STDERR: Warning: The default Caskroom location has moved to /usr/local/Caskroom.

Please migrate your Casks to the new location and delete /opt/homebrew-cask/Caskroom,
or if you would like to keep your Caskroom at /opt/homebrew-cask/Caskroom, add the
following to your HOMEBREW_CASK_OPTS:

  --caskroom=/opt/homebrew-cask/Caskroom

For more details on each of those options, see https://github.com/caskroom/homebrew-cask/issues/21913.
Error: It seems there is already an App at '/Applications/iTerm.app'.
Error: nothing to install
---- End output of /usr/local/bin/brew cask install iterm2  ----
Ran /usr/local/bin/brew cask install iterm2  returned 1
[2017-03-22T18:14:23+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)```
aramprice commented 7 years ago

I think you need to remove the existing /Applications/iTerm.app in order for the cask installation to succeed. I think this is because brew cask assumes it doesn't own that app and doesn't want to overwrite it.

As for the Caskroom location that was a change that happened in 2016 I think. Probably easiest to follow the Homebrew docs, or just start with fresh machine.

robb1e commented 7 years ago

The link in the error points you to do mv /opt/homebrew-cask/Caskroom /usr/local which seems to have cleared up the issue.