我正在使用ec2和橡胶进行部署 不是它的调试器行缓存失败 现在,正如我所说,我使用橡胶帽,以方便使用ec2部署 现在这是他给我的输入:
* executing "cd /mnt/feelike-app-staging/releases/20130304122452 && bundle install --gemfile /mnt/feelike-app-staging/releases/20130304122452/Gemfile --path /mnt/feelike-app-staging/shared/bundle --deployment --quiet --without development test"
servers: ["feelike-app.feelike-app-dev.tk"]
[feelike-app.feelike-app-dev.tk] executing command
** [out :: feelike-app.feelike-app-dev.tk] Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
** [out :: feelike-app.feelike-app-dev.tk]
** [out :: feelike-app.feelike-app-dev.tk] /usr/local/rubies/1.9.3-p392/bin/ruby extconf.rb
** [out :: feelike-app.feelike-app-dev.tk] checking for vm_core.h... no
** [out :: feelike-app.feelike-app-dev.tk] checking for vm_core.h... no
** [out :: feelike-app.feelike-app-dev.tk] Makefile creation failed
** [out :: feelike-app.feelike-app-dev.tk] **************************************************************************
** [out :: feelike-app.feelike-app-dev.tk] No source for ruby-1.9.3-p392 provided with debugger-ruby_core_source gem.
** [out :: feelike-app.feelike-app-dev.tk] **************************************************************************
** [out :: feelike-app.feelike-app-dev.tk] *** extconf.rb failed ***
** [out :: feelike-app.feelike-app-dev.tk] Could not create Makefile due to some reason, probably lack of
** [out :: feelike-app.feelike-app-dev.tk] necessary libraries and/or headers. Check the mkmf.log file for more
** [out :: feelike-app.feelike-app-dev.tk] details. You may need configuration options.
** [out :: feelike-app.feelike-app-dev.tk]
** [out :: feelike-app.feelike-app-dev.tk] Provided configuration options:
** [out :: feelike-app.feelike-app-dev.tk] --with-opt-dir
** [out :: feelike-app.feelike-app-dev.tk] --without-opt-dir
** [out :: feelike-app.feelike-app-dev.tk] --with-opt-include
** [out :: feelike-app.feelike-app-dev.tk] --without-opt-include=${opt-dir}/include
** [out :: feelike-app.feelike-app-dev.tk] --with-opt-lib
** [out :: feelike-app.feelike-app-dev.tk] --without-opt-lib=${opt-dir}/lib
** [out :: feelike-app.feelike-app-dev.tk] --with-make-prog
** [out :: feelike-app.feelike-app-dev.tk] --without-make-prog
** [out :: feelike-app.feelike-app-dev.tk] --srcdir=.
** [out :: feelike-app.feelike-app-dev.tk] --curdir
** [out :: feelike-app.feelike-app-dev.tk] --ruby=/usr/local/rubies/1.9.3-p392/bin/ruby
** [out :: feelike-app.feelike-app-dev.tk] --with-ruby-dir
** [out :: feelike-app.feelike-app-dev.tk] --without-ruby-dir
** [out :: feelike-app.feelike-app-dev.tk] --with-ruby-include
** [out :: feelike-app.feelike-app-dev.tk] --without-ruby-include=${ruby-dir}/include
** [out :: feelike-app.feelike-app-dev.tk] --with-ruby-lib
** [out :: feelike-app.feelike-app-dev.tk] --without-ruby-lib=${ruby-dir}/lib
** [out :: feelike-app.feelike-app-dev.tk]
** [out :: feelike-app.feelike-app-dev.tk]
** [out :: feelike-app.feelike-app-dev.tk] Gem files will remain installed in /mnt/feelike-app-staging/shared/bundle/ruby/1.9.1/gems/debugger-linecache-1.1.2 for inspection.
** [out :: feelike-app.feelike-app-dev.tk] Results logged to /mnt/feelike-app-staging/shared/bundle/ruby/1.9.1/gems/debugger-linecache-1.1.2/ext/trace_nums/gem_make.out
** [out :: feelike-app.feelike-app-dev.tk] An error occurred while installing debugger-linecache (1.1.2), and Bundler
** [out :: feelike-app.feelike-app-dev.tk] cannot continue.
** [out :: feelike-app.feelike-app-dev.tk] Make sure that `gem install debugger-linecache -v '1.1.2'` succeeds before
** [out :: feelike-app.feelike-app-dev.tk] bundling.
** [out :: feelike-app.feelike-app-dev.tk]
command finished in 64109ms
failed: "/bin/bash -l -c 'cd /mnt/feelike-app-staging/releases/20130304122452 && bundle install --gemfile /mnt/feelike-app-staging/releases/20130304122452/Gemfile --path /mnt/feelike-app-staging/shared/bundle --deployment --quiet --without development test'" on feelike-app.feelike-app-dev.tk
现在我安装了“gem install debugger-linecache -v'1.1.2'”,但仍然不知道该做什么......
答案 0 :(得分:1)
在您的服务器上执行以下操作:
gem install debugger-linecache -v '1.1.2' -- --with-ruby-include=$rvm_path/src/ruby-1.9.3-p392/
注意:如果您不使用 rvm ,请更改 - with-ruby-include 以更正ruby源代码的路径
答案 1 :(得分:1)
答案 2 :(得分:0)
我遇到了同样的问题:这就是我解决的问题
捆绑更新调试器