ld: symbol(s) not found for architecture i386 #2351
-
Hello, I am receiving the following BUILD failure when attempting to install ruby version 2.3.1 via rbenv ( Console output:
Log file output:
Not sure what |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hi, Ruby 2.3 is very old (8 years or so) and hasn't been supported by the Ruby core team for already 5 years. You will have trouble compiling this version of Ruby on a modern machine. If you really really need a Ruby 2.3 installation, you will need to install OpenSSL 1.0, which is also very old and has been unsupported for a while, and doesn't compile on modern systems (as you've already discovered). There is a potential workaround for installing OpenSSL 1.0 using Homebrew and our unofficial formula, but this is not guaranteed to work. My strong recommendation for outdated Ruby versions is to stop using them and migrate to a newer, supported version, which will also succeed at compiling on newer machines without much problem. |
Beta Was this translation helpful? Give feedback.
-
Like Mislav said, I also highly recommend updating your project to a newer Ruby version, or at a minimum to Ruby 2.3.8. There is rarely a good reason to use a version of Ruby where the patch version (the 3rd digit) is not the latest one. There are known issues with older patch versions, and sometimes simply installing the latest patch version solves the installation problem. Here's a step-by-step guide in case you're not sure how to update your project's Ruby version: https://www.rubyonmac.dev/how-to-upgrade-the-ruby-version-in-your-project If you absolutely have to use Ruby 2.3 at this time, and if Mislav's workaround doesn't work for you, the easiest and fastest way to install Ruby 2.3 on macOS is to use my Ruby on Mac Ultimate product. It's paid, but 2000+ customers say it's worth it. It's guaranteed to let you install Ruby 2.3.8 (I also just confirmed that 2.3.1 can be installed on macOS 14.3.1). However, if your Ruby project has a Gemfile, I can't guarantee that |
Beta Was this translation helpful? Give feedback.
-
Wonderful, thank you so much for the great answers! |
Beta Was this translation helpful? Give feedback.
Like Mislav said, I also highly recommend updating your project to a newer Ruby version, or at a minimum to Ruby 2.3.8. There is rarely a good reason to use a version of Ruby where the patch version (the 3rd digit) is not the latest one. There are known issues with older patch versions, and sometimes simply installing the latest patch version solves the installation problem. Here's a step-by-step guide in case you're not sure how to update your project's Ruby version:
https://www.rubyonmac.dev/how-to-upgrade-the-ruby-version-in-your-project
If you absolutely have to use Ruby 2.3 at this time, and if Mislav's workaround doesn't work for you, the easiest and fastest way to install Ruby 2.3 …