相关疑难解决方法(0)

在Mountain Lion上安装Rmagick时出错

我见过其他人在Mountain Lion上安装RMagick同样的问题但是没有一个建议的解决方案允许我成功安装rmagick.

这是我得到的错误消息:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
checking for Ruby version >= 1.8.5... yes
checking for /usr/local/bin/gcc-4.2... yes
checking for Magick-config... yes
checking for ImageMagick version >= 6.4.9... yes
checking for HDRI disabled version of ImageMagick... yes
checking for stdint.h... yes
checking for sys/types.h... yes
checking for wand/MagickWand.h... yes
checking for InitializeMagick() in -lMagickCore... no
checking for InitializeMagick() in -lMagick... no
checking for InitializeMagick() in -lMagick++... no
Can't install RMagick 2.13.1. Can't find the …
Run Code Online (Sandbox Code Playgroud)

rmagick imagemagick bundler rvm osx-mountain-lion

66
推荐指数
4
解决办法
2万
查看次数

OS X El Capitan上的gem install rmagick失败

我几天前升级到El Capitan并跑了一个

brew update && brew upgrade
Run Code Online (Sandbox Code Playgroud)

它更新了imagemagick,导致ruby的rmagick gem停止工作.

没问题,我想,我会跑

gem install rmagick
Run Code Online (Sandbox Code Playgroud)

它会重新编译.

除了它没有,当我运行它时,我看到:

gem install rmagick
Building native extensions.  This could take a while...
ERROR:  Error installing rmagick:
    ERROR: Failed to build gem native extension.

    /Users/sam/.rbenv/versions/2.2.3/bin/ruby -r ./siteconf20151019-57347-30ju1w.rb extconf.rb
checking for clang... yes
checking for Magick-config... yes
checking for outdated ImageMagick version (<= 6.4.9)... no
checking for Ruby version >= 1.8.5... yes
checking for stdint.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably …
Run Code Online (Sandbox Code Playgroud)

ruby macos imagemagick

8
推荐指数
1
解决办法
3122
查看次数

安装ffi(1.1.2)时发生错误,Bundler无法继续

在Rails 3.0项目中运行OSX Mountain Lion.

当尝试在Rails项目中使用bundler更新我的gem时,我得到以下错误:

An error occured while installing ffi (1.1.2), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.1.2'` succeeds before bundling.

ERROR:  Error installing ffi:
    ERROR: Failed to build gem native extension.

        /Users/victorstan/.rvm/rubies/ruby-1.9.2-p320/bin/ruby extconf.rb
checking for ffi.h... *** 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.

...

You have to install development …
Run Code Online (Sandbox Code Playgroud)

gem ruby-on-rails ffi osx-mountain-lion

6
推荐指数
2
解决办法
4293
查看次数

gem install rmagick -v 2.13.1 error在Mac OS 10.9.1上无法构建gem native扩展

我通过提供MagickWand.h的路径尝试了一切,我已经安装了命令工具.谁能帮我吗 ?

$ gem install rmagick -v 2.13.1
Run Code Online (Sandbox Code Playgroud)

构建原生扩展.这可能需要一段时间...错误:安装rmagick时出错:错误:无法构建gem原生扩展.

/Users/ghazanfarali/.rvm/rubies/ruby-1.8.7-p357/bin/ruby extconf.rb检查Ruby版本> = 1.8.5 ...是检查/usr/bin/gcc-4.2 ...是检查Magick-config ...是检查ImageMagick版本> = 6.4.9 ...是检查HDRI禁用版本的ImageMagick ...是检查stdint.h ...没有检查sys/types.h ......没有检查魔杖/ MagickWand.h ......没有

无法安装RMagick 2.13.1.找不到MagickWand.h. *extconf.rb失败*由于某些原因无法创建Makefile,可能缺少必要的库和/或标头.检查mkmf.log文件以获取更多详细信息.您可能需要配置选项.

提供的配置选项: - 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 =/Users/ghazanfarali/.rvm/rubies/ruby​​-1.8.7-p357/bin/ruby

Gem文件将保留在/Users/ghazanfarali/.rvm/gems/ruby-1.8.7-p357/gems/rmagick-2.13.1中进行检查.结果登录到/Users/ghazanfarali/.rvm/gems/ruby-1.8.7-p357/gems/rmagick-2.13.1/ext/RMagick/gem_make.out"

ruby gem ruby-on-rails imagemagick imagick

5
推荐指数
1
解决办法
8863
查看次数