10.1 へのインストール記録はこちら
10.2 へのインストール記録はこちら
10.3 へのインストール記録はこちら
10.4 へのインストール記録はこちら
10.5 へのインストール記録はこちら
10.6 へのインストール記録はこちら
10.7 へのインストール記録はこちら
10.11 へのインストール記録はこちら
10.12 へのインストール記録はこちら
10.13 へのインストール記録はこちら
10.14 へのインストール記録はこちら
Monterey へのインストール記録はこちら
基本 M1 Mac へインストールした記録ですが,Intel Mac のものも混じっています。
/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)"
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 -)"
pyenv install 3.9.15 pyenv virtualenv 3.9.15 tensorflow pyenv global tensorflow pip3 install tensorflow-macos pip3 install tensorflow-metal
/Users/<ユーザ>/Library/Python/3.9/bin をパスに追加 pyenv virtualenv 3.9.15 pytorch pyenv global pytorch pip3 install torch torchvision
brew install nkf
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"'
brew install evince
/System/Library/QuickLook
Illustrator.qlgenerator
/Library/QuickLook
cd /Library/QuickLook/Illustrator.qlgenerator/Contents vi Info.plist 次の行を探し, <string>com.adobe.illustrator.ai-image</string> そのすぐ下の行に, <string>com.adobe.encapsulated-postscript</string> を追加して保存(上の行とインデントも同じになるよう注意)。
これで,EPSファイルをQuickLookできるようになりました。
env HOMEBREW_NO_INSTALL_FROM_API=1 brew update(これは要らなかったかもしれませんが…)
brew uninstall ghostscript --ignore-dependencies brew install libxaw3d 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" に差し替え --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 /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/ghostscript.rb上の環境変数を使って,env HOMEBREW_NO_INSTALL_FROM_API=1 brew install ghostscript でも良かったのかも
Can't find (or can't open) font file Ryumin-Light-EUC-Hというエラーがでました。対策を探しながらよくわからないまま,MacTeXで入った原ノ味フォントを利用し(参照),昔のようにRyumin-Light-EUC-Hとして使えるように。
#!/bin/sh NENDO=2022 VERSION=10.01.1 cd /usr/local/share/ghostscript/${VERSION}/Resource/CIDFont echo part 1 SRC1=/usr/local/texlive/${NENDO}/texmf-dist/fonts/opentype/public/haranoaji for i in HaranoAjiGothic-Bold HaranoAjiMincho-Bold HaranoAjiGothic-Heavy \ HaranoAjiMincho-Light HaranoAjiGothic-Medium HaranoAjiMincho-Regular \ HaranoAjiGothic-Regular do ln -s ${SRC1}/$i.otf $i done SRC2=/usr/local/texlive/${NENDO}/texmf-dist/fonts/opentype/public/haranoaji-extra echo part 2 for i in HaranoAjiGothic-ExtraLight HaranoAjiMincho-Heavy \ HaranoAjiGothic-Light HaranoAjiMincho-Medium HaranoAjiGothic-Normal \ HaranoAjiMincho-SemiBold HaranoAjiMincho-ExtraLight do ln -s ${SRC2}/$i.otf $i done #ls -l file *同様に,以下を alias-haranoaji.sh として保存して,実行
#!/bin/sh VERSION=10.01.1 cat << EOF > /usr/local/share/ghostscript/${VERSION}/Resource/Font/Ryumin-Light-H %!PS-Adobe-3.0 Resource-Font %%DocumentNeededResources: H (CMap) %%IncludeResource: H (CMap) %%BeginResource: Font (Ryumin-Light-H) (Ryumin-Light-H) (H) /CMap findresource [(HaranoAjiMincho-Medium) /CIDFont findresource] composefont pop %%EndResource %%EOF EOF cat << EOF > /usr/local/share/ghostscript/${VERSION}/Resource/Font/Ryumin-Light-EUC-H %!PS-Adobe-3.0 Resource-Font %%DocumentNeededResources: EUC-H (CMap) %%IncludeResource: EUC-H (CMap) %%BeginResource: Font (Ryumin-Light-EUC-H) (Ryumin-Light-EUC-H) (EUC-H) /CMap findresource [(HaranoAjiMincho-Medium) /CIDFont findresource] composefont pop %%EndResource %%EOF EOF cat << EOF > /usr/local/share/ghostscript/${VERSION}/Resource/Font/GothicBBB-Medium-H %!PS-Adobe-3.0 Resource-Font %%DocumentNeededResources: H (CMap) %%IncludeResource: H (CMap) %%BeginResource: Font (GothicBBB-Medium-H) (GothicBBB-Medium-H) (H) /CMap findresource [(HaranoAjiGothic-Medium) /CIDFont findresource] composefont pop %%EndResource %%EOF EOF cat << EOF > /usr/local/share/ghostscript/${VERSION}/Resource/Font/GothicBBB-Medium-EUC-H %!PS-Adobe-3.0 Resource-Font %%DocumentNeededResources: EUC-H (CMap) %%IncludeResource: EUC-H (CMap) %%BeginResource: Font (GothicBBB-Medium-EUC-H) (GothicBBB-Medium-EUC-H) (EUC-H) /CMap findresource [(HaranoAjiGothic-Medium) /CIDFont findresource] composefont pop %%EndResource %%EOF EOF
brew install --cask syntax-highlight