2017-09-28 135 views
0

安装rmagic和ImageMagick的得到这个错误。这阻止了我在本地机器上运行rails应用程序。选项试图帮有像改变bash的配置文件,添加东西的配置等试图消除创业板和RMV文件并再次重新安装。错误在MacOS塞拉利昂

这里是我所得到的每一次。在第一 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

更新冲泡然后安装imagemagic brew install [email protected] 然后配置路径和安装rmagic宝石

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

相关问题