システムシェルをBashに変更します。
MacOSの新しいバージョンでは、デフォルトシェルとしてzshが搭載されています。Bashに変更する必要があります。
- あなたのマシンに接続し、デフォルトのシェルを確認してください:
echo $SHELL - 結果が
/bin/bashでない場合は、シェルを変更してください:chsh -s /bin/bash - パスワードを入力してください。
- ターミナルを再起動するか、SSHで再接続します。
echo $SHELLをもう一度実行してください。結果は/bin/bashになるはずです。
Homebrew、rbenv のインストール
Runner はマシンに接続してジョブを実行するために特定の環境オプションが必要です。
Homebrewパッケージマネージャーをインストール。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
バージョン確認
brew -v
正しい構成になっているかを確認
brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: /usr/bin occurs before /opt/homebrew/bin in your PATH.
This means that system-provided programs will be used instead of those
provided by Homebrew. Consider setting your PATH so that
/opt/homebrew/bin occurs before /usr/bin. Here is a one-liner:
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.profile
The following tools exist at both paths:
openssl
tidy
Warning: Homebrew's "sbin" was not found in your PATH but you have installed
formulae that put executables in /opt/homebrew/sbin.
Consider setting your PATH for example like so:
echo 'export PATH="/opt/homebrew/sbin:$PATH"' >> ~/.profile
パスを追加
# パスを追加
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
echo 'export PATH="/opt/homebrew/sbin:$PATH"' >> ~/.zshrc
# 設定の反映
source ~/.zshrc
Your system is ready to brew. という表示したら、パスの追加は完了。
Xcodeのインストール
Xcodeのインストールと設定を行います。
1. 以下のいずれかの場所に行き、Xcodeをインストール
- Apple App Store。
- Apple開発者ポータル。
xcode-install.このプロジェクトは、Appleの様々な依存関係をコマンドラインから簡単にダウンロードできるようにすることを目的としています。
2. ライセンスに同意し、推奨される追加コンポーネントをインストールしてください。Xcodeを開いてプロンプトに従うか、ターミナルで以下のコマンドを実行することでこれを行うことができます
sudo xcodebuild -runFirstLaunch
3. Xcode がビルド中に適切なコマンドラインツールをロードするように、アクティブな開発者ディレクトリを更新
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer


コメント