2017-04-03 3 views
1

rmagick이라는 보석을 설치하는 중 오류가 발생했습니다. 같은 문제에 관해 다른 스택 오버 플로우 웹 사이트를 보았습니다. 그러나 일하지 마라.ImageMagick : 오류 : 보석 기본 확장자를 구축하지 못했습니다.

오류 :

내가 실제로 무슨 짓을
Temporarily enhancing PATH to include DevKit... 
Building native extensions. This could take a while... 
ERROR: Error installing rmagick: 
     ERROR: Failed to build gem native extension. 

    current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rmagick-2.16.0/ext/RMagick 
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20170403-8836-1ebgkj8.rb extconf.rb 
*** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of necessary 
libraries and/or headers. Check the mkmf.log file for more details. You may 
need configuration options. 

Provided configuration options: 
     --with-opt-dir 
     --without-opt-dir 
     --with-opt-include 
     --without-opt-include=${opt-dir}/include 
     --with-opt-lib 
     --without-opt-lib=${opt-dir}/lib 
     --with-make-prog 
     --without-make-prog 
     --srcdir=. 
     --curdir 
     --ruby=C:/Ruby22-x64/bin/$(RUBY_BASE_NAME) 
extconf.rb:141:in ``': No such file or directory - identify -version (Errno::ENOENT) 
     from extconf.rb:141:in `configure_compile_options' 
     from extconf.rb:16:in `initialize' 
     from extconf.rb:548:in `new' 
     from extconf.rb:548:in `<main>' 

extconf failed, exit code 1 

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rmagick-2.16.0 for inspection. 
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/rmagick-2.16.0/gem_make.out 

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

    current directory: C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rmagick-2.16.0/ext/RMagick 
C:/Ruby22-x64/bin/ruby.exe -r ./siteconf20170403-7540-1x6tan0.rb extconf.rb 
*** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of necessary 
libraries and/or headers. Check the mkmf.log file for more details. You may 
need configuration options. 

Provided configuration options: 
     --with-opt-dir 
     --without-opt-dir 
     --with-opt-include 
     --without-opt-include=${opt-dir}/include 
     --with-opt-lib 
     --without-opt-lib=${opt-dir}/lib 
     --with-make-prog 
     --without-make-prog 
     --srcdir=. 
     --curdir 
     --ruby=C:/Ruby22-x64/bin/$(RUBY_BASE_NAME) 
extconf.rb:141:in ``': No such file or directory - identify -version (Errno::ENOENT) 
     from extconf.rb:141:in `configure_compile_options' 
     from extconf.rb:16:in `initialize' 
     from extconf.rb:548:in `new' 
     from extconf.rb:548:in `<main>' 

extconf failed, exit code 1 

Gem files will remain installed in C:/Ruby22-x64/lib/ruby/gems/2.2.0/gems/rmagick-2.16.0 for inspection. 
Results logged to C:/Ruby22-x64/lib/ruby/gems/2.2.0/extensions/x64-mingw32/2.2.0/rmagick-2.16.0/gem_make.out 

, 단계 동일한 오류 위의 3, 4 단계를 출력.

1.Downloaded ImageMagick-7.0.5-4-Q16-x64-dll 
    2.Set my Path to C:\Program Files (x86)\ImageMagick-7.0.5-Q16\include 
    set 
    3.Install the gem using this command: 
     gem install rmagick --platform=ruby -- --with-opt-lib=C:\ImageMagick-7.0.5-Q16\lib --with-opt-include=C:\ImageMagick-7.0.5-Q16\include 
    4. or gem install rmagick 
    5. Using Windows 10 machine 

답변

0

[OK] 나는 그것을 설치하기 위해 관리했습니다.

이 안내서를 따르십시오.

1 단계 : 설정하고 새로운 환경 변수를 호출 CLASSPATH를 만들고 값은

.;C:\ImageMagick-6.9.8-Q16-HDRI\include;lib C:\ImageMagick-6.9.8-Q16-HDRI\lib 

3 단계로 설정 : 다운로드 및이

ImageMagick-6.9.8-3-Q16-HDRI-x64-dl 

단계 2를 설치 보석이 그것을

설치
gem install rmagick --platform=ruby -- --with-opt-lib=C:\ImageMagick-6.9.8-Q16-HDRI\lib --with-opt-include=C:\ImageMagick-6.9.8-Q16-HDRI\include 

중요 사항 !!!

ImageMagick을 다운로드하여 설치하면 경로 및 보석 설치를 설정할 때 정확하게 버전 번호를 입력해야합니다.

ImageMagic-6.9.8-3-Q16-HDRI와 같은 예는 정확하게 따르십시오.

0

RMagick 아직 ImageMagick 7을 지원하지 않는 것 같습니다. ImageMagick 6.9의 최신 빌드로 rmagick을 설치하십시오.

+0

저는 7 세 이하를 설치했습니다. 여전히 – Suresh

+0

이 오류가 발생하는 구성을 말할 수 없습니까 ??? –

+0

@Suresh http://rubyinstaller.org/downloads/ 아래로 스크롤하여 루비 용 ** 개발 키트 **를 다운로드하십시오. –