• 我尝试了一下,现在换了一个错,

    看样子好象不能安装 libv8

    Error 310: Staging failed: 'Staging plugin failed staging application: ERROR: Error installing /var/vcap/data/stager/tmp/d20120420-7994-pcajnf/therubyracer-0.10.1.gem: ERROR: Failed to build gem native extension.

    /var/vcap/data/packages/dea_ruby19/5.1/bin/ruby extconf.rb *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.

    Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/var/vcap/data/packages/dea_ruby19/5.1/bin/ruby /var/vcap/data/packages/dea_ruby19/5.1/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require': no such file to load -- libv8 (LoadError) from /var/vcap/data/packages/dea_ruby19/5.1/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire' from extconf.rb:7:in rescue in <main>' from extconf.rb:3:in'

    Gem files will remain installed in /var/vcap/data/stager/tmp/d20120420-7994-pcajnf/gem_install_dir/gems/therubyracer-0.10.1 for inspection. Results logged to /var/vcap/data/stager/tmp/d20120420-7994-pcajnf/gem_install_dir/gems/therubyracer-0.10.1/ext/v8/gem_make.out /var/vcap/packages/stager/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.50/lib/vcap/staging/plugin/gemfile_task.rb:103:in block in install_gems': Failed installing therubyracer-0.10.1.gem (RuntimeError) from /var/vcap/packages/stager/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.50/lib/vcap/staging/plugin/gemfile_task.rb:91:ineach' from /var/vcap/packages/stager/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.50/lib/vcap/staging/plugin/gemfile_task.rb:91:in install_gems' from /var/vcap/packages/stager/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.50/lib/vcap/staging/plugin/gemfile_task.rb:47:ininstall' from /var/vcap/packages/stager/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.50/lib/vcap/staging/plugin/gemfile_support.rb:35:in compile_gems' from /var/vcap/packages/stager/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.50/lib/vcap/staging/plugin/rails3/plugin.rb:54:inblock in stage_application' from /var/vcap/packages/stager/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.50/lib/vcap/staging/plugin/rails3/plugin.rb:50:in chdir' from /var/vcap/packages/stager/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.50/lib/vcap/staging/plugin/rails3/plugin.rb:50:instage_application' from /var/vcap/packages/stager/stager/bin/run_plugin:19:in `' '

  • 这个我之前碰到过和你同样的问题,你检查你的 erb 中有没有没有结束的脚本块。比如<%= 没有结束的%>.我之前报这样的错,就是这个原因。

  • SAE 发放 Ruby 邀请码 at 2012年04月17日

    同问哪儿能搞到邀请码?

  • 单纯的 ruby 呢?

  • 请问这个问题解决了吗?我现在也碰到这个问题,我是调用其它的网站的服务,返回的中文,我用 force_encoding 依然报上面的错误。

  • 之前一至用 fcitx,就可以输入呀

  • 借这个地方问下: 不知道大家是否在 itunes 中订阅 railscasts-china 的视频就会 crash? http://itunes.apple.com/tw/podcast/railscasts-china/id491954712 求人帮我试试,我一订阅就 crash 了,railscasts 也是一样,但其它的貌似又是好的

  • OK,谢谢~

  • 嗯,除了使用 gem 写额外的解析器以外,我想确认一下 rails 有没有默认提供对这种关联对象的解决方案?谢谢~

  • iteye 自从 robbin 去了 csdn 后,确是不太行了~

  • 长沙现在工资这么高了?