Replies: 2 comments 1 reply
-
Hi, any ruby program can inspect the flags that the current ruby is built with by importing the
I'm not sure if mysql2 is automatically doing this during its gem compilation. (I'm looking at its extconf.rb but it doesn't look like it ever reads the So I would guess that the explicit |
Beta Was this translation helpful? Give feedback.
-
If its up to each gem to choose the right openssl-dir, this seems dangerous/unreliable, some may choose incorrectly. So hopefully it's not that. Bundler is not involved in this test, its a |
Beta Was this translation helpful? Give feedback.
-
In a dump of a failing mysql2 gem install I could see that its using the correct openssl 1.1 dir that was built by ruby-build:
Using --with-openssl-dir=/home/user1/.rbenv/versions/2.6.10/openssl
How does it know to do that? Is it simply the presence of openssl dir in the ruby dir? Or is there some config file that specifies it?
Ultimately I'd like to know if there's any possibility of this mechanism failing and a gem build using the wrong (Ubuntu 24.04 default 3.0) openssl dir.
Beta Was this translation helpful? Give feedback.
All reactions