-
Notifications
You must be signed in to change notification settings - Fork 780
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openssl - why is the system not used? #304
Comments
Here is an example bug report: #197. Here is the fix: #273. Prior to the fix, users of
However, not all If you believe there needs to be better documentation of this issue, feel free to edit the wiki or submit a pull request that adds a section to the Please let me know if you have any more questions about this issue. Otherwise, I'll close it. |
I'm wondering since we're updating the 2.0 formula in Homebrew, and I needed to judge whether it's necessary to add a dependency on a new OpenSSL version. I had previously built 2.0-rc2 using Homebrew against the system OpenSSL, and the OpenSSL module was built - hence my confusion. My understanding of that issue is that the OpenSSL module shouldn't have been built at all if only an incompatible version is available, is that right? |
What if I added: option 'with-brewed-openssl', "Use Homebrew's OpenSSL"
depends_on 'openssl' if build.include? 'with-brewed-openssl' It looks like that's what done in the python forumla (and python3 formula). If this seems like a good idea to you, I'm happy to update my pull request. |
For what it's worth, I still have to do the It looks like it never even makes it past configuration. |
I don't mind duping openssl conditionally or always, I just want to make sure that it's necessary - since I can't reproduce the problem. Does this only happen on certain OS X versions? |
@davidcelis Would you mind submitting that as a separate issue? |
@mistydemeo I am on the latest release of OS X (10.8.2) and my system /usr/bin/openssl version
OpenSSL 0.9.8r 8 Feb 2011 I hope this will be fixed in the next version of OS X but I believe it affects every version shipped to date. |
I'm on 10.7.5, with an identical version of OpenSSL and it's not too old for Ruby 2.0.0. I think there's another variable here. |
e.g. this problem may be localized to Mountain Lion. I have a Mountain Lion box; I'll see what happens there. |
Please let me know what you discover in your investigation. |
On my 10.8.2 box, ruby's configure does skip building openssl. It looks like this is specific to Mountain Lion. The specific lines from unless OpenSSL.check_func("SSL_library_init()", "openssl/ssl.h")
raise "Ignore OpenSSL broken by Apple.\nPlease use another openssl. (e.g. using `configure --with-openssl-dir=/path/to/openssl')"
end That said, I'm a little curious what's different here. On both my 10.7 and 10.8 machines, |
PS:
Apple have officially deprecated OpenSSL. I doubt they have any plans to change it. |
FWIW, I was only able to get ~/.rbenv/plugins/ruby-build/bin/ruby-build: # Compile with zlib, no kerberos, and do a static build.
- package_option openssl configure --openssldir="$OPENSSLDIR" zlib no-krb5 no-shared
+ package_option openssl configure --openssldir="$OPENSSLDIR" zlib-dynamic shared Otherwise, invariably, I ended up with the "The Ruby openssl extension was not compiled. Missing the OpenSSL lib?" message at the end of the install process. |
@codykrieger I'm seeing similar behavior. I only had to change the |
@codykrieger Your changes worked for me! Before, openssl itself would seem to compile, but I would always get the "The Ruby openssl extension was not compiled. Missing the OpenSSL lib?" error. Using Cody's diff, 2.0.0-p0 installed successfully and is working like a charm. |
Fixed @ fee1e49 |
I see that the system openssl isn't being used with current ruby versions; why is that? I couldn't find any documentation about the issues it causes.
The text was updated successfully, but these errors were encountered: