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
Need to specify --with-opt-dir
on OSX 10.11 El Capitan.
#718
Comments
10.11 removes |
Figured it out. It's not in the 10.11 SDK but is in the 10.10 SDK. Appending the --with-opt-include option seems to work. For example:
|
Hrm, fun. I can make SSL support optional though I wonder if that will confuse folks. |
If you are installing home-brew openssl it's a lot easier: `gem install puma -- --with-opt-include=/usr/local/opt/openssl/include`` @evanphx is there any way to specify a default opt-include path? Seems like you could state that openssl via homebrew is a requirement for installing it on OS X or the user must manually manage it. |
On El Capitan, @robertjpayne's answer works. |
On El Capitan, @robertjpayne's answer works. many gem could install success in this way |
@robertjpayne worked to me as well ^^ thanks! |
To make this sticky for all your Gemfiles: bundle config build.puma --with-opt-dir=/usr/local/opt/openssl Confirm: $ grep PUMA ~/.bundle/config
BUNDLE_BUILD__PUMA: "--with-opt-dir=/usr/local/opt/openssl" |
👍 for @jeremy's comment |
@jeremy, that's great! |
As documented in puma/puma#718.
👍 thank you @jeremy and @robertjpayne |
👍 Jeremy |
awesome, thanks @jeremy and @robertjpayne |
thank you @jeremy and @robertjpayne |
cheers @jeremy |
I tried this on my mac - 10.15.5 catalina. But, it still shows same error. Building native extensions with: '--with-opt-include=/usr/local/opt/openssl/include'
/Users/jinyong/.rvm/rubies/ruby-2.6.5/bin/ruby -I /Users/jinyong/.rvm/rubies/ruby-2.6.5/lib/ruby/site_ruby/2.6.0 -r ./siteconf20200710-2016-1t39osy.rb extconf.rb --with-opt-include=/usr/local/opt/openssl/include current directory: /Users/jinyong/.rvm/gems/ruby-2.6.5/gems/puma-4.3.3/ext/puma_http11 current directory: /Users/jinyong/.rvm/gems/ruby-2.6.5/gems/puma-4.3.3/ext/puma_http11 make failed, exit code 2 Gem files will remain installed in /Users/jinyong/.rvm/gems/ruby-2.6.5/gems/puma-4.3.3 for inspection. |
@whitehorse0324 it looks like you are running into issue #2304 (it is not solved for Puma 4.x series) |
Haven't had a change to dig into exactly what's going on but gem install fails on OSX 10.11 because it can't find some openssl headers.
When compiling
mini_ssl.c
I get afatal error: 'openssl/bio.h' file not found
.If this is still an issue when 10.11 gets to beta 3 I will see if I can suggest a fix.
The text was updated successfully, but these errors were encountered: