Problems Installing puma ruby gem on OS X El Capitan 10.11

泄露秘密 提交于 2020-01-16 07:54:20

问题


When attempting to install puma "any version" on OS X El Capitan it kept failing. Thankfully, /user/dennis-best was able to shed some light and deserves all the credit for this.


回答1:


For people who are having issues with puma and openssl, particularly with Mac OS 10.11 (El Capitan), adding some flags will save you hours and hours of heartache:

gem install puma -- --with-cppflags=-I/usr/local/opt/openssl/include --with-ldflags=-L/usr/local/opt/openssl/lib

https://gist.github.com/edvinasbartkus/0e99ea8305a20737f562




回答2:


As /users/mwp mentioned you can also install OpenSSL via brew and without including the optional cppflags install puma without any hiccups. For those that don't wish to install OpenSSL via brew, the option below also works.



来源:https://stackoverflow.com/questions/33863980/problems-installing-puma-ruby-gem-on-os-x-el-capitan-10-11

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!