私のUbuntu 10.04マシンでは、aptからの通常のimagemagickパッケージとソースからコンパイルされたImageMagickの両方で、RMagick(RubyのImageMagick gem)をインストールする際に問題があります。 これまでのところ、bundle install
はrmagickのインストールに失敗しますが、RubyGemsはうまく動作します。私の出力は以下の通りである。また、RubyGemsを使用してRMagickをインストールすることができません
[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の問題とよく似ていますが、残念ながらこの問題には解決策が掲載されていません(メモリが不足していません)。前もって感謝します!
あなたは 'sudo bundle install'を試しましたか? – PinnyM
そこには1つのruby/rubygemsがインストールされていますか? '宝石'と '束ねる'とは何ですか? – phoet
ご意見ありがとうございます。 @PinnyM 'sudo bundle install'はrootとして' bundle install'を実行するのと同じ出力を悲しげに提供します。 @phoetをインストールすると、このマシンにはRVMなどがインストールされていません。パスは '/ usr/local/bin/gem'と'/usr/local/bin/bundle'です。 – Leftblank