ラベル macOS の投稿を表示しています。 すべての投稿を表示
ラベル macOS の投稿を表示しています。 すべての投稿を表示

2021年1月21日木曜日

macOS Mojave(10.14.6)からmacOS Big Sur(11.1)にバージョンアップ

 ここ数年Apple製品のハードウェア、ソフトウェア、サポートについて不安不快不信しかなく安易にバージョンアップを行う気にはなりませんでした。

とはいえセキュリティ面を考えるとバージョンアップは必要であり覚悟をきめてバージョンアップをしました。

・前準備

TimeMachineによるバックップ
利用アプリが動作しなくなると困るので登録情報をエクスポート(CSV形式)

・バージョンアップ

バージョンアップを開始すると12.2Gのダウンロードが開始されました、ダウンロードとバージョンアップに時間がかかると思い途中でAC電源に切り替えたところなぜかダウンロードが失敗、再度バージョンアップ操作を行いダウンロードからやり直し。

ダウンロードが終わると何度か再起動を伴いながらもバージョンアップは完了、前回バージョンアップではクラッシュして面倒なことになったけれど今回はとても簡単に完了。

の、はずだった・・・。

・Apple IDの2ファクタ認証

Apple IDの認証が2ファクタ認証が導入された時にセキュリティ面は喜ばしいとは思いつつ何かトラブルと面倒な事になるのでは思い今まで有効にしていませんでした。

OSのアップデートが完了後iCloudの設定で2ファクタ認証を有効にするか聞かれたので拒否すると先に進めることが出来なくなり(実際は拒否しても進める方法があったのかも)覚悟を決めて設定する事にしました。

いざ有効にすると確認コードを求める画面が表示しアイコンは処理中(待機中)のまま・・・。

いつまで経っても進展がなくもしかしてSMSに確認コードを送信中なのではと、仕方なくキャンセルをしようにもなにも操作を受け付けない状態になっていました。

バージョンアップの関連の作業途中なのでとてもやりたくなかったのですが覚悟を決めて電源ボタンを長押ししての強制終了・・・。

ちゃんと起動するのか心配で仕方がないけれど電源ボタンを押して起動してみると無事起動、環境設定で確認すると2ファクタ認証は未完了の状態で有効になっていませんでした。

幸い安全な別のスマフォ(別のキャリア)があったのでそちら確認コードを送ってみたところ無事にSMSは届き2ファクタ認証の設定は有効にできました。

やっぱりバージョンアップでは何か起きるな・・・。

昔以上にインターネットに依存してきている状況でPCが使用できなくなるのは本当に困る、機能や見た目なんかより品質とセキュリティを最優先にしてほしい、当然バージョンアップ時のトラブルなんかありえない。そしてMacOSの次はiOSもなんとかしないと・・・iPhoneはさらに依存しているところがあるので今回の事を考えるとバージョンアップがより不安でしかない。


2020年8月24日月曜日

Macでスリープからの復帰時に問題が発生して再起動

 気がつくとスリープから復帰する際にOSが再起動するようになった。

ただ発生する頻度が100%ではなくそれでいて結構な確率で発生する厄介な事象

普通なら最新のmacOS Catalinaにアップデートするのが常套手段なのかもしれないけれど最近のApple製品には不信感しかなくセキュリティ以上に品質が信用できず安易にバージョンアップをしたくない。

インターネットで調べてみると意外にこの事象は発生しているようで既知の不具合事象ということか?


とりあえず先駆者方々の情報をもとに

1.SMCリセット

改善せず

2.Apple Diagnostics

改善というか、ハードウェアエラーがあるか確認、結果問題なし

やり方は、電源を起動したらDキーを押し続け言語選択が表示したら日本語を選択し指示に従うだけ

3.SMCリセット

やり方はモデルによって異なる、MacBookPro(2016)の場合は

  • Mac をシステム終了
  • 内蔵キーボードで、以下のキーをすべて長押し
  • キーボードの左側の「shift 」キー
  • キーボードの左側の「control 」キー
  • キーボードの左側の「option (Alt) 」キー
  • 上記 3 つのすべてのキーを押し続けている間に、電源ボタンも長押し
  • 4 つすべてのキーを 10 秒押し続ける
  • すべてのキーから指を放し、電源ボタンを押して Mac の電源を入れる
改善せず

4.NVRAMリセット、こちらもモデルによって手順が異なる
  • Macをシステム終了
  • Macの電源を入れる。
  • 「command + option + P + R」の4つのキーを同時に押し続ける。グレーの画面が表示されるはずなので、そのまま押したまま待つ。
  • Macが再起動してキーを最低でも20秒間押したままにする(たまに画面が薄く光る)
  • 20秒以上押し続けたらキーを離す
  • 日時、時刻設定が必要という情報もあったけれど、確認すると自動設定になっていて設定は不要だった
もしかすると改善したかも。

最近は2回目のスリープで問題が発生していたけれどNVRAMリセット後は再現していない

調べていると他の対処方法としてスリープをさせない設定方法が紹介されているがそれは根本的な解決にはなっていないしそもそも提供されるべき機能を使えないのはおかしい気がする。

とりあえず上記対応で改善していることを祈ろう。

【追記】
その後調べてみた結果、Kasperskyが原因であることが判明!!不具合なのか仕様なのかは別としてKasperskyを停止している状態であれば問題は一度も発生していない。
AppleでもKasperskyでもどちらでもいいから改善してほしい!!

【追記2】
去年どこかのタイミングでKasperskyのバージョンアップが行われ今回の事象は改善しました。

2020年5月5日火曜日

Homebrewでパッケージ管理のつもりが

Pyhotnをインストールタイミングでパッケージ管理ソフト(Homebrew)をインストールしているにもかかわらずApp Storeのアプリかベンダーのアプリは公式サイトの手動手順でインストールしてしまいほとんど未使用状態。

久々にiTerm2をインストールしようと思いインストール方法を調べていざHomebrew(Homebrew-cask)でインストールしてみようと思い。

パッケージを検索してみると。。。

$brew search iterm2
Warning: Cask 'jtool' is unreadable: undefined method `method_missing_message' for Utils:Module
Did you mean?  method_missing
Error: Cask 'auristor-client' definition is invalid: invalid 'depends_on macos' value: :catalina

インストールしているHomebrewのバージョンは1.8.6で現在は2.2.0と古い、まずはHomeberewのアップデートが必要そう。

本当はHomebrewによるパッケージ管理は便利なのだろうけれど、自分のようにほとんどアプリケーションをインストールしない人にとっては逆に使わなくてもいいのかな。(あまりに使わないため使いたい時にHomebrewの使い方を調べなくてはならなくなる)

iTerm2のインストールを調べて今更Homebrewがコマンドラインベースのパッケージを管理し、GUIベースのパッケージはHomeberew-caskであること知った。(昔はHomeberew-caskを別途インストールする必要があったみたいだけれど今はHomebrewは含まれているっぽい)

うーん、パッケージは手動インストールでもいいかも。。。

brew備忘録


Homebrewのバージョン確認
$vrew config

Homebrewのアップデート
$brew update

Homebrewのアップデート+Homebrewでインストールしたパッケージのアップデート
$brew upgrade

Homebrewでインストールしたパッケージ一覧
brew list

2019年10月22日火曜日

JupyterLab(JupyterNotebook)のインストール

macOS Mojave(10.14.6)にJupyterLab(JupyterNoteBook後継版)のインストールメモ、既にPython3.7.1をインストールしている状態でAnaconda(データサイエンス向けのPythonパッケージなどを提供するプラットフォーム)を使用せずJupyterLabを単体でインストールすることに。

1.jupyterlabインストール


>pip install jupyterlab

インストールしていたpipのバージョンが古いとのメッセージ

You are using pip version 10.0.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

なので先にpipをアップグレード

>pip install --upgrade pip

Collecting pip
  Downloading https://files.pythonhosted.org/packages/00/b6/9cfa56b4081ad13874b0c6f96af8ce16cfbc1cb06bedf8e9164ce5551ec1/pip-19.3.1-py2.py3-none-any.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 6.5MB/s 
Installing collected packages: pip
  Found existing installation: pip 10.0.1
    Uninstalling pip-10.0.1:
      Successfully uninstalled pip-10.0.1
Successfully installed pip-19.3.1

再度jupyterlabをインストールしてとりあえずエラーなく完了、またJuypyterLabでグラフも表示させたいのでついでにmatplotlibもインストール

>pip install matplotlib

2.準備


作業ディレクトリを変更したく毎回起動オプションに設定するのが面倒なので作業用フォルダの作成と設定ファイルを作成し必要な設定をする

・作業ディレクトリ作成(ホームディレクトリ内作成)
mkdir ~/jupyterlab

・設定ファイルの作成

>jupyter notebook --generate-config

~/.jupyterフォルダ内にjupyter_notebook_config.pyが作成されるので先の下記の箇所を有効(コメント解除)にして作業フォルダを指定
c.NotebookApp.notebook_dir = '[任意フォルダ]'

3.実行


>jupyter lab

デフォルトは自動的にブラウザも起動する



  • jupyterlabはIE11がサポートされていないためWindowsだと画面はなにも表示しない、Notebookは使用できるのでその場合は「http://localhost:8888/tree」にアクセスする(初回は/?token=・・・が必要かも)
  • 手動でURLを指定する場合は「http://localhost:8888/lab」
  • ターミナルを閉じてもバックグラウンド起動させておく場合は「>nohup jupyter lab &」で実行
  • 手動実行時のURLに認証用トークンを指定する必要がある場合はターミナル画面にURL(http://localhost:8888/?token=d6d62e9f50ee4668e355409590ada3a34ce70658ead9aaf8)が表示されているので「/?token」以降を入力する


4.グラフの表示確認


(テストプログラム)

%matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0,10,100)
y = np.sin(x)
plt.plot(x,y)




5.Tips


(1)設定ファイル
・起動時に自動的にブラウザ起動させない場合
c.NotebookApp.open_browser = False
・別のPCからアクセスさせる場合
c.NotebookApp.ip = '*'
・ポート番号を変更(8801)する場合
c.NotebookApp.port = 8801
・認証用のトークンをなくす場合
c.NotebookApp.toekn = ''
・rootユーザでの実行を許容する場合(Macでは個人IDでログインしていたので不要)
c.NotebookApp.allow_root = True

(2)起動オプション
・help(MacではLinuxの場合ほどオプションが表示しない)
--help or --help-all
・リモートアクセス許可
--ip=0.0.0.0
・起動時に自動的にブラウザ起動させない
--no-browser
rootユーザでの実行を許容
--allow-root



2019年1月14日月曜日

お使いのシステムは3つのウイルスに感染しています


突然こんなページが表示


一瞬ドキッとしたものの、既にインストールしているウィルス対策ソフトが検知しておらず、さらにこのページのURLが怪しすぎる。

ボタンをクリックする前に検索するとやっぱり・・・偽り!!


2019年1月3日木曜日

macOS Mojave 10.14.2にPython3.7.1インストール



前回、Homebrewをインストールしたのでやっとpythonをインストール


  • macOS Mojave 10.14.2
  • Python3.7.1

・pyenvのインストール

今のところ複数のバージョンを切り替えて使う予定がないのでpyenvのインストールは不要あったかもしれないけれど今後のために。

(インストールコマンド)
$brew install pyenv

(インストールログ)
brew install pyenv
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> New Formulae
atomist-cli                               jmxterm                                   ruby@2.5
==> Updated Formulae
algernon                       dub                            libcds                         re2
ballerina                      dvm                            libhttpserver                  roswell
bullet                         easyengine                     libjwt                         swi-prolog
checkstyle                     efl                            librealsense                   swiftformat
clojure                        fbi-servefiles                 meson                          syncthing
cointop                        gexiv2                         mono                           tika
dartsim                        global                         neovim                         topgrade
dcd                            gobject-introspection          nnn                            unnethack
dependency-check               grakn                          node-build                     verilator
dfmt                           groovy                         pagmo                          wtf
diamond                        http-parser                    pgbadger                       ydcv
diffutils                      imagemagick                    php-cs-fixer                   youtube-dl
docker-machine-parallels       kops                           picard-tools
dscanner                       ldc                            plantuml
==> Deleted Formulae
pyexiv2

==> Installing dependencies for pyenv: autoconf, openssl, pkg-config and readline
==> Installing pyenv dependency: autoconf
==> Downloading https://homebrew.bintray.com/bottles/autoconf-2.69.mojave.bottle.4.tar.gz
######################################################################## 100.0%
==> Pouring autoconf-2.69.mojave.bottle.4.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/autoconf
==> Summary
瑳  /usr/local/Cellar/autoconf/2.69: 71 files, 3.0MB
==> Installing pyenv dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2q.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2q.mojave.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ‾/.bash_profile

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

==> Summary
瑳  /usr/local/Cellar/openssl/1.0.2q: 1,794 files, 12.1MB
==> Installing pyenv dependency: pkg-config
==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pkg-config-0.29.2.mojave.bottle.tar.gz
瑳  /usr/local/Cellar/pkg-config/0.29.2: 11 files, 627.2KB
==> Installing pyenv dependency: readline
==> Downloading https://homebrew.bintray.com/bottles/readline-7.0.5.mojave.bottle.tar.gz
######################################################################## 100.0%
==> Pouring readline-7.0.5.mojave.bottle.tar.gz
==> Caveats
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.

For compilers to find readline you may need to set:
  export LDFLAGS="-L/usr/local/opt/readline/lib"
  export CPPFLAGS="-I/usr/local/opt/readline/include"

==> Summary
瑳  /usr/local/Cellar/readline/7.0.5: 46 files, 1.5MB
==> Installing pyenv
==> Downloading https://homebrew.bintray.com/bottles/pyenv-1.2.8_1.mojave.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring pyenv-1.2.8_1.mojave.bottle.1.tar.gz
瑳  /usr/local/Cellar/pyenv/1.2.8_1: 612 files, 2.4MB
==> Caveats
==> autoconf
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/autoconf
==> openssl
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
  /usr/local/etc/openssl/certs

and run
  /usr/local/opt/openssl/bin/c_rehash

openssl is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.

If you need to have openssl first in your PATH run:
  echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ‾/.bash_profile

For compilers to find openssl you may need to set:
  export LDFLAGS="-L/usr/local/opt/openssl/lib"
  export CPPFLAGS="-I/usr/local/opt/openssl/include"

For pkg-config to find openssl you may need to set:
  export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig"

==> readline
readline is keg-only, which means it was not symlinked into /usr/local,
because macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.

For compilers to find readline you may need to set:
  export LDFLAGS="-L/usr/local/opt/readline/lib"
  export CPPFLAGS="-I/usr/local/opt/readline/include"


(パス追加)
pyenvのパスを通すために.bash_profileに追加
※自分の環境には.bash_profileは存在しておらず今回新規に作成

・.bash_profile作成
$touch ~/.bash_profile

・パス追加
.bash_profileに以下を追加
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"

・.bash_profileの読み込み
パスに追加しても次回のシェル起動時からしか有効にならないので手動で.bash_profileを読み込ませる

$ source ~/.bash_profile

・pythonのインストール


pyenvでインストール出来るバージョンを確認する

$ pyenv install --list

anacondaやjpythonなども表示するけれど数字だけのがpythonのことのようで、今回は現時点で最新の3.7.1をインストールすることに

$ pyenv install 3.7.1

(インストールログ)
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.1.tar.xz...
-> https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz
Installing Python-3.7.1...
python-build: use readline from homebrew

BUILD FAILED (OS X 10.14.2 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/18/0w69zlln2v54_mhnf6s014dc0000gn/T/python-build.20190103125847.9526
Results logged to /var/folders/18/0w69zlln2v54_mhnf6s014dc0000gn/T/python-build.20190103125847.9526.log

Last 10 log lines:
rm -f ./pybuilddir.txt ; \
exit 1 ; \
fi
Fatal Python error: init_sys_streams: can't initialize sys standard streams
LookupError: unknown encoding: SJIS

Current thread 0x000000011701a5c0 (most recent call first):
/bin/sh: line 1: 18246 Abort trap: 6           ./python.exe -E -S -m sysconfig --generate-posix-vars
generate-posix-vars failed
make: *** [pybuilddir.txt] Error 1

うーん、とりあえずエンコーディングのSJISを知らないと・・・ターミナルのテキストエンコーディングをUTF-8にしてリトライ
※そもそも~(チルダ)を入力できず問題でエンコーディングをUTF-8に変更はしていたけれどターミナルを開きなおしていなかったのでシェルとしてはSJISのままだった。

(インストールログ)
pyenv install 3.7.1
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.1.tar.xz...
-> https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz
Installing Python-3.7.1...
python-build: use readline from homebrew

BUILD FAILED (OS X 10.14.2 using python-build 20180424)

Inspect or clean up the working tree at /var/folders/18/0w69zlln2v54_mhnf6s014dc0000gn/T/python-build.20190103130926.18567
Results logged to /var/folders/18/0w69zlln2v54_mhnf6s014dc0000gn/T/python-build.20190103130926.18567.log

Last 10 log lines:
  File "/private/var/folders/18/0w69zlln2v54_mhnf6s014dc0000gn/T/python-build.20190103130926.18567/Python-3.7.1/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/private/var/folders/18/0w69zlln2v54_mhnf6s014dc0000gn/T/python-build.20190103130926.18567/Python-3.7.1/Lib/ensurepip/__init__.py", line 204, in _main
    default_pip=args.default_pip,
  File "/private/var/folders/18/0w69zlln2v54_mhnf6s014dc0000gn/T/python-build.20190103130926.18567/Python-3.7.1/Lib/ensurepip/__init__.py", line 117, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/private/var/folders/18/0w69zlln2v54_mhnf6s014dc0000gn/T/python-build.20190103130926.18567/Python-3.7.1/Lib/ensurepip/__init__.py", line 27, in _run_pip
    import pip._internal
zipimport.ZipImportError: can't decompress data; zlib not available
make: *** [install] Error 1

調べてみるとMojave用のmacOS SDK headerがインストールされていないかららしく手動でインストールしてみることに

$ sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

(インストールログ)
sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /
Password:
installer: Package name is macOS_SDK_headers_for_macOS_10.14
installer: Installing at base path /

installer: The install was successful.

再度python3.7.1をインストールして無事成功
(インストールログ)
$ pyenv install 3.7.1
python-build: use openssl from homebrew
python-build: use readline from homebrew
Downloading Python-3.7.1.tar.xz...
-> https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tar.xz
Installing Python-3.7.1...
python-build: use readline from homebrew

Installed Python-3.7.1 to /Users/[ユーザid hogehoge]/.pyenv/versions/3.7.1

・pythonバージョンの切り替え

インストールしただけではデフォルトのpythonはもともとインストールされているバージョンが使用されるので切り替える

$ python --version
Python 2.7.10
$ pyenv global 3.7.1
$ pyenv versions
  system

* 3.7.1 (set by /Users/[ユーザid hogehoge]/.pyenv/version)
$ python --version
Python 3.7.1

※選ばれているバージョンの前に*が表示しているっぽい

ちなみにアンインストール時は
$ pyenv uninstall 3.7.1

参考サイト








ターミナルで(~)チルダを入力できない

普段たいして使用しないターミナルでホームディレクトリに移動しようと「~(チルダ)」を入力して表示しない・・・。

調べてみるとターミナル→環境設定→プロファイル→詳細のテキストエンコーディングをSJISからUnicode(UTF-8)に変更すると表示するらしい。


これって常識なのかな。

2018年12月31日月曜日

macOS パッケージ管理システム(Homebrew)インストール

あまり色々とアプリをインストールしたくないのだけれどpythonを勉強するためにpythonをインストールすることに、macOS(10.14.2 Mojave)には標準で2.7.10がインストールされているけれどできればpython3を使いたい。

色々調べてみるとパッケージ管理システム(yum、apt-getの同類)を使用してインストールする例が多く、MacPortsと悩んでこちらのサイトを参考にHomebrewをインストール。

参考サイトでは手順でJAVAとCommand Line ToolsをインストールをしているけれどとりあえずHmoebrewの公式サイトのインストールコマンドをコピーしてターミナルから実行


【実行ログ】
 /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
==> This script will install:
/usr/local/bin/brew
/usr/local/share/doc/homebrew
/usr/local/share/man/man1/brew.1
/usr/local/share/zsh/site-functions/_brew
/usr/local/etc/bash_completion.d/brew
/usr/local/Homebrew
==> The following existing directories will be made group writable:
/usr/local/bin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
==> The following existing directories will have their owner set to [ユーザ名hogehoge]:
/usr/local/bin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
==> The following existing directories will have their group set to admin:
/usr/local/bin
/usr/local/share
/usr/local/share/man
/usr/local/share/man/man1
==> The following new directories will be created:
/usr/local/etc
/usr/local/include
/usr/local/lib
/usr/local/sbin
/usr/local/var
/usr/local/opt
/usr/local/share/zsh
/usr/local/share/zsh/site-functions
/usr/local/var/homebrew
/usr/local/var/homebrew/linked
/usr/local/Cellar
/usr/local/Caskroom
/usr/local/Homebrew
/usr/local/Frameworks
==> The Xcode Command Line Tools will be installed.

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod u+rwx /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man1
Password:

パスワードを入力

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man1
==> /usr/bin/sudo /usr/sbin/chown [ユーザ名hogehoge] /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man1
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/bin /usr/local/share /usr/local/share/man /usr/local/share/man/man1
==> /usr/bin/sudo /bin/mkdir -p /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions
==> /usr/bin/sudo /usr/sbin/chown [ユーザ名hogehoge] /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Homebrew /usr/local/Frameworks
==> /usr/bin/sudo /bin/mkdir -p /Users/[ユーザ名hogehoge]/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Users/[ユーザ名hogehoge]/Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown [ユーザ名hogehoge] /Users/[ユーザ名hogehoge]/Library/Caches/Homebrew
==> /usr/bin/sudo /bin/mkdir -p /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> /usr/bin/sudo /usr/sbin/chown [ユーザ名hogehoge] /Library/Caches/Homebrew
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> Installing Command Line Tools (macOS Mojave version 10.14) for Xcode-10.1
==> /usr/bin/sudo /usr/sbin/softwareupdate -i Command¥ Line¥ Tools¥ (macOS¥ Mojave¥ version¥ 10.14)¥ for¥ Xcode-10.1
Software Update Tool


Downloading Command Line Tools (macOS Mojave version 10.14) for Xcode
Downloaded Command Line Tools (macOS Mojave version 10.14) for Xcode
Installing Command Line Tools (macOS Mojave version 10.14) for Xcode
Done with Command Line Tools (macOS Mojave version 10.14) for Xcode
Done.
==> /usr/bin/sudo /bin/rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Library/Developer/CommandLineTools
==> Downloading and installing Homebrew...
remote: Enumerating objects: 32, done.
remote: Counting objects: 100% (32/32), done.
remote: Compressing objects: 100% (26/26), done.
remote: Total 116175 (delta 8), reused 10 (delta 5), pack-reused 116143
Receiving objects: 100% (116175/116175), 27.36 MiB | 4.23 MiB/s, done.
Resolving deltas: 100% (84822/84822), done.
From https://github.com/Homebrew/brew
 * [new branch]          master     -> origin/master
 * [new tag]             0.1        -> 0.1
 * [new tag]             0.2        -> 0.2
 * [new tag]             0.3        -> 0.3
 * [new tag]             0.4        -> 0.4
 * [new tag]             0.5        -> 0.5
 * [new tag]             0.6        -> 0.6
 * [new tag]             0.7        -> 0.7
 * [new tag]             0.7.1      -> 0.7.1
 * [new tag]             0.8        -> 0.8
 * [new tag]             0.8.1      -> 0.8.1
 * [new tag]             0.9        -> 0.9
 * [new tag]             0.9.1      -> 0.9.1
 * [new tag]             0.9.2      -> 0.9.2
 * [new tag]             0.9.3      -> 0.9.3
 * [new tag]             0.9.4      -> 0.9.4
 * [new tag]             0.9.5      -> 0.9.5
 * [new tag]             0.9.8      -> 0.9.8
 * [new tag]             0.9.9      -> 0.9.9
 * [new tag]             1.0.0      -> 1.0.0
 * [new tag]             1.0.1      -> 1.0.1
 * [new tag]             1.0.2      -> 1.0.2
 * [new tag]             1.0.3      -> 1.0.3
 * [new tag]             1.0.4      -> 1.0.4
 * [new tag]             1.0.5      -> 1.0.5
 * [new tag]             1.0.6      -> 1.0.6
 * [new tag]             1.0.7      -> 1.0.7
 * [new tag]             1.0.8      -> 1.0.8
 * [new tag]             1.0.9      -> 1.0.9
 * [new tag]             1.1.0      -> 1.1.0
 * [new tag]             1.1.1      -> 1.1.1
 * [new tag]             1.1.10     -> 1.1.10
 * [new tag]             1.1.11     -> 1.1.11
 * [new tag]             1.1.12     -> 1.1.12
 * [new tag]             1.1.13     -> 1.1.13
 * [new tag]             1.1.2      -> 1.1.2
 * [new tag]             1.1.3      -> 1.1.3
 * [new tag]             1.1.4      -> 1.1.4
 * [new tag]             1.1.5      -> 1.1.5
 * [new tag]             1.1.6      -> 1.1.6
 * [new tag]             1.1.7      -> 1.1.7
 * [new tag]             1.1.8      -> 1.1.8
 * [new tag]             1.1.9      -> 1.1.9
 * [new tag]             1.2.0      -> 1.2.0
 * [new tag]             1.2.1      -> 1.2.1
 * [new tag]             1.2.2      -> 1.2.2
 * [new tag]             1.2.3      -> 1.2.3
 * [new tag]             1.2.4      -> 1.2.4
 * [new tag]             1.2.5      -> 1.2.5
 * [new tag]             1.2.6      -> 1.2.6
 * [new tag]             1.3.0      -> 1.3.0
 * [new tag]             1.3.1      -> 1.3.1
 * [new tag]             1.3.2      -> 1.3.2
 * [new tag]             1.3.3      -> 1.3.3
 * [new tag]             1.3.4      -> 1.3.4
 * [new tag]             1.3.5      -> 1.3.5
 * [new tag]             1.3.6      -> 1.3.6
 * [new tag]             1.3.7      -> 1.3.7
 * [new tag]             1.3.8      -> 1.3.8
 * [new tag]             1.3.9      -> 1.3.9
 * [new tag]             1.4.0      -> 1.4.0
 * [new tag]             1.4.1      -> 1.4.1
 * [new tag]             1.4.2      -> 1.4.2
 * [new tag]             1.4.3      -> 1.4.3
 * [new tag]             1.5.0      -> 1.5.0
 * [new tag]             1.5.1      -> 1.5.1
 * [new tag]             1.5.10     -> 1.5.10
 * [new tag]             1.5.11     -> 1.5.11
 * [new tag]             1.5.12     -> 1.5.12
 * [new tag]             1.5.13     -> 1.5.13
 * [new tag]             1.5.14     -> 1.5.14
 * [new tag]             1.5.2      -> 1.5.2
 * [new tag]             1.5.3      -> 1.5.3
 * [new tag]             1.5.4      -> 1.5.4
 * [new tag]             1.5.5      -> 1.5.5
 * [new tag]             1.5.6      -> 1.5.6
 * [new tag]             1.5.7      -> 1.5.7
 * [new tag]             1.5.8      -> 1.5.8
 * [new tag]             1.5.9      -> 1.5.9
 * [new tag]             1.6.0      -> 1.6.0
 * [new tag]             1.6.1      -> 1.6.1
 * [new tag]             1.6.10     -> 1.6.10
 * [new tag]             1.6.11     -> 1.6.11
 * [new tag]             1.6.12     -> 1.6.12
 * [new tag]             1.6.13     -> 1.6.13
 * [new tag]             1.6.14     -> 1.6.14
 * [new tag]             1.6.15     -> 1.6.15
 * [new tag]             1.6.16     -> 1.6.16
 * [new tag]             1.6.17     -> 1.6.17
 * [new tag]             1.6.2      -> 1.6.2
 * [new tag]             1.6.3      -> 1.6.3
 * [new tag]             1.6.4      -> 1.6.4
 * [new tag]             1.6.5      -> 1.6.5
 * [new tag]             1.6.6      -> 1.6.6
 * [new tag]             1.6.7      -> 1.6.7
 * [new tag]             1.6.8      -> 1.6.8
 * [new tag]             1.6.9      -> 1.6.9
 * [new tag]             1.7.0      -> 1.7.0
 * [new tag]             1.7.1      -> 1.7.1
 * [new tag]             1.7.2      -> 1.7.2
 * [new tag]             1.7.3      -> 1.7.3
 * [new tag]             1.7.4      -> 1.7.4
 * [new tag]             1.7.5      -> 1.7.5
 * [new tag]             1.7.6      -> 1.7.6
 * [new tag]             1.7.7      -> 1.7.7
 * [new tag]             1.8.0      -> 1.8.0
 * [new tag]             1.8.1      -> 1.8.1
 * [new tag]             1.8.2      -> 1.8.2
 * [new tag]             1.8.3      -> 1.8.3
 * [new tag]             1.8.4      -> 1.8.4
 * [new tag]             1.8.5      -> 1.8.5
 * [new tag]             1.8.6      -> 1.8.6
HEAD is now at 7246ed368 Merge pull request #5457 from MikeMcQuaid/remove-travis-ci
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...
remote: Enumerating objects: 4891, done.
remote: Counting objects: 100% (4891/4891), done.
remote: Compressing objects: 100% (4695/4695), done.
remote: Total 4891 (delta 48), reused 304 (delta 4), pack-reused 0
Receiving objects: 100% (4891/4891), 4.02 MiB | 2.66 MiB/s, done.
Resolving deltas: 100% (48/48), done.
Tapped 2 commands and 4675 formulae (4,933 files, 12.5MB).
==> Migrating /Library/Caches/Homebrew to /Users/[ユーザ名hogehoge]/Library/Caches/Homebrew...
==> Deleting /Library/Caches/Homebrew...
Already up-to-date.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations
==> Next steps:
- Run `brew help` to get started
- Further documentation: 
    https://docs.brew.sh

なんか、インストールは成功したっぽい

念のため参考サイトに従い以下のコマンドを実行してみると問題なさそう

>brew doctor
Your system is ready to brew.

次はpython3をインストールしよう

2018年11月18日日曜日

とりあえずmacOS Mojaveにアップグレードしたものの


macOS High Sierraから

macOS Mojaveにアップグレードしたものの途中でAppleのID認証は失敗するは解析の共有選択画面でフリーズして結局、電源ボタンの長押しで強制再起動。

その後とりあえずMojaveとして起動したけれどこんなんでいいのかな。

最近のAppleはハードもソフト面でも品質もイマイチな感じでしかない。

2018年11月11日日曜日

初のMacOSせず

macOS使っていて初めてOSせず

「The macOS installation couldn't be completed」

某MSのOSでは何度も痛い目にあっているけれでmacOSでは初めてかも。

調べてみると意外に同じ事象になる人はいるみたいで、そのほとんどがOS再インストールで直るらしい(これはかなりうれいい)

自分の備忘録として


  1. command + rを押しながらOS再起動
  2. OSをインストール
OSのインストールをすると保存していた情報が気になったけれどフォーマットするわけではなくインストール後は今までと何もなかったように使えてうれしい。

macのアップデートも意外に危険なのかも、まぁこまめにTimeMachineバックアップしておけばそんなに心配にはならないのかな。