Life is fun and easy!
不正IP報告数
Okan Sensor
ページへ戻る
印刷
HomeBrew/install/MacOSX10.14.4Mojave
をテンプレートにして作成 ::
UJP
tech_regist2
:HomeBrew/install/MacOSX10.14.4Mojave をテンプレートにして作成
開始行:
*HomeBrewをMacOS X 10.14.4 Mojavaにインストール
**はじめに
Yosemite以降,High Sierraまでは同じ手順でインストールが...
この記事では,そのエラーも体験しながら,エラーを解決し...
**バージョンの確認.
これからインストールを行う対象のマシンのOSバージョンを...
MBA2013:Users ujpadmin$ sw_vers🆑
ProductName: Mac OS X
ProductVersion: 10.14.4
BuildVersion: 18E227
MBA2013:Users ujpadmin$
macos 10.14なので,通称mojaveというもの.
Xcodeは,あらかじめApp Storeからインストール済み.
MBA2013:Users ujpadmin$ xcodebuild -version🆑
Xcode 10.2.1
Build version 10E1001
MBA2013:Users ujpadmin$
現時点(2019/06/06)で最新版.
**HomeBrewをインストールする(失敗する)
いつものように公式サイトに記載されている通りに,rubyを...
MBA2013:Users ujpadmin$ /usr/bin/ruby -e "$(curl -fsSL h...
==> 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 Xcode Command Line Tools will be installed.
Press RETURN to continue or any other key to abort
インストールを続けるので,リターンキーを押下.
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.Comm...
Password:
Macの開発環境であるXcodeのコマンドラインツールをインス...
==> Installing the Command Line Tools (expect a GUI popu...
==> /usr/bin/sudo /usr/bin/xcode-select --install
xcode-select: note: install requested for command line d...
Press any key when the installation has completed.
何かキーを押すことで,インストールが始まるというので,...
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Librar...
xcode-select: error: invalid developer directory '/Libra...
Failed during: /usr/bin/sudo /usr/bin/xcode-select --swi...
MBA2013:Users ujpadmin$
エラーがでて失敗.invalid developer directory となって...
コマンドラインで,デベロッパ用のディレクトリを確認.
MBA2013:Users ujpadmin$ /usr/bin/xcode-select -p
/Applications/Xcode.app/Contents/Developer
MBA2013:Users ujpadmin$
ディレクトリが異なる模様.
**Xcodeをスイッチする
Xcodeのインストールディレクトリが変更された?ようなので...
MBA2013:Users ujpadmin$ sudo xcode-select -switch /Appli...
Password:
MBA2013:Users ujpadmin$
切り替えられたことを確認.
MBA2013:Users ujpadmin$ xcode-select -p🆑
/Applications/Xcode.app/Contents/Developer
MBA2013:Users ujpadmin$
再度,HomeBrewのインストールを行う.
MBA2013:Users ujpadmin$ /usr/bin/ruby -e "$(curl -fsSL h...
==> 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 Xcode Command Line Tools will be installed.
Press RETURN to continue or any other key to abort
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.Comm...
==> Installing the Command Line Tools (expect a GUI popu...
==> /usr/bin/sudo /usr/bin/xcode-select --install
xcode-select: note: install requested for command line d...
Press any key when the installation has completed.
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Librar...
xcode-select: error: invalid developer directory '/Libra...
Failed during: /usr/bin/sudo /usr/bin/xcode-select --swi...
MBA2013:Users ujpadmin$
残念.エラーは変わらず.これは,インストーラがパスをハ...
以下のURLにあるスクリプトを確認して見ると...
https://raw.githubusercontent.com/Homebrew/install/maste...
いたるところに/Library/Developer/CommandLineToolsにスイ...
インストーラを修正するのは恒久的なことを考えたら影響が...
**/Library/Developer/CommandLineToolsのシンボリックリンク...
問題は/Library/Developer/CommandLineToolsがないことなの...
まずは,現在の上位ディレクトリの確認.
MBA2013:Users ujpadmin$ ls -la /Library/Developer🆑
total 0
drwxr-xr-x 3 root admin 96 2 28 11:36 .
drwxr-xr-x+ 63 root wheel 2016 6 4 18:53 ..
drwxr-xr-x 4 root admin 128 3 13 11:53 PrivateFram...
MBA2013:Users ujpadmin$
ここに,CommandLineToolsのリンクを作成する.
MBA2013:Users ujpadmin$ sudo ln -s /Applications/Xcode.a...
MBA2013:Users ujpadmin$
リンクが作成されたか確認する.
MBA2013:Users ujpadmin$ ls -la /Library/Developer🆑
total 0
drwxr-xr-x 4 root admin 128 6 6 11:49 .
drwxr-xr-x+ 63 root wheel 2016 6 4 18:53 ..
lrwxr-xr-x 1 root admin 42 6 6 11:49 CommandLine...
drwxr-xr-x 4 root admin 128 3 13 11:53 PrivateFram...
MBA2013:Users ujpadmin$
これで,再度インストールを行う.
**HomeBrewをインストールする()
MBA2013:Users ujpadmin$ /usr/bin/ruby -e "$(curl -fsSL h...
==> 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
Press RETURN to continue or any other key to abort🆑
==> Downloading and installing Homebrew...
remote: Enumerating objects: 54, done.
remote: Counting objects: 100% (54/54), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 124174 (delta 18), reused 45 (delta 17), p...
Receiving objects: 100% (124174/124174), 29.34 MiB | 1.1...
Resolving deltas: 100% (90987/90987), 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] 2.1.3 -> 2.1.3
* [new tag] 2.1.4 -> 2.1.4
HEAD is now at 80230eccf Merge pull request #6210 from l...
==> Homebrew is run entirely by unpaid volunteers. Pleas...
https://github.com/Homebrew/brew#donations
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/...
remote: Enumerating objects: 5001, done.
remote: Counting objects: 100% (5001/5001), done.
remote: Compressing objects: 100% (4792/4792), done.
remote: Total 5001 (delta 51), reused 796 (delta 16), pa...
Receiving objects: 100% (5001/5001), 4.01 MiB | 1.08 MiB...
Resolving deltas: 100% (51/51), done.
Checking out files: 100% (5018/5018), done.
Tapped 2 commands and 4787 formulae (5,043 files, 12.5MB).
Already up-to-date.
==> Installation successful!🆑
==> Homebrew has enabled anonymous aggregate formulae an...
Read the analytics documentation (and how to opt-out) he...
https://docs.brew.sh/Analytics
==> Homebrew is run entirely by unpaid volunteers. Pleas...
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh
MBA2013:Users ujpadmin$
**インストール後の確認処理
brew doctorコマンドで,インストールに問題なかったか確認.
MBA2013:Users ujpadmin$ brew doctor🆑
Your system is ready to brew.
MBA2013:Users ujpadmin$
問題ない模様.
MBA2013:Users ujpadmin$ brew --config🆑
HOMEBREW_VERSION: 2.1.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: d5a90f6f4af0a8e3d0ff1d806fb65e1b3bdbbe42
Last commit: 10 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: c58dce188e274656041f0dd72aca59a8a968248d
Core tap last commit: 6 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby....
Clang: 10.0 build 1001
Git: 2.20.1 => /Applications/Xcode.app/Contents/Develope...
Curl: 7.54.0 => /usr/bin/curl
macOS: 10.14.4-x86_64
CLT: N/A
Xcode: 10.2.1
MBA2013:Users ujpadmin$
問題ないかどうかは,わからんな.
終了行:
*HomeBrewをMacOS X 10.14.4 Mojavaにインストール
**はじめに
Yosemite以降,High Sierraまでは同じ手順でインストールが...
この記事では,そのエラーも体験しながら,エラーを解決し...
**バージョンの確認.
これからインストールを行う対象のマシンのOSバージョンを...
MBA2013:Users ujpadmin$ sw_vers🆑
ProductName: Mac OS X
ProductVersion: 10.14.4
BuildVersion: 18E227
MBA2013:Users ujpadmin$
macos 10.14なので,通称mojaveというもの.
Xcodeは,あらかじめApp Storeからインストール済み.
MBA2013:Users ujpadmin$ xcodebuild -version🆑
Xcode 10.2.1
Build version 10E1001
MBA2013:Users ujpadmin$
現時点(2019/06/06)で最新版.
**HomeBrewをインストールする(失敗する)
いつものように公式サイトに記載されている通りに,rubyを...
MBA2013:Users ujpadmin$ /usr/bin/ruby -e "$(curl -fsSL h...
==> 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 Xcode Command Line Tools will be installed.
Press RETURN to continue or any other key to abort
インストールを続けるので,リターンキーを押下.
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.Comm...
Password:
Macの開発環境であるXcodeのコマンドラインツールをインス...
==> Installing the Command Line Tools (expect a GUI popu...
==> /usr/bin/sudo /usr/bin/xcode-select --install
xcode-select: note: install requested for command line d...
Press any key when the installation has completed.
何かキーを押すことで,インストールが始まるというので,...
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Librar...
xcode-select: error: invalid developer directory '/Libra...
Failed during: /usr/bin/sudo /usr/bin/xcode-select --swi...
MBA2013:Users ujpadmin$
エラーがでて失敗.invalid developer directory となって...
コマンドラインで,デベロッパ用のディレクトリを確認.
MBA2013:Users ujpadmin$ /usr/bin/xcode-select -p
/Applications/Xcode.app/Contents/Developer
MBA2013:Users ujpadmin$
ディレクトリが異なる模様.
**Xcodeをスイッチする
Xcodeのインストールディレクトリが変更された?ようなので...
MBA2013:Users ujpadmin$ sudo xcode-select -switch /Appli...
Password:
MBA2013:Users ujpadmin$
切り替えられたことを確認.
MBA2013:Users ujpadmin$ xcode-select -p🆑
/Applications/Xcode.app/Contents/Developer
MBA2013:Users ujpadmin$
再度,HomeBrewのインストールを行う.
MBA2013:Users ujpadmin$ /usr/bin/ruby -e "$(curl -fsSL h...
==> 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 Xcode Command Line Tools will be installed.
Press RETURN to continue or any other key to abort
==> Searching online for the Command Line Tools
==> /usr/bin/sudo /usr/bin/touch /tmp/.com.apple.dt.Comm...
==> Installing the Command Line Tools (expect a GUI popu...
==> /usr/bin/sudo /usr/bin/xcode-select --install
xcode-select: note: install requested for command line d...
Press any key when the installation has completed.
==> /usr/bin/sudo /usr/bin/xcode-select --switch /Librar...
xcode-select: error: invalid developer directory '/Libra...
Failed during: /usr/bin/sudo /usr/bin/xcode-select --swi...
MBA2013:Users ujpadmin$
残念.エラーは変わらず.これは,インストーラがパスをハ...
以下のURLにあるスクリプトを確認して見ると...
https://raw.githubusercontent.com/Homebrew/install/maste...
いたるところに/Library/Developer/CommandLineToolsにスイ...
インストーラを修正するのは恒久的なことを考えたら影響が...
**/Library/Developer/CommandLineToolsのシンボリックリンク...
問題は/Library/Developer/CommandLineToolsがないことなの...
まずは,現在の上位ディレクトリの確認.
MBA2013:Users ujpadmin$ ls -la /Library/Developer🆑
total 0
drwxr-xr-x 3 root admin 96 2 28 11:36 .
drwxr-xr-x+ 63 root wheel 2016 6 4 18:53 ..
drwxr-xr-x 4 root admin 128 3 13 11:53 PrivateFram...
MBA2013:Users ujpadmin$
ここに,CommandLineToolsのリンクを作成する.
MBA2013:Users ujpadmin$ sudo ln -s /Applications/Xcode.a...
MBA2013:Users ujpadmin$
リンクが作成されたか確認する.
MBA2013:Users ujpadmin$ ls -la /Library/Developer🆑
total 0
drwxr-xr-x 4 root admin 128 6 6 11:49 .
drwxr-xr-x+ 63 root wheel 2016 6 4 18:53 ..
lrwxr-xr-x 1 root admin 42 6 6 11:49 CommandLine...
drwxr-xr-x 4 root admin 128 3 13 11:53 PrivateFram...
MBA2013:Users ujpadmin$
これで,再度インストールを行う.
**HomeBrewをインストールする()
MBA2013:Users ujpadmin$ /usr/bin/ruby -e "$(curl -fsSL h...
==> 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
Press RETURN to continue or any other key to abort🆑
==> Downloading and installing Homebrew...
remote: Enumerating objects: 54, done.
remote: Counting objects: 100% (54/54), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 124174 (delta 18), reused 45 (delta 17), p...
Receiving objects: 100% (124174/124174), 29.34 MiB | 1.1...
Resolving deltas: 100% (90987/90987), 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] 2.1.3 -> 2.1.3
* [new tag] 2.1.4 -> 2.1.4
HEAD is now at 80230eccf Merge pull request #6210 from l...
==> Homebrew is run entirely by unpaid volunteers. Pleas...
https://github.com/Homebrew/brew#donations
==> Tapping homebrew/core
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/...
remote: Enumerating objects: 5001, done.
remote: Counting objects: 100% (5001/5001), done.
remote: Compressing objects: 100% (4792/4792), done.
remote: Total 5001 (delta 51), reused 796 (delta 16), pa...
Receiving objects: 100% (5001/5001), 4.01 MiB | 1.08 MiB...
Resolving deltas: 100% (51/51), done.
Checking out files: 100% (5018/5018), done.
Tapped 2 commands and 4787 formulae (5,043 files, 12.5MB).
Already up-to-date.
==> Installation successful!🆑
==> Homebrew has enabled anonymous aggregate formulae an...
Read the analytics documentation (and how to opt-out) he...
https://docs.brew.sh/Analytics
==> Homebrew is run entirely by unpaid volunteers. Pleas...
https://github.com/Homebrew/brew#donations
==> Next steps:
- Run `brew help` to get started
- Further documentation:
https://docs.brew.sh
MBA2013:Users ujpadmin$
**インストール後の確認処理
brew doctorコマンドで,インストールに問題なかったか確認.
MBA2013:Users ujpadmin$ brew doctor🆑
Your system is ready to brew.
MBA2013:Users ujpadmin$
問題ない模様.
MBA2013:Users ujpadmin$ brew --config🆑
HOMEBREW_VERSION: 2.1.4
ORIGIN: https://github.com/Homebrew/brew
HEAD: d5a90f6f4af0a8e3d0ff1d806fb65e1b3bdbbe42
Last commit: 10 days ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: c58dce188e274656041f0dd72aca59a8a968248d
Core tap last commit: 6 hours ago
HOMEBREW_PREFIX: /usr/local
CPU: quad-core 64-bit haswell
Homebrew Ruby: 2.3.7 => /System/Library/Frameworks/Ruby....
Clang: 10.0 build 1001
Git: 2.20.1 => /Applications/Xcode.app/Contents/Develope...
Curl: 7.54.0 => /usr/bin/curl
macOS: 10.14.4-x86_64
CLT: N/A
Xcode: 10.2.1
MBA2013:Users ujpadmin$
問題ないかどうかは,わからんな.
ページ名: