2012-01-19 117 views
1

在我的Ubuntu 10.04的机器我有一些问题,安装RMagick(Ruby的ImageMagick的宝石),都与易与ImageMagick的从源代码编译的常规ImageMagick的包。 目前的问题是bundle install无法安装rmagick,而RubyGems工作得很好。我的输出如下:RMagick无法使用捆绑安装,安装正确使用RubyGems的

[email protected]:/home/user/www/test/public# bundle install 
[..cut..] 
Installing rmagick (2.13.1) with native extensions /usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError) 

/usr/local/bin/ruby extconf.rb 

Gem files will remain installed in /home/user/www/test/public/vendor/bundle/ruby/1.8/gems/rmagick-2.13.1 for inspection. 
Results logged to /home/user/www/test/public/vendor/bundle/ruby/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out 
     from /usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in `each' 
     from /usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:446:in `build_extensions' 
     from /usr/local/lib/ruby/site_ruby/1.8/rubygems/installer.rb:198:in `install' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/source.rb:101:in `install' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:78:in `preserve_paths' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/source.rb:91:in `install' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:58:in `run' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/rubygems_integration.rb:93:in `with_build_args' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:57:in `run' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:49:in `run' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/installer.rb:8:in `install' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/cli.rb:220:in `install' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `send' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/task.rb:22:in `run' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor.rb:263:in `dispatch' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/lib/bundler/vendor/thor/base.rb:386:in `start' 
     from /usr/local/lib/ruby/gems/1.8/gems/bundler-1.0.18/bin/bundle:13 
     from /usr/local/bin/bundle:19:in `load' 
     from /usr/local/bin/bundle:19 
[email protected]:/home/user/www/test/public# cat /home/user/www/test/public/vendor/bundle/ruby/1.8/gems/rmagick-2.13.1/ext/RMagick/gem_make.out 
/usr/local/bin/ruby extconf.rb 

而且在运行gem_make.out的最后内容手动运行成功:

====================================================================== 
Thu 19Jan12 16:42:10 
This installation of RMagick 2.13.1 is configured for 
Ruby 1.8.7 (i686-linux) and ImageMagick 6.7.4 Q8 
====================================================================== 

而且使用RubyGems的工作在本机上就好了同时安装,使其难以本地化的实际错误:

[email protected]:/home/user/www/test/public# gem install rmagick 
Building native extensions. This could take a while... 
Successfully installed rmagick-2.13.1 
1 gem installed 
Installing ri documentation for rmagick-2.13.1... 
Installing RDoc documentation for rmagick-2.13.1... 

我绝对希望任何人有一些指针。发现的行为看起来很像curb gem installation: bundle install fails, but normal gem install works中的问题,遗憾的是这个问题没有解决方案(我没有记忆短缺)。提前致谢!

+2

你试过'须藤束install'? – PinnyM

+1

是否只安装了一个ruby/ruby​​gems? “哪个宝石”和“哪个宝贝”是什么? – phoet

+0

感谢您的意见。 @PinnyM'sudo bundle install'给了我和悲伤地运行'bundle install'一样的输出。 @phoet,应该只有一个安装,这台机器没有RVM或任何安装。路径是'/ usr/local/bin/gem'和'/ usr/local/bin/bundle'。 – Leftblank

回答

0

我一直无法找到问题和任何解决方案,而不是安装RVM,其正确没有工作。