![]() ![]() That means M1 Macs come with Ruby version 2.6 installed. The -v option tells the Ruby CLI to return the version of the Ruby installation to us.įor Mac M1, it returns the following: ruby 2.6.10p210 ( revision 67958) Here, we’re invoking the Ruby CLI and passing the option -v to it. ![]() Now let’s see which version of Ruby we have installed by typing in the following command: ruby -v If Ruby isn’t installed or available to us, the which command will let us know it couldn’t find Ruby. We passed Ruby as an argument, so the command is finding the Ruby executable location. The which command allows us to see where on the computer an executable file lives. We can see that by typing some commands into our terminal. Did you know that a version of Ruby comes installed on your Mac by default? When you open a terminal (assuming zero configuration), you start at your home directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |