0

我正在使用 ec2 和 Rubber 进行部署,而不是 debugger-linecache 失败,因为我说我正在使用带有橡胶的 cap 以便于使用 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'”并且仍然失败不知道该怎么做......

4

3 回答 3

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​​ 源代码路径

于 2013-03-04T13:35:37.293 回答
1

好的,经过长时间的搜索发现你需要安装 ruby​​-debug-base19 gem 来获得一些我现在错过的所有工作的响应

于 2013-03-04T15:10:26.390 回答
0

我遇到了同样的问题:这就是我解决它的方法

捆绑更新调试器

于 2013-03-14T17:21:10.607 回答