0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

macOS Sequoia 15.6 環境に CLI で Ollama をインストールしてみた

Last updated at Posted at 2025-08-23

macOS Sequoia 15.6 環境に CLI で Ollama をインストールする手順を示します。

インストール環境であるMacのバージョンを確認します。

スクリーンショット_2025-08-23_21_02_02.png

% sw_vers 
ProductName:		macOS
ProductVersion:		15.6
BuildVersion:		24G84

Ollamaのwebサイトからdmgファイルをダウンロードします。

% cd ~/Downloads
% curl -sLO https://ollama.com/download/Ollama.dmg

ファイルがダウンロードされたことを確認します。

% ls -l ~/Downloads/Ollama.dmg 
-rw-r--r--  1 User  staff  47683041  8 23 20:53 /Users/User/Downloads/Ollama.dmg

Ollama.dmg をマウントします。

% hdiutil mount ~/Downloads/Ollama.dmg
Protective Master Boot Record (MBR : 0)のチェックサムを計算中…
Protective Master Boot Record (MBR :: 検証済み CRC32 $BC9C9F28
GPT Header (Primary GPT Header : 1)のチェックサムを計算中…
 GPT Header (Primary GPT Header : 1): 検証済み CRC32 $23573E61
GPT Partition Data (Primary GPT Table : 2)のチェックサムを計算中…
GPT Partition Data (Primary GPT Tabl: 検証済み CRC32 $356F4E5A
 (Apple_Free : 3)のチェックサムを計算中…
                    (Apple_Free : 3): 検証済み CRC32 $00000000
disk image (Apple_HFS : 4)のチェックサムを計算中…
..................................................................................................
          disk image (Apple_HFS : 4): 検証済み CRC32 $E4AFC87A
 (Apple_Free : 5)のチェックサムを計算中…
                    (Apple_Free : 5): 検証済み CRC32 $00000000
GPT Partition Data (Backup GPT Table : 6)のチェックサムを計算中…
GPT Partition Data (Backup GPT Table: 検証済み CRC32 $356F4E5A
GPT Header (Backup GPT Header : 7)のチェックサムを計算中…
  GPT Header (Backup GPT Header : 7): 検証済み CRC32 $7E00AA99
検証済み CRC32 $213E50DC
/dev/disk4          	GUID_partition_scheme          	
/dev/disk4s1        	Apple_HFS                      	/Volumes/Ollama

マウントされていることを確認します。

% df |grep Ollama
/dev/disk4s1       301056    240704     60352    80%      50 4294967229    0%   /Volumes/Ollama

Ollama をインストールします。

% cp -R /Volumes/Ollama/Ollama.app /Applications/

/Volumes/Ollama をアンマウントします。

% hdiutil unmount /Volumes/Ollama
"/Volumes/Ollama" unmounted successfully.

「アプリケーション」内に Ollama が存在していることを確認します。

スクリーンショット 2025-08-23 21.15.23.png

Ollama を起動します。(デフォルトで「gpt-oss:20b」が選択されているようです)

image.png

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

スクリーンショット 2025-08-23 21.42.14.png


コマンドラインでも実行したいと思っていましたが、このように実行できない状態でした。

% ollama --version
zsh: command not found: ollama

ダウンロードしたMac版ではデスクトップアプリしか提供されていないのかと思いましたが、何度かPCの再起動を行うと急にこのウィンドウが表示されパスワード入力を求められました。

スクリーンショット_2025-08-24_11_35_56.png

上記ウィンドウでパスワード入力後は無事にコマンドラインでも利用可能になったようです。

% ollama --version
ollama version is 0.11.6
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?