我正在尝试在Ubuntu 10.04上安装RMagick.看着这里却没有快乐.我甚至从源代码编译和安装了ImageMagick,但是当我尝试使用RubyGems安装RMagick时,这里的说明仍然没有帮助我.我收到了这个错误:
carcher@carcher-laptop:~/Code/temp/RMagick-2.13.1$ sudo gem install rmagick
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.8 extconf.rb
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out
carcher@carcher-laptop:~/Code/temp/RMagick-2.13.1$
Run Code Online (Sandbox Code Playgroud)
这是什么意思呢?:)我是Ruby和RubyGems的新手,所以请保持温柔.我的设置如下:
Ruby: 1.8.7
RubyGems: 1.3.7
Run Code Online (Sandbox Code Playgroud)
我几乎没有想法(也累了!).我厌倦了使用上面的链接从源代码编译RMagick但它失败了,因为没有./configure脚本:(
任何和所有帮助表示赞赏!
看起来我在Snow Leopard上运行标准Unix的东西比任何其他平台(包括Windows cygwin)都要麻烦
在过去的几天里,我一直在努力让ImageMagick在Snow Leopard上运行.
最明显的方式,Mac Ports,失败了:
tppllc-Mac-Pro:ImageMagick-sl swirsky$ sudo port install imagemagick
---> Computing dependencies for p5-locale-gettext
---> Configuring p5-locale-gettext
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-locale-gettext/work/gettext-1.05" && /opt/local/bin/perl Makefile.PL INSTALLDIRS=vendor " returned error 2
Command output: checking for gettext... no
checking for gettext in -I/opt/local/include -arch i386 -L/opt/local/lib -lintl...gettext function not found. Please install libintl at Makefile.PL line 18.
no
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade xorg-libXt failed …Run Code Online (Sandbox Code Playgroud)