macOSで cask install しようとしてつまった話

2017-12-05 Tue 19:55:16 JST
posted by hadrori

環境

  • OS: macOS 10.12.6
  • emacs: 25.3.1
  • cask: 0.8.1

問題

$ brew install cask
$ cd ~/.emacs.d
$ cask install
Contacting host: melpa.org:443
Opening TLS connection to ‘melpa.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 melpa.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 melpa.org’...failed
Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 melpa.org --protocols ssl3’...
Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 melpa.org --protocols ssl3’...failed
Opening TLS connection with ‘openssl s_client -connect melpa.org:443 -no_ssl2 -ign_eof’...
Opening TLS connection with ‘openssl s_client -connect melpa.org:443 -no_ssl2 -ign_eof’...failed
Opening TLS connection to ‘melpa.org’...failed
Failed to download ‘melpa’ archive.
Opening TLS connection to ‘elpa.gnu.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 elpa.gnu.org’...
Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 elpa.gnu.org’...failed
Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 elpa.gnu.org --protocols ssl3’...
Opening TLS connection with ‘gnutls-cli --x509cafile nil -p 443 elpa.gnu.org --protocols ssl3’...failed
Opening TLS connection with ‘openssl s_client -connect elpa.gnu.org:443 -no_ssl2 -ign_eof’...
Opening TLS connection with ‘openssl s_client -connect elpa.gnu.org:443 -no_ssl2 -ign_eof’...failed
Opening TLS connection to ‘elpa.gnu.org’...failed
Package refresh done
Failed to download ‘gnu’ archive.
Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
Setting ‘package-selected-packages’ temporarily since "emacs -q" would overwrite customizations
Package ‘s-’ is unavailable

原因

brew install の際に依存関係で入れられる emacs と一緒に gnutls が正しく入ってなかった(?).

解決方法

emacs を入れ直す.

brew install emacs --with-gnutls