In the Where Ruby Finds Its Libraries section on page 244 there’s a discussion about the standard directories used for libraries, including the output from a command line used to list those directories (edited for brevity):
$ ruby -e 'puts $LOAD_PATH'
On our MacOs box, with rbenv installed, this produces the following list:
/opt/homebrew/Cellar/rbenv/1.2.0/rbenv.d/exec/gem-rehash
/Users/noel/.rbenv/versions/3.3.0-dev/lib/ruby/site_ruby/3.3.0+0
/Users/noel/.rbenv/versions/3.3.0-dev/lib/ruby/site_ruby/3.3.0+0/arm64-darwin23
…
The architecture-dependent directories (arm64-darwin21 in this case)…
There are two things to note here:
- “MacOs” should instead be “macOS”.
- The reference to “arm64-darwin21” should be changed to “arm64-darwin23” in order to match the output of the command.