Fail to install Nginx and Passenger on Ubuntu 14.04 with Ruby 2.2.0 -


i tried install nginx , passenger deploying rails application. used rvm , install ruby 2.2.0 default, , run

rvmsudo passenger-install-nginx-module 

but got errors:

..... compiling passenger support files... # env noexec_disable=1 /home/webapp/.rvm/gems/ruby-2.2.0/wrappers/rake nginx:clean nginx release=yes rm -rf buildout/cache rm -rf buildout/common/libboost_oxt.a buildout/common/libboost_oxt rm -f buildout/common/libpassenger_common/logging.o buildout/common/libpassenger_common/exceptions.o buildout/common/libpassenger_common/utils/systemtime.o buildout/common/libpassenger_common/utils/strintutils.o buildout/common/libpassenger_common/utils/strintutilsnostrictaliasing.o buildout/common/libpassenger_common/utils/ioutils.o buildout/common/libpassenger_common/utils.o rm -f buildout/common/libpassenger_common/utils/modp_b64.o buildout/common/libpassenger_common/utils/cachedfilestat.o buildout/common/libpassenger_common/utils/largefiles.o buildout/common/libpassenger_common/applicationpool2/implementation.o buildout/common/libpassenger_common/applicationpool2/apptypes.o buildout/common/libpassenger_common/agentsstarter.o buildout/common/libpassenger_common/agentbase.o buildout/common/libpassenger_common/memorykit/mbuf.o buildout/common/libpassenger_common/memorykit/palloc.o buildout/common/libpassenger_common/serverkit/http_parser.o buildout/common/libpassenger_common/serverkit/implementation.o buildout/common/libpassenger_common/utils/md5.o buildout/common/libpassenger_common/utils/hasher.o buildout/common/libpassenger_common/utils/jsoncpp.o rm -f buildout/common/libpassenger_common/agent/ustrouter/filtersupport.o rm -rf buildout/common/libpassenger_common rm -rf buildout/support-binaries/ mkdir -p buildout/support-binaries c++ -o buildout/support-binaries/watchdogmain.o  -iext -iext/common  -iext/libev -iext/libuv/include   -d_reentrant -i/usr/local/include -wall -wextra -wno-unused-parameter -wno-parentheses -wpointer-arith -wwrite-strings -wno-long-long -wno-missing-field-initializers -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 -std=gnu++11 -wno-unused-local-typedefs -dhash_namespace="__gnu_cxx" -dhash_map_header="<hash_map>" -dhash_map_class="hash_map" -dhash_fun_h="<hash_fun.h>" -c ext/common/agent/watchdog/main.cpp c++ -o buildout/support-binaries/coremain.o  -iext -iext/common  -iext/libev -iext/libuv/include   -d_reentrant -i/usr/local/include -wall -wextra -wno-unused-parameter -wno-parentheses -wpointer-arith -wwrite-strings -wno-long-long -wno-missing-field-initializers -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 -std=gnu++11 -wno-unused-local-typedefs -dhash_namespace="__gnu_cxx" -dhash_map_header="<hash_map>" -dhash_map_class="hash_map" -dhash_fun_h="<hash_fun.h>" -c ext/common/agent/core/main.cpp virtual memory exhausted: cannot allocate memory rake aborted! command failed status (1): [c++ -o buildout/support-binaries/coremain.o  -iext -iext/common  -iext/libev -iext/libuv/include   -d_reentrant -i/usr/local/include -wall -wextra -wno-unused-parameter -wno-parentheses -wpointer-arith -wwrite-strings -wno-long-long -wno-missing-field-initializers -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 -std=gnu++11 -wno-unused-local-typedefs -dhash_namespace="__gnu_cxx" -dhash_map_header="<hash_map>" -dhash_map_class="hash_map" -dhash_fun_h="<hash_fun.h>" -c ext/common/agent/core/main.cpp] /home/webapp/.rvm/gems/ruby-2.2.0/gems/passenger-5.0.13/build/cplusplus_support.rb:51:in `run_compiler' /home/webapp/.rvm/gems/ruby-2.2.0/gems/passenger-5.0.13/build/cplusplus_support.rb:61:in `compile_cxx' /home/webapp/.rvm/gems/ruby-2.2.0/gems/passenger-5.0.13/build/agents.rb:124:in `block (2 levels) in <top (required)>' tasks: top => nginx => nginx_without_native_support => buildout/support-binaries/passengeragent => buildout/support-binaries/coremain.o (see full trace running task --trace) --------------------------------------------  looks went wrong  please read our users guide troubleshooting tips:     /home/webapp/.rvm/gems/ruby-2.2.0/gems/passenger-5.0.13/doc/users guide nginx.html    https://www.phusionpassenger.com/documentation/users%20guide%20nginx.html  if doesn't help, please use our support facilities. we'll our best you.     https://www.phusionpassenger.com/documentation_and_support 

how can resolve issue?

adding swap file solve problem. please have @ this guide on how add swap file.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -