Failed Build openssl-3.0.5 for rbenv install 3.1.2 #2053
Replies: 11 comments 10 replies
-
(Transferred your issue to the ruby-build repository) Hi, sorry you've had trouble, and thanks for sharing your solution steps! If you had seen this earlier, would it have helped? https://github.com/rbenv/ruby-build/wiki#ubuntudebianmint |
Beta Was this translation helpful? Give feedback.
-
Yes! That would have helped. I didn't see the checkinstall. It seems like openssl-3.0.5 requires it. |
Beta Was this translation helpful? Give feedback.
-
(I hope it's ok to ask here but happy to move this to Discussion if that's preferred) I regret posting because I know this has been a common issue, but I feel like I've read everything I can regarding workarounds and fear I'm missing something obvious. I'm also trying to install 3.1.2 on a new Ubuntu 22.04.1 LTS machine. I made sure to My understanding is that ruby-build would try to grab the older version of openssl if needed, but I'm not seeing that happen (and maybe it doesn't need to in this case anyway?)
(Of course I've run Any thoughts? |
Beta Was this translation helpful? Give feedback.
-
Could you paste the contents of the whole log file as a gist? Thanks |
Beta Was this translation helpful? Give feedback.
-
Thanks mislav! Here it is: https://gist.github.com/JeffCohen/e701b7cedb08db06890c31cd79d91018 |
Beta Was this translation helpful? Give feedback.
-
@JeffCohen Strange! This Ruby version should have been linked to your system OpenSSL, but for some reason it wasn't. Can you check your environment variables to see if there is anything that could have affected compilation? See @hsbt Do you have any ideas? |
Beta Was this translation helpful? Give feedback.
-
Here's my env vars: https://gist.github.com/JeffCohen/85339684ce96131d77318178cc986f03 Just in case it's important: this is my very first time using But I used |
Beta Was this translation helpful? Give feedback.
-
Thanks for the share. I don't see anything odd in your env. It shouldn't be a problem that you used Homebrew for anything. You should still use apt for system packages such as In the meantime, you could try a workaround: install OpenSSL with Homebrew and instruct Ruby to link to that instead of the system one. Something like: brew install openssl@3
RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@3)" rbenv install 3.1.2 |
Beta Was this translation helpful? Give feedback.
-
Thanks @hsbt here's that log file: https://gist.github.com/JeffCohen/8f82c1f387f814ad251707d462631526 Maybe you can spot some clues? I agree that linuxbrew is the prime suspect but can't see exactly why. |
Beta Was this translation helpful? Give feedback.
-
Just in case anyone else gets this far, I've discovered that LinuxBrew dropped a file in my home folder named Anyway here's the contents of this file, which, if I had read these instructions first, probably would have avoided my headaches with openssl 1.1 vs ruby 3.1:
|
Beta Was this translation helpful? Give feedback.
-
I am having this issue and nothing here helped. I have openssl 3.0.5 installed using homebrew. I've reinstalled it just now. From what I read, this command:
should have allowed me to install ruby 3.1.2 but it failed with the same error other folks are reporting: ossl_ts.c:829:5: error: incomplete definition of type 'struct TS_verify_ctx' In case it's helpful, 3.1.0 does the same thing. |
Beta Was this translation helpful? Give feedback.
-
rbenv install 3.1.2
an error message is received that the build failed because it is unable to make/install openssl-3.0.5. It seems openssl-3.0.5 is for the next version of Ubuntu (kinetic)sudo apt install libssl-dev libz-dev build-essential checkinstall zlib1y-dev
-Perhaps the instructions or the script needs to be re-written?
Beta Was this translation helpful? Give feedback.
All reactions