To get the most out of this book
You will need Ruby 3.1.1 installed (follow the instructions in the book if needed to set up Ruby). You will also need Git installed on your computer as Ruby libraries (gems) rely on git to obtain its source code. If you’re using macOS, you will require either Xcode command-line tools or Xcode itself to be installed before you can use Ruby. Though not compulsory, you should also install rbenv
to allow yourself to install different versions of Ruby.
Software/hardware covered in the book |
Operating system requirements |
Ruby |
Windows, macOS, or Linux |
Ruby on Rails |
Windows, macOS, or Linux |
Linux users will have to install a selection of libraries with the following command (or its equivalent as appropriate for the distribution you use):
sudo yum install git-core zlib zlib-devel gcc-c++ patch readline readline-devel libyaml-devel libffi-devel openssl-devel make bzip2 autoconf automake libtool bison curl sqlite-devel
If you are using the digital version of this book, we advise you to type the code yourself or access the code from the book’s GitHub repository (a link is available in the next section). Doing so will help you avoid any potential errors related to the copying and pasting of code.