执行passenger-instal-nginx
进行 nginx 的编译,走到最后的编译阶段,结果出现如下错误:
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/backward/hash_map:60,
from ext/common/Utils/HashMap.h:46,
from ext/common/Utils/StringMap.h:33,
from ext/common/Utils/CachedFileStat.hpp:42,
from ext/common/ApplicationPool2/AppTypes.h:81,
from ext/common/ApplicationPool2/Options.h:32,
from ext/common/ApplicationPool2/Common.h:32,
from ext/common/ApplicationPool2/Pool.h:43,
from ext/common/ApplicationPool2/Implementation.cpp:31:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/backward/backward_warning.h:28:2: warning: #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated.
c++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
rake aborted!
Command failed with status (1): [c++ -Iext -Iext/common -Iext/libev -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -feliminate-unused-debug-symbols -feliminate-unused-debug-types -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -ggdb -DHAS_ALLOCA_H -DHAVE_ACCEPT4 -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -DHASH_NAMESPACE="__gnu_cxx" -DHASH_MAP_HEADER="<hash_map>" -DHASH_MAP_CLASS="hash_map" -DHASH_FUN_H="<hash_fun.h>" -o buildout/common/libpassenger_common/ApplicationPool2/Implementation.o -c ext/common/ApplicationPool2/Implementation.cpp]
/usr/local/rvm/gems/ruby-2.0.0-p451/gems/passenger-4.0.41/build/cplusplus_support.rb:51:in `run_compiler'
/usr/local/rvm/gems/ruby-2.0.0-p451/gems/passenger-4.0.41/build/cplusplus_support.rb:61:in `compile_cxx'
/usr/local/rvm/gems/ruby-2.0.0-p451/gems/passenger-4.0.41/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-p451/gems/passenger-4.0.41/doc/Users guide Nginx.html
http://www.modrails.com/documentation/Users%20guide%20Nginx.html
看了上面的报错信息,但是还是无法找出原因,大家帮忙看看吧