gikoha’s blog

個人的メモがわり

intelしかないhomebrew bottleのインストール方法

 

intelしかないhomebrew bottleのインストール方法

  • M1 MacBookPro に pandoc が使いたくてインストールしようとする
% brew install pandoc

Error: pandoc: no bottle available!
You can try to install from source with:
brew install --build-from-source pandoc
  • でもビルドは失敗するのでやらない

  • /usr/local/binbrewintel版なので

% /usr/local/bin/brew install pandoc
  • と明示的にパス指定するとintel版pandocがインストール可能
  • ただ一度permissionで怒られるので
Error: The following directories are not writable by your user:
/usr/local/lib/pkgconfig
/usr/local/share/info
/usr/local/share/man/man3
/usr/local/share/man/man5

You should change the ownership of these directories to your user.
  sudo chown -R $(whoami) /usr/local/lib/pkgconfig /usr/local/share/info /usr/local/share/man/man3 /usr/local/share/man/man5

And make sure that your user has write permission.
  chmod u+w /usr/local/lib/pkgconfig /usr/local/share/info /usr/local/share/man/man3 /usr/local/share/man/man5
  • 上記指示通りにbashで入れると書き込み可能となり、intel版がインストールされた

  • 初回起動時にはちょっと間が開く(Rosetta2によるバイナリトランスレート)が、2回目からは高速起動する