Older versions of OS X are mostly compatible so follow along as far as you can and then Google search for any problems you run into.
There are plenty of people who have documented solutions for them. Homebrew allows us to install and compile software packages easily from source. When it asks you to install XCode Command Line Tools, say yes.
If you're confused about which gemset you're currently working with, this command will print the current active gemset: You can see what RVM will use if you do not give it specific directions to do otherwise. You may have to accept the configuration the first time you enter the directory.
We will be setting up a Ruby on Rails development environment on mac OS 10.12 Sierra.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
If you're new to databases, I'd suggest skipping to setting up Postgre SQL.
You can install My SQL server and client from Homebrew: # To have launchd start postgresql at login: ln -sfv /usr/local/opt/postgresql/*plist ~/Library/Launch Agents # Then to load postgresql now: launchctl load ~/Library/Launch Agents/postgresql.plistrails new myapp #### If you want to use My SQL rails new myapp -d mysql #### If you want to use Postgres # Note you will need to change config/database.yml's username to be # the same as your OSX user account.
Heroku recommends you run the latest Ruby version your app can handle. This is handy if you are running your app through a continuous integration tool and want to ensure it checks your codebase against other versions of Ruby, but restrict it to a certain version when deployed to Heroku.
Ruby 2.2.4 is not the latest Ruby version, and is here for demonstration purposes only. We recommend limiting use of environment variables in your and we do not recommend using conditionals.
This article walks you through how to manually install RVM as well as a custom version of Ruby and/or Rails.