gem install json -v 1.7.3은 '빌드 도구를 포함하도록 PATH를 업데이트하십시오'를 제공합니다.
실행 시:
rails new blog
이해:
Installing json (1.7.3)
Gem::InstallError: The 'json' native gem requires installed build tools.
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
An error occurred while installing json (1.7.3), and Bundler cannot continue.
Make sure that `gem install json -v '1.7.3'` succeeds before bundling.
실행 시:
gem install json -v 1.7.3
이해:
Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
Windows 8을 사용하고 있습니다.나는 가지고 있습니다c:\ruby193\bin
내가 가는 길에.이러한 오류를 수정하려면 어떻게 해야 합니까?
반드시 devkit를 설치합니다(경로를 갱신하는 체크박스를 켜겠습니다).루비도 재설치해야 할 수 있습니다.
DevKit 설치
http://rubyinstaller.org/downloads/ 에서 개발 키트를 다운로드
현시점에서의 DevKit URL Ruby 1.8.7 및 1.9.3에서의 사용: DevKit-tdm-32-4.5.2
Ruby 2.0 이상(32비트 버전만):DevKit-mingw64-32-4.7.2
Ruby 2.0 이상 (x64 - 64비트만) DevKit-mingw64 - 64 - 4 . 7 . 2
여기서의 지시에 따릅니다.
또는 간단한 지시:
지퍼를 열다
명령줄 열기 및 압축 해제된 폴더로 이동
루비 dk.disit 초기화
ruby dk.dlinstall
gem install rdiscount --platform=discount
때때로 당신이 실행했을 때ruby dk.rb init
이런 오류가 발생하였습니다.
이 문제를 해결하려면 명령어프롬프트 윈도의 인코딩을 변경해야 합니다.chcp 1256
다음 메시지가 나타납니다.Active code 페이지: 1256
이제 그 명령어를 문제없이 실행할 수 있습니다.
행운을 빌어요.
적절한 DevKit가 설치되어 있는 경우(예를 들어: via chocolatey), 포함된 스크립트를 실행하여 환경변수를 설정하기만 하면 됩니다.
cmd 단위:
C:\> d:\path\to\DevKit2\devkitvars.bat
PowerShell의 경우:
PS> . d:\path\to\DevKit2\devkitvars.ps1
이러한 스크립트는 현재 명령 창에 올바른 경로를 설정합니다.
오래된 것을 삭제하다DevKit folder
눈앞에extract
다음 중 하나에서 다운로드하는 새로운 것links
를 기반으로 합니다.configuration
:
현시점에서의 DevKit URL Ruby 1.8.7 및 1.9.3에서의 사용:https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe
Ruby 2.0 이상(32비트 버전만):http://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe2
Ruby 2.0 이후 (x64-64비트만) http://dl.bintray.com/oneclick/rubyinstaller/DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe3 에서 사용 가능합니다.
언급URL : https://stackoverflow.com/questions/10694997/gem-install-json-v-1-7-3-gives-please-update-your-path-to-include-build-tools
'programing' 카테고리의 다른 글
AngularJS를 사용하여 요소의 폭을 얻는 방법은 무엇입니까? (0) | 2023.02.22 |
---|---|
스위치 블록이 TypeScript에서 완전히 사용되고 있는지 확인하려면 어떻게 해야 합니까? (0) | 2023.02.22 |
메이븐...프로젝트를 정리하지 못했습니다.삭제하지 못했습니다.\sysm.ow2.sysm-asm-tree-3.1.jar (0) | 2023.02.22 |
JQuery를 사용하여 데이터를 레일에 배치하려면 어떻게 해야 합니까? (0) | 2023.02.22 |
Angular에서 속성 액세스JS 지시어 (0) | 2023.02.22 |