The basic principle of
Some items run arch-x86_64 command, at this stage without running x86_64 mode can not be used successfully
Without arch-x86_64, the gem and RVM should be properly configured
Install Homebrew
Then homebrew needs to be executed when it is installed
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Copy the code
However, github 443 May fail to connect to github or Timeout. If so, you can perform the domestic installation mode as follows
arch -x86_64 /bin/bash -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
Copy the code
That’s the end of installing BREW
Install Ruby
Find a list of
rvm list known
Copy the code
Find the latest, at this point I found 3.0.0 latest
Arch-x86_64 RVM install 3.0.0Copy the code
then
RVM use 3.0.0Copy the code
Install the ffi
You may need to install a gem ffI plugin, or you may get an error using Cocoapods
sudo arch -x86_64 gem install ffi
Copy the code
Install Cocoapods
sudo arch -x86_64 gem install -n /usr/local/bin cocoapods
Copy the code