Sublime Text is neither free nor open source (it will ask you, but not require you, to purchase a license). If you don't have a preference, this is the option we recommend.Īnother great editor that works similarly to VSCode is Sublime Text. Its popularity is growing rapidly in the developer community. Most surprisingly, perhaps, is that it comes from Microsoft. It's a highly polished product that is both pleasant to look at and pleasant to use. However, if you do not have a preferred code editor, we recommend using Visual Studio Code (also known as VSCode). If you already have a favorite code editor (e.g., Vim, TextMate, Emacs, Notepad++, etc.) you can use it to work through this book. A code editor is used to create plain text documents with no styling or formatting. You'll be using a code editor to write code. You may have to restart your terminal, or update your PATH if you continue to have problems. Next, use which ruby to make sure you are not using /usr/bin/ruby - that is the system Ruby and usually not the one you want. We also recommend installing DevKit from the same site.īefore you move on, use the ruby -v command in your terminal to determine that you're using the expected version of Ruby. If you are on a Windows machine, we recommend using RubyInstaller to install Ruby. Then run brew install Update PATH (substituting your username for USERNAME) echo 'export > /Users/USERNAME/.bash_profile.Install homebrew by following this link.We recommend installing one of the Ruby 2.7 versions for best results in this book. If you are a Mac user, that leaves you with one choice: install with Homebrew. Building from source is also not a good idea for beginners. Don't use rvm or rbenv if you aren't proficient from the command line and can't debug installation issues on your own. These are Ruby version managers that allow you to run different versions of Ruby side by side, and allow you to switch between them freely. If you're technically inclined, you can try rvm or rbenv. If you refer to the official Ruby installation documentation, you'll see that there are 4 choices: Therefore, even if your system comes with Ruby, you should install a separate version of Ruby. Some system Ruby installations, especially on Mac, have limited permissions and will impede your ability to install gems, upgrade Ruby, and perform other development tasks. ![]() You should see a print out of the version of Ruby that is installed on your machine. Go to your command line or terminal application and enter ruby -v. If you are working on a Mac or Linux machine, you may have Ruby installed already. If you cannot, a more recent version will probably give you the least trouble. You may experience some issues with versions older than 2.5.0 or newer than 2.7.5, so install 2.7.5 if you can. We recommend Ruby 2.7.5 as the best choice. We recommend that you use Ruby version 2.5.x, 2.6.x, or 2.7.x. For the purposes of this book, you'll need to have Ruby and RubyGems installed on your machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |