2012-01-17 1 views
4

. (또한 sinatra, haml, dm-core 및 bcrypt-ruby와 같은 몇몇 다른 보석들과 마찬가지로).
그러나 "gem install dm-types"을 실행하면 이런 일이 발생합니다. Windows에 dm-types 설치. (Win7에 x64의) 나는</p> <pre><code>gem install dm-types </code></pre> <p>내가 RubyInstaller (1.9.3)에서 루비를 설치 한 나는 또한 DevKit 설치 한 내 컴퓨터에 DataMapper에 대한 DM-유형을 설치하려고

C:\Users\Lev>gem install dm-types 
Temporarily enhancing PATH to include DevKit... 
Building native extensions. This could take a while... 
ERROR: Error installing dm-types: 
     ERROR: Failed to build gem native extension. 

     "C:/Program Files (x86)/Ruby/Ruby193/bin/ruby.exe" extconf.rb 
creating Makefile 

make 
Makefile:172: warning: overriding commands for target `C:/Program' 
Makefile:163: warning: ignoring old commands for target `C:/Program' 
Makefile:172: warning: overriding commands for target `Files' 
Makefile:163: warning: ignoring old commands for target `Files' 
Makefile:215: *** multiple target patterns. Stop. 


Gem files will remain installed in C:/Program Files (x86)/Ruby/Ruby193/lib/ruby/ 
gems/1.9.1/gems/json-1.6.5 for inspection. 
Results logged to C:/Program Files (x86)/Ruby/Ruby193/lib/ruby/gems/1.9.1/gems/j 
son-1.6.5/ext/json/ext/parser/gem_make.out 

내 구글-FU가 /있는 창에 구축되지 않지만 완벽하게 설치 bcrypt 일부 bcrypt 종속성 것으로 확인된다. 또한 시스템 경로에 nmake.exe가 있습니다.

Windows 7 x64에서 dm 유형을 작동 시키려면 어떻게해야합니까?

또한 내 컴퓨터에서 모든 루비 관련 작업을 지우고 다시 시작하는 것에 반대하지 않습니다.

답변

13

루비 경로의 공백이 메이크 파일을 망가 뜨리는 것처럼 보입니다. 어쩌면처럼, 일시적으로 Windows에서 심볼릭 링크를 만들어보십시오 :

mklink /d c:\ruby "C:\Program Files (x86)\Ruby\Ruby193" 

한 후 설치하십시오. 설치 후 심볼릭 링크를 삭제할 수 있습니다.

C:\ruby\bin\gem install dm-types 
+5

고마워요! 그것은 작동 :) 나는 그것이 공백에 관해서는 파일 경로를 깨뜨린 것을 보았지만 공백이 실제로 설치를 엉망으로 만든다고 믿기가 힘들었다. 동일한 문제가있는 사람이라면 C : \ ruby ​​\ ruby.exe는 실제로 bin 디렉토리에 있기 때문에 작동하지 않습니다. 'C : \ ruby ​​\ bin \ gem install dm-types' 은 내가 사용한 명령입니다. –

+1

후속 조치에 감사드립니다. Lev! 적어도 한 시간 씩 인터넷 검색을 저장했습니다. –

1

또는 C에 환경 변수에서 PATH 설정은 : 대신 C의 \ 프로그래밍 2 ~ \ 루비 \ Ruby193 \ 빈 : \ 프로그램 파일 \ 루비 \ Ruby193 \ bin에

프로그래밍 ~ 1이어야한다 프로그램 파일, Progra ~ 2는 Program Files (x86)이어야합니다.

2

Mayro가 말한 바에 따르면 내가 알아야 할 것은 사용자 PATH 외에도 DevKit에 대한 링크도 시스템 변수 PATH는 내 문제의 원인이되는 링크가 있습니다.