

In this step we have to login or configure the github account to make sure you have a github account.įor configurg the git you are using the following commands:. We have to login our github account details. Now we are going to use the version control system for this process. # Add rbenv to bash so that it loads every time you open a terminalĮcho 'if which rbenv > /dev/null then eval "$(rbenv init -)" fi' > ~/.zshrc Īfter the rbenv install we have to select the Ruby version to install.įor installation, run the following commands in your terminal. This manages multiple versions of our ruby. It is simple to understand and lightweight to install. Rbenv:- It is a tool which is used to install the ruby or control the multiple versions in our system side by side. We are going to install the rbenv to manage the ruby version. In this phase, we install Ruby in our system. Now in our machine ‘homebrew’ had installed and now lets us start the further process. Open terminal and write the following commands: ruby -e "$(curl -fsSL )" Installing Ruby In this process it said to install the Xcode or command-line tools then says yes. Homebrew has some easy scripts to install.
RUBY INSTALL FOR MAC SOFTWARE
Homebrew is used to compile and install the software packages. To install Ruby on macOS we need to install Homebrew. įor both the new versions of macOS and the older version of macOS. And for the new users we use the POSTGRESQL. These database are MySQL for those people which having some experience in this. Install Ruby and configured the git also and then we install the Rails and then we installed the database. This is the easiest method to install the ruby on rails on macOS. In this article we will see installation of Ruby on Rails for newer versions of mac and older versions of mac. There are plenty of people who have documented solutions for them. Older versions of OS are mostly compatible for followed along as far as you can and then Google search for any problems you run into. We will be setting up a Ruby on Rails development environment on macOS 11.
