MacinCloud Managed Servers with the Apple Silicon Chip with Homebrew's Ruby. It is important to note that when you are using Ruby on Managed Server plan with Silicon Chip, you may use a version of Ruby already installed through Homebrew. The path for Ruby installed through Homebrew is:
/opt/homebrew/opt/ruby/bin
The default Mac system Ruby version preinstalled within the system is located at:
/usr/bin/ruby
If you need to have ruby first in your PATH, run:
echo 'export PATH="/opt/homebrew/opt/ruby/bin:$PATH"' >> ~/.zshrc
For compilors to find ruby, you may need to set:
export LDFLAGS="-L/opt/homebrew/opt/ruby/lib" export CPPFLAGS="-I/opt/homebrew/opt/ruby/include"
How to check the Ruby versions installed on your server:
To check the system default ruby location, run command in the Terminal app:
which ruby
To check system defaul ruby version:
ruby -v
To check Homebrew ruby version:
/opt/homebrew/opt/ruby/bin/ruby -v
Interested in MacinCloud Managed Servers?
Visit the Managed Server Plan page to obtain a Managed server.
Do you require full root/admin privileges on a MacinCloud Server?
Find out more about MacinCloud Dedicated Server Plans.