Installing Puma on Windows error

有些话、适合烂在心里 提交于 2019-11-29 08:52:01

To give you a summary of things you need to do:

Download OpenSSL package for x64-windows (since you're using x64 version of Ruby): http://packages.openknapsack.org/openssl/openssl-1.0.0k-x64-windows.tar.lzma Extract the package, as indicated in several RubyInstaller posts Proceed again with gem installation and point to the directory where you extracted OpenSSL

The commands will be something like this:

C:\>mkdir C:\MyDir\x64-windows
C:\>cd C:\MyDir\x64-windows
C:\MyDir\x64-windows>bsdtar --lzma -xf openssl-1.0.0k-x64-windows.tar.lzma
C:\>gem install puma --platform=ruby -- --with-opt-dir=C:/MyDir/x64-windows

This worked for me (with x86 version), following these steps: 1.To install OpenSSL, I went here: https://www.tbs-certificates.co.uk/FAQ/en/openssl-windows.html. 2. Running windows cmd as administrator, I created the directory C:/OpenSSL-Win32. 3. Following the instructions from step 1, I went to https://www.openssl.org/source/ and downloaded the opensslpackage for x86 (openssl-1.0.1p-tar-gz) and extracted it via 7-Zip to C:/OpenSSL-Win32 4. Still as admin, ran C:>gem install puma --platform=ruby -- --with-opt-dir=C:/OpenSSL-Win32. Note: I was following the Hartl tutorial, and had specified gem 'puma', '2.11.1'. However, this method resulted in '2.14.0' being installed.

@Rajarshi Das, thanks!

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