Linuxbrew on IdeaPad Duet
apt で Ruby を入れた状態で Homebrew を入れようとすると
Error: No Homebrew ruby 2.6.3_2 available for aarch64 processors!
Error: Failed to install Homebrew Portable Ruby and cannot find another Ruby 2.6!
If there's no Homebrew Portable Ruby available for your processor:
- install Ruby 2.6 with your system package manager (or rbenv/ruby-build)
- make it first in your PATH
- try again
Failed during: /home/linuxbrew/.linuxbrew/bin/brew update --force
となる。apt で rbenv 入れてみたけど、 Arm の Ruby 2.6 はない模様
source から Ruby を install
code: sh
sudo apt install build-essential bison libffi-dev libgdbm-dev libgdbm-compat-dev\
libreadline-dev libssl-dev zlib1g-dev
tar xvzf ruby-2.6.6.tar.gz
./configure --prefix=$HOME/local
make -j7
make install
make j7 中の htop
https://gyazo.com/40c45d22192580d42c9a248f09c5a786
make は110秒くらいで終わった。
これでもう一度
code:sh
したらいけた。最新の Ruby 2.7 では失敗。
と思ったけど brew コマンドを実行するとやはり同じエラーが出る?
code: sh
mkdir ~/.linuxbrew/bin
ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin
eval $(~/.linuxbrew/bin/brew shellenv)