ruby - How to add openssl dependency to gemspec? -


it's relatively common error new users of ruby on linux not have openssl compiled ruby. we've got gem requires 'openssl' , every once in while blows on loaderror on 'openssl'. fix point them @ https://rvm.beginrescueend.com/packages/openssl/

is there way convert run-time error install error? can't add dependency in gemspec because openssl isn't gem.

you can try checking lib putting code in mkrf_conf.rb

take @ https://github.com/timcharper/spork/blob/master/ext/mkrf_conf.rb author checks os , installes gem. sure can check os , install package (ie: apt-get install openssl-lib in ubuntu ...etc).

another example.

never tried self though. let know how goes.


Comments