インフラエンジニアbacchiのわかったことまとめ

bacchi.me

Mac

homebrewでscreenを入れる(2016冬)

更新日:

Macのscreenで縦分割を使えるようにする。の手順でscreenがインストールできなくなっていたのでメモ。

homebrew/dupes を tap する。

screen-4.4系はhomebrew/dupes から入れることができます。

% brew tap homebrew/dupes 

brew search を実行して、screenがあるか見てみましょう。

% brew search screen
homebrew/dupes/screen ✔                  screenfetch
imgur-screenshot                          screenresolution
Caskroom/cask/black-screen                Caskroom/cask/screens
Caskroom/cask/cscreen                     Caskroom/cask/screensleeves
Caskroom/cask/screen-blacker              Caskroom/cask/screenstagram
Caskroom/cask/screencast                  Caskroom/cask/screensteps
Caskroom/cask/screencat                   Caskroom/cask/show-my-screen
Caskroom/cask/screencloud                 Caskroom/cask/syphon-virtual-screen
Caskroom/cask/screenflick                 Caskroom/cask/trim-ios-screenshots
Caskroom/cask/screenflow                  Caskroom/cask/watch-screenshot-magic
Caskroom/cask/screenhero                  Caskroom/cask/xscreensaver
Caskroom/cask/screenmailer                Caskroom/versions/screenflow5
Caskroom/cask/screens-connect

確かに screen があったので、入れていきます。

screen のインストール

それでは、インストールしましょう。

% brew install homebrew/dupes/screen
==> Tapping homebrew/dupes
Cloning into \'/usr/local/Homebrew/Library/Taps/homebrew/homebrew-dupes\'...
remote: Counting objects: 42, done.
remote: Compressing objects: 100% (42/42), done.
remote: Total 42 (delta 0), reused 5 (delta 0), pack-reused 0
Unpacking objects: 100% (42/42), done.
Checking connectivity... done.
Tapped 38 formulae (103 files, 121.5K)
==> Installing screen from homebrew/dupes
==> Downloading https://homebrew.bintray.com/bottles-dupes/screen-4.4.0.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==> Pouring screen-4.4.0.el_capitan.bottle.tar.gz
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/screen
Target /usr/local/bin/screen
is a symlink belonging to screenutf8. You can unlink it:
  brew unlink screenutf8

To force the link and overwrite all conflicting files:
  brew link --overwrite screen

To list all files that would be deleted:
  brew link --overwrite --dry-run screen

Possible conflicting files are:
/usr/local/bin/screen -> /usr/local/bin/screen-4.4.0
/usr/local/bin/screen-4.4.0 -> /usr/local/Cellar/screenutf8/4.4.0/bin/screen-4.4.0
/usr/local/share/info/screen.info -> /usr/local/Cellar/screenutf8/4.4.0/share/info/screen.info
/usr/local/share/man/man1/screen.1 -> /usr/local/Cellar/screenutf8/4.4.0/share/man/man1/screen.1
/usr/local/share/screen/utf8encodings/01
/usr/local/share/screen/utf8encodings/02
/usr/local/share/screen/utf8encodings/03
/usr/local/share/screen/utf8encodings/04
/usr/local/share/screen/utf8encodings/18
/usr/local/share/screen/utf8encodings/19
/usr/local/share/screen/utf8encodings/a1
/usr/local/share/screen/utf8encodings/bf
/usr/local/share/screen/utf8encodings/c2
/usr/local/share/screen/utf8encodings/c3
/usr/local/share/screen/utf8encodings/c4
/usr/local/share/screen/utf8encodings/c6
/usr/local/share/screen/utf8encodings/c7
/usr/local/share/screen/utf8encodings/c8
/usr/local/share/screen/utf8encodings/cc
/usr/local/share/screen/utf8encodings/cd
/usr/local/share/screen/utf8encodings/d6
/usr/local/share/screen/utf8encodings/01
/usr/local/share/screen/utf8encodings/02
/usr/local/share/screen/utf8encodings/03
/usr/local/share/screen/utf8encodings/04
/usr/local/share/screen/utf8encodings/18
/usr/local/share/screen/utf8encodings/19
/usr/local/share/screen/utf8encodings/a1
/usr/local/share/screen/utf8encodings/bf
/usr/local/share/screen/utf8encodings/c2
/usr/local/share/screen/utf8encodings/c3
/usr/local/share/screen/utf8encodings/c4
/usr/local/share/screen/utf8encodings/c6
/usr/local/share/screen/utf8encodings/c7
/usr/local/share/screen/utf8encodings/c8
/usr/local/share/screen/utf8encodings/cc
/usr/local/share/screen/utf8encodings/cd
/usr/local/share/screen/utf8encodings/d6
==> Summary
?  /usr/local/Cellar/screen/4.4.0: 27 files, 1M

brew link でエラーが出て失敗していたので、下記を実行しました。

% brew link --overwrite screen
Linking /usr/local/Cellar/screen/4.4.0... 39 symlinks created

バージョンを確認します。

% screen -v
Screen version 4.04.00 (GNU) 19-Jun-16

これでOK!

以前ブログでscreenの使い方について簡単にまとめたのでよろしければご覧ください^^

作業がグッと楽になる screen を使おう!

Sponsor Link

スポンサーリンク

Sponsor Link

スポンサーリンク

-Mac
-

Copyright© bacchi.me , 2020 AllRights Reserved.