Sunday, October 12, 2014

Install puma gem on Windows 8

Today I was installing a bundle and it needs puma -v 2.8.2 and it's installation was failing due to openssl error:

mini_ssl.c:4:25: fatal error: openssl/bio.h: No such file or directory
compilation terminated.


Extract the content to a folder say openssl on D: (d drive). And execute following commands on the command prompt:
SET PATH=d:\openssl\bin;%PATH%
SET CPATH=d:\openssl\\include
SET LIBRARY_PATH=d:\openssl\lib

After that execute following command:
gem install puma --platform=ruby -- --with-opt-dir=:\openssl

Following warning:
unable to convert "\x90" from ASCII-8BIT to UTF-8 for lib/puma/, skipping

is caused by rdoc generating documentation. Simply ignore it or update rdoc gem:
gem update rdoc