[英]Gem::Ext::BuildError: ERROR: Failed to build gem native extension. - tharindu
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. Gem :: Ext :: BuildError:错误:无法构建gem本机扩展。
C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe extconf.rb
Invalid drive specification. 无效的驱动器规格。 Unable to get ImageMagick version * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. 无法获取ImageMagick版本* extconf.rb失败*由于某种原因(可能缺少必要的库和/或头文件)而无法创建Makefile。 Check the mkmf.log file for more details. 检查mkmf.log文件以获取更多详细信息。 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=. 提供的配置选项:--with-opt-dir --without-opt-dir --with-opt-include --without-opt-include = $ {opt-dir} / include --with-opt-lib-没有-opt-lib = $ {opt-dir} / lib --with-make-prog --without-make-prog --srcdir =。 --curdir --ruby=C:/RailsInstaller/Ruby2.1.0/bin/ruby --curdir --ruby = C:/RailsInstaller/Ruby2.1.0/bin/ruby
extconf failed, exit code 1 extconf失败,退出代码1
Gem files will remain installed in C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1 .0/gems/rmagick-2.15.2 for inspection. 宝石文件将保持安装在C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1 .0 / gems / rmagick-2.15.2中进行检查。 Results logged to C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86 -mingw32/2.1.0/rmagick-2.15.2/gem_make.out An error occurred while installing rmagick (2.15.2), and Bundler cannot continue. 结果记录到C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86 -mingw32 / 2.1.0 / rmagick-2.15.2 / gem_make.out安装rmagick(2.15。 2),并且Bundler无法继续。 Make sure that gem install rmagick -v '2.15.2'
succeeds before bundling. 捆绑之前,请确保gem install rmagick -v '2.15.2'
成功。
E:\\redmine-master\\bin>gem install rmagick -v '2.15.2' Temporarily enhancing PATH to include DevKit... Building native extensions. E:\\ redmine-master \\ bin> gem install rmagick -v'2.15.2'临时增强PATH以包括DevKit ...构建本机扩展。 This could take a while... ERROR: Error installing rmagick: ERROR: Failed to build gem native extension. 这可能需要一段时间...错误:安装rmagick时出错:错误:无法生成gem本机扩展。
C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe extconf.rb
Invalid drive specification. 无效的驱动器规格。 Unable to get ImageMagick version * extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. 无法获取ImageMagick版本* extconf.rb失败*由于某种原因(可能缺少必要的库和/或头文件)而无法创建Makefile。 Check the mkmf.log file for more details. 检查mkmf.log文件以获取更多详细信息。 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=. 提供的配置选项:--with-opt-dir --without-opt-dir --with-opt-include --without-opt-include = $ {opt-dir} / include --with-opt-lib-没有-opt-lib = $ {opt-dir} / lib --with-make-prog --without-make-prog --srcdir =。 --curdir --ruby=C:/RailsInstaller/Ruby2.1.0/bin/ruby --curdir --ruby = C:/RailsInstaller/Ruby2.1.0/bin/ruby
extconf failed, exit code 1 extconf失败,退出代码1
Gem files will remain installed in C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1 .0/gems/rmagick-2.15.2 for inspection. 宝石文件将保持安装在C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1 .0 / gems / rmagick-2.15.2中进行检查。 Results logged to C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86 -mingw32/2.1.0/rmagick-2.15.2/gem_make.out 结果记录到C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/extensions/x86 -mingw32 / 2.1.0 / rmagick-2.15.2 / gem_make.out
This worked for me: 这对我有用:
brew install ImageMagick
gem install rmagick
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.