按照 在 Ubuntu 12.04 Server 上安装部署 Ruby on Rails 应用 的方法,当我敲到:
sudo passenger-install-nginx-module
出现如下错误:
/Implementation.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See file:///usr/share/doc/gcc-4.7/README.Bugs for instructions.
rake aborted!
-----------------------------------------------
Your compiler failed with the exit status 4. This probably means that it ran out of memory. To solve this problem, try increasing your swap space: https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.29/build/cplusplus_support.rb:40:in run_compiler'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.29/build/cplusplus_support.rb:61:in
compile_cxx'
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.29/lib/phusion_passenger/common_library.rb:133:in `block (2 levels) in define_category_tasks'
Tasks: TOP => nginx => nginx_without_native_support => buildout/agents/PassengerHelperAgent => buildout/common/libpassenger_common/ApplicationPool2/Implementation.o
(See full trace by running task with --trace)
--------------------------------------------
It looks like something went wrong
Please read our Users guide for troubleshooting tips:
/usr/local/rvm/gems/ruby-2.0.0-p353/gems/passenger-4.0.29/doc/Users guide Nginx.html http://www.modrails.com/documentation/Users%20guide%20Nginx.html
If that doesn't help, please use our support facilities. We'll do our best to help you.
http://www.phusionpassenger.com/support
我的 ruby 版本是 2.0.0 rails 版本是 4.0.0 passenger 版本是 4.0.29
然后,我就设置了 swap,但是不管设置到多大,它还是报一样的错误,请高手帮忙解决。