macOS Sonoma ソフトウェア導入記録

10.1 へのインストール記録はこちら
10.2 へのインストール記録はこちら
10.3 へのインストール記録はこちら
10.4 へのインストール記録はこちら
10.5 へのインストール記録はこちら
10.6 へのインストール記録はこちら
10.7 へのインストール記録はこちら
10.11 へのインストール記録はこちら
10.12 へのインストール記録はこちら
10.13 へのインストール記録はこちら
10.14 へのインストール記録はこちら
Monterey へのインストール記録はこちら
Ventura へのインストール記録はこちら

M2 Mac へインストールした記録です。

homebrew をインストール

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
sudo vi /etc/zprofile

eval "$(/opt/homebrew/bin/brew shellenv)"

を最後に追加

eval "$(/opt/homebrew/bin/brew shellenv)"

Xquartz

brew install xquartz

pyenv, pyenv-virturalenv

brew install pyenv
brew install pyenv-virtualenv

sudo mkdir /opt/pyenv
sudo chown admin /opt/pyenv
sudo chgrp admin /opt/pyenv
sudo vi /etc/zprofile

export PYENV_ROOT="/opt/pyenv"
export PATH="${PYENV_ROOT}/shims:${PATH}"
eval "$(pyenv init - --no-rehash)"
を追加。

export PYENV_ROOT="/opt/pyenv"
export PATH="${PYENV_ROOT}/shims:${PATH}"
eval "$(pyenv init -)"

tensor-flow, pytorch

python 3.11.6をインストールしようとしたら,The Python lzma extension was not compiled. の警告がでた。ここを参考に,
brew install sqlite3 xz zlib tcl-tk
CFLAGS="-I$(brew --prefix xz)/include" LDFLAGS="-L$(brew --prefix xz)/lib" pyenv install 3.11.6
pyenv virtualenv 3.11.6 mps        
pyenv global mps
pip3 install tensorflow-macos
pip3 install tensorflow-metal
pip3 install torch torchvision
pip3 install mecab-python3
pip3 install gensim 
pip3 install scikit-learn

MeCab

Mecabをインストールしたが,文字化けが起こった。入力した文章は文字化けしないので,辞書があやしいと思うが,utf8オプションをつけソースからインストールしなおした。(mecab-ipadic.rbにはutf8オプションついてるのに?)
env HOMEBREW_NO_INSTALL_FROM_API=1 brew edit mecab

system "./configure" で始まる3行にutf8オプションをつけ以下の4行に。

system "./configure", "--disable-dependency-tracking",
                          "--prefix=#{prefix}",
                          "--sysconfdir=#{etc}",
                          "--with-charset=utf8"

brew install --build-from-source --formula /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/m/mecab.rb
brew install --build-from-source --formula /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/m/mecab-ipadic.rb

Emacs-Mac

brew tap railwaycat/emacsmacport
brew install emacs-mac --with-modern-icon
osascript -e 'tell application "Finder" to make alias file to POSIX file "/opt/homebrew/opt/emacs-mac/Emacs.app" at POSIX file "/Applications"'

UDEV Gothic

brew tap homebrew/cask-fonts
brew install font-udev-gothic-nf

evince

brew install evince

syntax-highlight

brew install --cask syntax-highlight

MacTeX

brew install --cask mactex
sudo tlmgr update --self --all
sudo tlmgr paper a4

tgif

brew install tgif
ここからソースとパッチを取ってくる。
tar xzvf tgif-QPL-4.2.5.tar.gz
cd tgif-QPL-4.2.5
gzcat ../tgif-QPL-4.2-patch5a.gz | patch -b -p0
gzcat ../tgif-QPL-4.2-patch5b.gz | patch -b -p0
./configure
vi wb.c
# 26行目に #include <pthread.h> を挿入
make
chmod +w /opt/homebrew/Cellar/tgif/4.2.5_1/bin/tgif
cp tgif /opt/homebrew/Cellar/tgif/4.2.5_1/bin/tgif

cd /opt/X11/share/X11/app-defaults
sudo cp /opt/homebrew/Cellar/tgif/4.2.5_1/lib/X11/tgif/tgif.Xdefaults Tgif
sudo vi Tgif
# 382~401行,427行をコメントアウト

Gnuplot

brew install gnuplot

ghostscript with x11

brew uninstall ghostscript --ignore-dependencies
brew install libxaw3d
env HOMEBREW_NO_INSTALL_FROM_API=1 brew edit ghostscript

depends_on で始まる行の後に,

    depends_on "libx11"

を追加。

                      "--without-x"

という 1 行を次の 4 行

                      "--with-x",
                      "--with-drivers=FILES,X11",
                      "--x-includes=/opt/X11/include",
                      "--x-libraries=/opt/X11/lib"

に差し替えて,その後

brew install --build-from-source --formula /opt/homebrew/Library/Taps/homebrew/homebrew-core/Formula/g/ghostscript.rb

Gimp

brew install gimp