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/bin
のbrew
はintel版なので
% /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