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
여기의 지침을 따르십시오 .
또는 짧은 지침 :
zip 압축을 풉니 다
명령 줄을 열고 압축이 풀린 폴더로 이동
루비 dk.rb 초기화
ruby dk.rb 설치
gem install rdiscount --platform = ruby
때때로 실행하면 ruby dk.rb init
다음과 같은 오류가 발생합니다.
이 문제를 해결하려면 명령 프롬프트 창의 인코딩을 변경해야합니다. 이 유형을 수행하면 chcp 1256
다음 메시지가 표시됩니다. 활성 코드 페이지 : 1256
이제 문제없이 해당 명령을 실행할 수 있습니다.
행운을 빕니다 .
적절한 DevKit이 설치되어 있다는 것을 알고 있다면 (예 : 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
'programing tip' 카테고리의 다른 글
long int의 크기가 항상 4 바이트라고 가정 할 수 있습니까? (0) | 2020.10.31 |
---|---|
ActiveRecord : 대량 할당 할 수있는 모델의 모든 속성을 얻는 방법은 무엇입니까? (0) | 2020.10.31 |
한 스토리 보드에서 다른 스토리 보드로 뷰 컨트롤러 이동 또는 복사 (0) | 2020.10.31 |
Eclipse / Maven 오류 : "이 환경에는 컴파일러가 제공되지 않음" (0) | 2020.10.31 |
Eclipse가 시작되지 않고 로그 오류 메시지 : ObjectNotFoundException : 트리 요소 (0) | 2020.10.31 |