自从几周前 Dreamhost 升级了他们的服务器我的网站就瘫痪了。我一直在揪头发,试图把它修好,并取得了一些进展,但困在什么是希望最后的问题。
我在 Ruby1.8.7上使用 Rails 3.1.1,得到了一个“ Ruby (Rack)应用程序无法启动错误”的结果。它声明“无法找到 JavaScript 运行时”。有关可用运行时的列表,请参见 https://github.com/sstephenson/execjs。(ExecJS: : RuntimeUnable)’。在 Dreamhost 的 wiki 上搜索这个问题,提供了一个安装“ therubyracer”gem 的解决方案。
所以我用推荐的 gem 更新了我的 gem 文件,如下所示:
Gem‘ therubyracer’,’~ > 0.9.9’
编辑: 我还尝试用以下方法添加文件:
Gem‘ therubyracer’,: Platform = > : Ruby
但是没什么区别。
然后捆绑安装在我的 Macbook (运行 OS X 10.5.8)顺利。但是,当我运行“ cap dept”将其放到 Dreamhost 上时,这种方法失败了; 当它尝试安装 thubyracer 所依赖的 libv8时,我看到了一个错误。
有人知道如何正确安装它或其他工作解决方案吗?
任何其他信息可以根据要求提供。
Full error feedback from Terminal:
- 执行「 cd/home/future-proof/ abunchofletters.co.uk/releases/20111118003703 & & 捆绑安装—— gemfile /家/未来/ abunchofletters.co.uk/releases/20111118003703/gemfile --path /home/futureproof/.gems/bundle --deployment --quiet --without development test" 服务器: [“ abunchofletters.co.uk”] [ abunchofletters.co.uk ]执行命令 * * [ out: : abunchofletters.co.uk ]不幸的是,发生了一个致命错误。 请将此错误报告给 Bundler 问题跟踪器 https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks! ** [out :: abunchofletters.co.uk] /usr/lib/ruby/1.8/rubygems/installer.rb: 483: 错误: 未能构建 gem 本机扩展。 (Gem: : Installer: : ExtensionBuildError) * * [ out: : Abunchofletters.co.uk abunchofletters.co.uk /usr/bin/ruby1.8 extconf.rb ** [out :: abunchofletters.co.uk] *** Extcon.rb 失败 * * * * [ out: : abunchofletters.co.uk ]无法执行 由于某种原因,可能缺少 * * [ out: : Abunchofletters.co.uk 所需的库及/或标题 Mkmf.log 文件了解更多 * * [ out: : abunchofletters.co.uk ]详细信息。 您可能需要配置选项。 * * [ out: : abunchofletters.co.uk ] * * [ out: : abunchofletters.co.uk ]提供配置选项: * * [ out: : abunchofletters.co.uk ]—— with-opt-dir * * [ out: : Abunchofletters.co.uk : Abunchofletters.co.uk ]—— with-opt-include * * [ out: Abunchofletters.co.uk ]-without-opt-include = ${ opt-dir }/include * * [ out: : abunchofletters.co.uk ]—— with-opt-lib * * [ out: : 返回 abunchofletters.co.uk 页面没有-opt-lib = ${ opt-dir }/lib * * [出局: 返回文章页面 abunchofletters.co.uk : 返回文章页面 abunchofletters.co.uk : * * [ out: : abunchofletters.co.uk abunchofletters.co.uk ] —— curdir * * [ out: : abunchofletters.co.uk ]—— ruby =/usr/bin/ruby1.8 * * [ out: : abunchofletters.co.uk ] extcon.rb: 13: 未初始化常量 Gem (NameError) * * [ out: : abunchofletters.co.uk ]检查 for Python... ** [out :: abunchofletters.co.uk] ** [out :: [ abunchofletters.co.uk ] Gem 文件将继续安装在 /home/futureproof/.gems/bundle/ruby/1.8/gems/libv8-3.3.10.4 for 检查 * * [输出: : abunchofletters.co.uk ]结果记录在 /home/future//. gems/bundle/ruby/1.8/gems/libv8-3.3.10.4/ext/libv8/gem _ make. out * * [ out: : abunchofletters.co.uk ] from/usr/lib/ruby/1.8/rubygems/installer.rb: 446: in each’* * [ out: : Abunchofletters.co.uk /usr/lib/ruby/1.8/rubygems/installer.rb: 446: in < code > build _ tended’* * Abunchofletters.co.uk /usr/lib/ruby/1.8/rubygems/installer.rb: 198: in install’* * [ out: : Abunchofletters.co.uk /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/source. rb: 90: in/home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/source. rb: 90: in
Install’* * [ out: : abunchofletters.co.uk ] /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/rubygems _ Integration. rb: 78: in/home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/rubygems _ Integration. rb: 78: in
保存 _ path’* * [ out: : abunchofletters.co.uk ] /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/source. rb: 89: in/home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/source. rb: 89: inInstall’* * [ out: : abunchofletters.co.uk ] /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/installer.rb: 73: in/home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/installer.rb: 73: in
Install _ gem _ from _ spec’* * [ out: : abunchofletters.co.uk ] /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/rubygems _ Integration. rb: 93: in/home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/rubygems _ Integration. rb: 93: in用 _ build _ args’* * [ out: : abunchofletters.co.uk ]从 /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/installer.rb: 72: in/home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/installer.rb: 72: in
Install _ gem _ from _ spec’* * [ out: : abunchofletters.co.uk ] /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/installer.rb: 56: in/home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/installer.rb: 56: in逃离 abunchofletters.co.uk /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/installer.rb: 55: in/home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/installer.rb: 55: in
逃离 abunchofletters.co.uk /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/installer.rb: 12: in/home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/installer.rb: 12: inInstall’* * [ out: : abunchofletters.co.uk ] /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/cli.rb: 219: in/home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/cli.rb: 219: in
Install’* * [ out: : abunchofletters.co.uk ] /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/owner/thor/task.rb: 22: in发送 abunchofletters.co.uk /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/owner/thor/task.rb: 22: in
逃离 abunchofletters.co.uk /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/owner/thor/invocation.rb: 118: ininvoke_task' ** [out :: abunchofletters.co.uk] from /home/futureproof/.gems/gems/bundler-1.1.rc/lib/bundler/vendor/thor.rb:263:in
调度 abunchofletters.co.uk /home/future-proof/. gems/gems/bundler-1.1. rc/lib/bundler/owner/thor/base.rb: 386: in从 abunchofletters.co.uk 开始 /home/futureproof/.gems/gems/bundler-1.1.rc/bin/bundle:13 ** [out :: Abunchofletters.co.uk /home/future/. gems/bin/bundle: 19: in
load' ** [out :: abunchofletters.co.uk] from /home/future proof/. gems/bin/bundle: 19 command finished in 13170ms 执行“ rm-rf/home/future/proof/ abunchofletters.co.uk/releases/20111118003703; true;” 服务器: [“ abunchofletters.co.uk”] [ abunchofletters.co.uk ]执行命令 command finished in 563ms failed: "sh -c 'cd /home/futureproof/abunchofletters.co.uk/releases/20111118003703 && bundle install --gemfile /home/futureproof/abunchofletters.co.uk/releases/20111118003703/Gemfile --path /home/futureproof/.gems/bundle --deployment --quiet --without development test'" on abunchofletters.co.uk