0

RVM を使用する Red Hat Linux サーバーに Rails 3 アプリをデプロイしようとしていますが、失敗し続けます。

    ** [out :: myserver.server.com] Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
    ** [out :: myserver.server.com] 
    ** [out :: myserver.server.com] /usr/local/rvm/rubies/ruby-1.9.3-p448/bin/ruby extconf.rb
    ** [out :: myserver.server.com] checking for vm_core.h... no
    ** [out :: myserver.server.com] checking for vm_core.h... no
    ** [out :: myserver.server.com] Makefile creation failed
    ** [out :: myserver.server.com] **************************************************************************
    ** [out :: myserver.server.com] No source for ruby-1.9.3-p448 provided with debugger-ruby_core_source gem.
    ** [out :: myserver.server.com] **************************************************************************
    ** [out :: myserver.server.com] *** extconf.rb failed ***
    ** [out :: myserver.server.com] Could not create Makefile due to some reason, probably lack of
    ** [out :: myserver.server.com] necessary libraries and/or headers.  Check the mkmf.log file for more
    ** [out :: myserver.server.com] details.  You may need configuration options.
    ** [out :: myserver.server.com] 
    ** [out :: myserver.server.com] Provided configuration options:
    ** [out :: myserver.server.com] --with-opt-dir
    ** [out :: myserver.server.com] --without-opt-dir
    ** [out :: myserver.server.com] --with-opt-include
    ** [out :: myserver.server.com] --without-opt-include=${opt-dir}/include
    ** [out :: myserver.server.com] --with-opt-lib
    ** [out :: myserver.server.com] --without-opt-lib=${opt-dir}/lib
    ** [out :: myserver.server.com] --with-make-prog
    ** [out :: myserver.server.com] --without-make-prog
    ** [out :: myserver.server.com] --srcdir=.
    ** [out :: myserver.server.com] --curdir
    ** [out :: myserver.server.com] --ruby=/usr/local/rvm/rubies/ruby-1.9.3-p448/bin/ruby
    ** [out :: myserver.server.com] --with-ruby-dir
    ** [out :: myserver.server.com] --without-ruby-dir
    ** [out :: myserver.server.com] --with-ruby-include
    ** [out :: myserver.server.com] --without-ruby-include=${ruby-dir}/include
    ** [out :: myserver.server.com] --with-ruby-lib
    ** [out :: myserver.server.com] --without-ruby-lib=${ruby-dir}/lib
    ** [out :: myserver.server.com] 
    ** [out :: myserver.server.com] 
    ** [out :: myserver.server.com] Gem files will remain installed in /usr/local/www/sherry-authorize-staging/shared/bundle/ruby/1.9.1/gems/debugger-linecache-1.1.2 for inspection.
    ** [out :: myserver.server.com] Results logged to /usr/local/www/sherry-authorize-staging/shared/bundle/ruby/1.9.1/gems/debugger-linecache-1.1.2/ext/trace_nums/gem_make.out
    ** [out :: myserver.server.com] An error occurred while installing debugger-linecache (1.1.2), and Bundler
    ** [out :: myserver.server.com] cannot continue.
    ** [out :: myserver.server.com] Make sure that `gem install debugger-linecache -v '1.1.2'` succeeds before
    ** [out :: myserver.server.com] bundling.

gem install debugger-linecache -v '1.1.2'そこで私は指示に耳を傾け、サーバーに SSH 接続して を実行し、サーバーに移動して git リポジトリを手動で複製し、bundle installすべての gem がそのサーバー上に存在するようにすることで、gem がそのサーバーにインストールできることを確認しました。ただし、すべての gem があっても、デプロイするたびに同じメッセージが表示されます。任意のユーザーとしてログインして入力するとgem list、すべての宝石が表示されます。gem もグローバルで適切な場所にあるように見えます。

[emai@511863-web3 ~]$ which gem
/usr/local/rvm/rubies/ruby-1.9.3-p448/bin/gem    

これを修正する方法を知っている人はいますか?

4

1 に答える 1