i386 arch error installing old scrypt gem version with OS X Mojave

I'm trying to install an old gem version for an old project after a fresh install of OS X 10.14 Mojave and XCode Command Line Tools. The gem I'm trying to install is scrypt, version 1.2.1, which is a