brew cask updateはbrew updateのaliasだっていう話
事象
brew-caskでalfredをインストールしようとしたらエラーが出た。
$ brew cask install alfred ==> Downloading https://cachefly.alfredapp.com/Alfred_2.8_414.zip ######################################################################## 100.0% ==> Symlinking App 'Alfred 2.app' to '/Users/user_name/Applications/Alfred 2.app' ==> Enabling accessibility access Password: ==> Error: table access has 7 columns but 6 values were supplied Error: Command failed to execute! ==> Failed command: ["/usr/bin/sudo", "-E", "--", "/usr/bin/sqlite3", "#<Pathname:/Library/Application Support/com.apple.TCC/TCC.db>", "INSERT OR REPLACE INTO access VALUES('kTCCServiceAccessibility','com.runningwithcrayons.Alfred-2',0,1,1,NULL);"] ==> Output of failed command: ==> Exit status of failed command: #<Process::Status: pid 6731 exit 1>
原因
brew-caskのバージョンが古い
対応方法
brew-cask自体をアップデートしてやればよい。
$ brew update $ brew upgrade brew-cask
brew cask updateはbrew update
の代わりであるため、brew-cask自体のupgradeはbrew upgrade brew-cask
する
$ brew cask help brew-cask provides a friendly homebrew-style CLI workflow for the administration of Mac applications distributed as binaries. Commands: audit verifies installability of Casks cat dump raw source of the given Cask to the standard output cleanup cleans up cached downloads and tracker symlinks create creates the given Cask and opens it in an editor doctor checks for configuration issues edit edits the given Cask fetch downloads Cask resources to local cache home opens the homepage of the given Cask info displays information about the given Cask install installs the given Cask list with no args, lists installed Casks; given installed Casks, lists staged files search searches all known Casks uninstall uninstalls the given Cask update a synonym for 'brew update' zap zaps all files associated with the given Cask