2012-01-19 82 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,其正確沒有工作。