os安装rmagick gem错误

时间:2012-02-14 01:51:39

标签: ruby gem imagemagick bundler rmagick

我升级到Lion,现在在将rmagick gem作为捆绑包的一部分安装时出现错误:

"gcc-4.2 -o conftest -I/Users/home/.rvm/rubies/ruby-1.9.3-p0/include/ruby-1.9.1/x86_64-darwin10.8.0 -I/Users/home/.rvm/rubies/ruby-1.9.3-p0/include/ruby-1.9.1/ruby/backward -I/Users/home/.rvm/rubies/ruby-1.9.3-p0/include/ruby-1.9.1 -I.  -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick  -I/usr/local/Cellar/imagemagick/6.7.1-1/include/ImageMagick -fopenmp conftest.c  -L. -L/Users/home/.rvm/rubies/ruby-1.9.3-p0/lib  -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -L/usr/X11/lib    -L/usr/local/Cellar/imagemagick/6.7.1-1/lib -lMagickCore -llcms -ltiff -lfreetype -ljpeg -L/usr/X11/lib -lfontconfig -lXext -lSM -lICE -lX11 -lXt -lbz2 -lz -lm -lgomp -lpthread -lltdl  -lruby.1.9.1  -lpthread -ldl -lobjc "
ld: library not found for -llcms
collect2: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main() {return 0;}
/* end */

我升级了自制程序并卸载并重新安装了imagemagick无济于事。

1 个答案:

答案 0 :(得分:0)

此处找到最终答案: Mac Rmagick won't install with Xcode 4.2

使用Homebrew:

brew install imagemagick --disable-openmp