{"id":11996,"date":"2022-03-09T04:44:55","date_gmt":"2022-03-09T09:44:55","guid":{"rendered":"http:\/\/local.brightwhiz\/?post_type=snippets&p=11996"},"modified":"2022-03-09T04:44:57","modified_gmt":"2022-03-09T09:44:57","slug":"how-to-install-ruby-and-rails-on-mac","status":"publish","type":"snippets","link":"http:\/\/local.brightwhiz\/snippets\/how-to-install-ruby-and-rails-on-mac\/","title":{"rendered":"How to Install Ruby and Rails on Mac"},"content":{"rendered":"\n
Do this to install Ruby and Rails on mac.<\/p>\n\n\n\n
$ brew install rbenv ruby-build\n\n# Add rbenv to bash so that it loads every time you open a terminal\n$ echo 'if which rbenv > \/dev\/null; then eval "$(rbenv init -)"; fi' >> ~\/.zshrc\n\n$ source ~\/.zshrc\n\n# Install Ruby\n$ rbenv install 3.1.0\n\n$ rbenv global 3.1.0\n\n$ ruby -v<\/code><\/pre>\n","protected":false},"comment_status":"open","ping_status":"closed","template":"","meta":[],"categories":[953,25,27,15,28,16,18],"tags":[954,350,981,982,544,591],"yoast_head":"\nHow to Install Ruby and Rails on Mac [Snippet]<\/title>\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\n