The which command allows us to see where on the computer an executable file lives. Did you know that a version of Ruby comes installed on your Mac by default? We can see that by typing some commands into our terminal. When you open a terminal (assuming zero configuration), you start at your home directory. Type terminal into the spotlight search.This brings up the macOS spotlight search, a search utility for opening apps on your Mac. You can quickly open the terminal by doing the following: The terminal application on macOS is an operating system command line interface (CLI) that comes installed on new Macs. TLDR-Run these commands from the terminal /usr/bin/ruby -e "$(curl -fsSL )"Įcho 'export PATH="/usr/local/opt/ruby/bin:$PATH"' > ~/.bash_profile 15 minutes (or just a few if you only need the commands).Administrator privileges (you should have this if you’re working on a personal device).Use the package manager to install Ruby.So let’s find out how easy it is to get up and running! What we’re going to do Ruby is known for being easy to learn and fun to use. While Ruby is used quite frequently for web development, it’s also popular as a scripting language. Created in 1996 by Yukihiro Matsumoto, Ruby became really popular in the late 2000s with the introduction of the Ruby on Rails web framework. Ruby is an open-source programming language with a strong developer focus.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |