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

Closed
idyll opened this Issue Jun 23, 2015 · 15 comments

Comments

Projects
None yet
@idyll
Copy link

idyll commented Jun 23, 2015

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 a fatal error: 'openssl/bio.h' file not found.

As an aside the openssl situation is getting pretty crazy. Brew installs 1.0.2. Apple still installs 0.9.8. Of course Ruby is using 1.0.1.

If this is still an issue when 10.11 gets to beta 3 I will see if I can suggest a fix.

@jeremy

This comment has been minimized.

Copy link

jeremy commented Jun 24, 2015

10.11 removes /usr/include/openssl for good.

@ryanbrink

This comment has been minimized.

Copy link

ryanbrink commented Jul 7, 2015

Is there a simple workaround I can use for now?

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:

gem install puma -v '2.8.2' -- --with-opt-include="/Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/"
@evanphx

This comment has been minimized.

Copy link
Member

evanphx commented Jul 14, 2015

Hrm, fun. I can make SSL support optional though I wonder if that will confuse folks.

@robertjpayne

This comment has been minimized.

Copy link

robertjpayne commented Jul 19, 2015

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.

@ghost

This comment has been minimized.

Copy link

ghost commented Aug 9, 2015

On El Capitan, @robertjpayne's answer works.

@evanphx evanphx closed this Aug 15, 2015

@MxBird

This comment has been minimized.

Copy link

MxBird commented Aug 28, 2015

On El Capitan, @robertjpayne's answer works. many gem could install success in this way

@betoharres

This comment has been minimized.

Copy link

betoharres commented Sep 10, 2015

@robertjpayne worked to me as well ^^ thanks!

@jeremy

This comment has been minimized.

Copy link

jeremy commented Sep 11, 2015

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"
@jonnyarnold

This comment has been minimized.

Copy link

jonnyarnold commented Oct 28, 2015

👍 for @jeremy's comment

@jeroenvisser101

This comment has been minimized.

Copy link

jeroenvisser101 commented Oct 30, 2015

@jeremy, that's great!

chrisroos added a commit to chrisroos/dotfiles that referenced this issue Nov 6, 2015

@jomarquez

This comment has been minimized.

Copy link

jomarquez commented Nov 25, 2015

👍 thank you @jeremy and @robertjpayne

@vkhang55

This comment has been minimized.

Copy link

vkhang55 commented Dec 1, 2015

👍 Jeremy

@kocodude

This comment has been minimized.

Copy link

kocodude commented Dec 7, 2015

awesome, thanks @jeremy and @robertjpayne

@chischaschos

This comment has been minimized.

Copy link

chischaschos commented Jan 19, 2016

thank you @jeremy and @robertjpayne

andreychev added a commit to andreychev/cloud-vault that referenced this issue Feb 29, 2016

@enderahmetyurt

This comment has been minimized.

Copy link

enderahmetyurt commented May 24, 2016

cheers @jeremy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment