在mac os x

时间:2015-11-21 18:24:47

标签: ruby-on-rails macos gem bundle

我用brew来安装imagemagick,没关系。在终端输入转换我得到以下内容:

Version: ImageMagick 6.9.2-6 Q16 x86_64 2015-11-15

现在,当我正在运行bundle install时,我收到以下错误:

...lots of warnings first, then a couple of errors...
rmmain.c:1724:28: error: use of undeclared identifier 'MagickSupport'
features = rb_str_new2(MagickSupport);
                       ^
5 errors generated.
make: *** [rmmain.o] Error 1

Gem files will remain installed in     /Users/phil/src/proj/vendor/bundle/ruby/2.0.0/gems/rmagick-2.13.4 for inspection.
Results logged to /Users/phil/src/proj/vendor/bundle/ruby/2.0.0/gems/rmagick-2.13.4/ext/RMagick/gem_make.out
An error occurred while installing rmagick (2.13.4), and Bundler cannot continue.
Make sure that `gem install rmagick -v '2.13.4'` succeeds before bundling.

当我运行sudo gem install rmagick -v '2.13.4'时,我得到了同样的错误。如果我没有sudo运行,我会收到权限错误。

但是,如果我运行sudo gem install rmagick,它就有效。我得到了这个输出:

PhilipPro:proj phil$ sudo gem install rmagick
Building native extensions.  This could take a while...
Successfully installed rmagick-2.15.4
Parsing documentation for rmagick-2.15.4
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for     ext/RMagick/RMagick2.bundle, skipping
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for ext/RMagick/rmagick.o, skipping
unable to convert "\xCF" from ASCII-8BIT to UTF-8 for ext/RMagick/rmdraw.o, skipping
...

1 gem installed

这里发生了什么?

0 个答案:

没有答案