If you’re a Ruby on Mac customer, check your email for a link to download the latest version. I’ve written a detailed guide that explains how and why to upgrade the Ruby version in your project. However, instead of using workarounds for older versions, I highly recommend you update your project to a newer version of Ruby. For older Ruby versions, you’ll still need the workarounds. UPDATE on 11/26/22: Ruby 3.1.3, 3.0.5, and 2.7.7 are now available, so you should be able to install them without any of the workarounds mentioned in this article. I confirmed this on my M1 MacBook Air by cloning the Ruby GitHub repo, checking out the ruby_3_1 branch, and compiling Ruby 3.1.3. This means that when 3.1.3 and 2.7.7 are released, you’ll be able to install them without any workarounds. UPDATE: PR 6440 in the Ruby GitHub repo fixes this issue in 3.1 and 2.7. If the version starts with 14, then keep reading. If you’ve recently updated your Intel or Apple Silicon Mac to macOS 12.6.x (Monterey) or 13.x (Ventura), or if you updated the Apple command line tools and/or Xcode to version 14 on macOS 12.5 or higher, and are unable to install Ruby or certain gems (most likely due to an error that says “ld: symbol(s) not found for architecture arm64” or “ld: symbol(s) not found for architecture x86_64”), this guide is for you.Īssuming you already have Homebrew installed, you can find out which version of the command line tools and/or Xcode you’re using by running brew config, then look for the lines that start with CLT: and Xcode.
0 Comments
Leave a Reply. |