Installing Puma on Windows error

前端 未结 2 1189
情话喂你
情话喂你 2020-12-18 16:40

Tried installing Puma on Windows and getting this error -

Temporarily enhancing PATH to include DevKit...
Building native extensions with: \'--with-opt-dir=c         


        
2条回答
  •  鱼传尺愫
    2020-12-18 17:02

    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!

提交回复
热议问题