2017-09-28 1 views
0

Mac에서 imagemagick @ 6을 설치할 때이 오류가 발생합니다. 이것은 내 로컬 컴퓨터에서 레일 애플 리케이션을 실행에서 나를 막고있다. 여러 가지 옵션을 시도해 봤는데 bash 프로필을 변경하고 설정에 물건을 추가하는 등의 일을했습니다. 보석과 rmv 파일을 제거하고 다시 설치하려고했습니다.MacOS Sierra에서 rmagic 및 imagemagick 설치 중 오류가 발생했습니다

다음은 내가 항상 얻을 수있는 것입니다. 첫째 brew update

에서

Building native extensions with: '--with-opt-lib /usr/local/opt/[email protected]/lib --with-opt-include /usr/local/opt/[email protected]/include' 
    This could take a while... 
    ERROR: Error installing rmagick: 
     ERROR: Failed to build gem native extension. 

     /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb --with-opt-lib /usr/local/opt/[email protected]/lib --with-opt-include /usr/local/opt/[email protected]/include 
    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:1674:in `dir_config': undefined method `split' for true:TrueClass (NoMethodError) 
     from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:2378:in `init_mkmf' 
     from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:2415:in `<module:MakeMakefile>' 
     from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/mkmf.rb:47:in `<top (required)>' 
     from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
     from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:in `require' 
     from extconf.rb:4:in `<main>' 


    Gem files will remain installed in /Users/neves/.rvm/gems/[email protected]/gems/rmagick-2.16.0 for inspection. 
    Results logged to /Users/neves/.rvm/gems/[email protected]/gems/rmagick-2.16.0/ext/RMagick/gem_make.out 

답변

0

업데이트 양조는 다음 rmagic 보석을 이미지 매직에게 brew install [email protected] 다음 설정 경로를 설치하고 설치

PKG_CONFIG_PATH=/usr/local/opt/[email protected]/lib/pkgconfig gem install rmagick

관련 문제