Compiling ruby 3.1.3 failed! (MacOS Ventura 13.5.1 M1 Max) #2245
Replies: 3 comments 10 replies
-
Why is this closed? |
Beta Was this translation helpful? Give feedback.
-
You can try this below, I just solved the problem by the way below The error you're encountering is due to an issue with the OpenSSL library version compatibility with the Ruby version you're trying to install. In this case, it seems like Ruby is having issues with the version of OpenSSL installed on your Mac (version 3.1.2). Here are the steps you can follow to solve this issue: Step 1: Install Homebrew (if not already installed)Homebrew is a package manager for macOS that can help you install and manage software packages easily. If you do not have it installed, you can install it by following the instructions here. Step 2: Install a Compatible OpenSSL VersionYou should try installing an older version of OpenSSL that is compatible with the Ruby version you're installing. You can do this using Homebrew: brew install openssl@1.1 Step 3: Set the OpenSSL Environment VariableNext, you need to set the OpenSSL environment variable to point to the older version you just installed. This will help Ruby to find the correct version of OpenSSL during the installation. You can set the environment variable using the following commands: export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)" Step 4: Install RubyNow, try installing Ruby again. You can do this using a version manager like
Step 5: Verify Ruby InstallationAfter installing Ruby, you can verify that it was installed successfully by running: ruby -v Step 6: Install JekyllOnce Ruby is installed, you can install Jekyll by running: gem install jekyll Step 7: Verify Jekyll InstallationVerify that Jekyll was installed successfully by running: jekyll -v These steps should help you resolve the error and get Ruby and Jekyll installed on your system. Let me know if you face any issues or have further questions. |
Beta Was this translation helpful? Give feedback.
-
I mean, seems like at the very least, most environments need PATH set. And
your instructions are very different from the ones on the page you linked
to. And both sets of instructions seem to not really work for me. I have to
intentionally uninstall OpenSSL3 and ignore those dependencies and then
only OpenSSL 1.1 is installed and then I can build Ruby 3.2.2.
…On Sun, Nov 5, 2023 at 5:08 AM Mislav Marohnić ***@***.***> wrote:
When linking to Homebrew's OpenSSL, please avoid pasting commands that
worked for you but that might not work for other people.
The Homebrew installation prefix is different across different macOS
architectures (Intel vs. Apple Silicon) and can be different based on the
user's settings. Instead of hardcoding a path like /opt/homebrew/..., you
can invoke the command brew --prefix ***@***.*** and use the result of
that:
brew install ***@***.*** RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix ***@***.***)"
Note that setting PATH, PKG_CONFIG_PATH, LDFLAGS, or CPPFLAGS is
absolutely *not* necessary when compiling Ruby. For more information,
please refer to our wiki <https://github.com/rbenv/ruby-build/wiki>.
—
Reply to this email directly, view it on GitHub
<#2245 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABLJIQ2DTEMFRMZOG3L7SDYC6FUNAVCNFSM6AAAAAA4OKIIM6VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TINZZGA4TE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Here are the last log messages
I've already attempted uninstalling openssl@3 through Homebrew, and reinstalling using the code in the Suggested Build Environment section:
I've also uninstalled Anaconda as was suggested in the troubleshooting section. Any help would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions