gem install json -v 1.7.3 gives 'Please update your PATH to include build tools'

前端 未结 4 1921
伪装坚强ぢ
伪装坚强ぢ 2020-12-07 12:58

When I run:

rails new blog

I get:

Installing json (1.7.3)
Gem::InstallError: The \'json\' native gem requires installed b         


        
4条回答
  •  旧巷少年郎
    2020-12-07 13:50

    If you know that you have the proper DevKit installed (eg: via chocolatey), then you simply need to run the included script to set up environment variables.

    In cmd:

    C:\> d:\path\to\DevKit2\devkitvars.bat
    

    In PowerShell:

    PS> . d:\path\to\DevKit2\devkitvars.ps1
    

    These scripts will set up the correct paths in your current command window.

提交回复
热议问题