Re: [phusion-passenger] Passenger-install-apache2-module Install Error

50 views
Skip to first unread message

Hongli Lai

unread,
Apr 16, 2013, 8:07:05 AM4/16/13
to phusion-passenger
This is probably caused by insufficient RAM on your server. Try adding
more swap space.

On Mon, Apr 15, 2013 at 3:43 AM, Chih-Chiang Wei
<chihchi...@gmail.com> wrote:
> Hi all, I got the following error when I tried to execute the following
> line:
>
> rvmsudo passenger-install-apache2-module
>
> --------------------------------------------
>
> Checking for required software...
>
> * GNU C++ compiler... found at /usr/bin/g++
> * Curl development headers with SSL support... found
> * OpenSSL development headers... found
> * Zlib development headers... found
> * Ruby development headers... found
> * OpenSSL support for Ruby... found
> * RubyGems... found
> * Rake... found at /home/ubuntu/.rvm/wrappers/ruby-1.9.3-p385/rake
> * rack... found
> * Apache 2... found at /usr/sbin/apache2
> * Apache 2 development headers... found at /usr/bin/apxs2
> * Apache Portable Runtime (APR) development headers... found at
> /usr/bin/apr-1-config
> * Apache Portable Runtime Utility (APU) development headers... found at
> /usr/bin/apu-1-config
>
> --------------------------------------------
> Compiling and installing Apache 2 module...
> cd /home/ubuntu/.rvm/gems/ruby-1.9.3-p385/gems/passenger-3.0.19
> /home/ubuntu/.rvm/wrappers/ruby-1.9.3-p385/rake apache2:clean apache2
> RELEASE=yes
> # /home/ubuntu/.rvm/wrappers/ruby-1.9.3-p385/rake apache2:clean apache2
> RELEASE=yes
> rm -rf ext/common/libboost_oxt.a ext/common/libboost_oxt
> rm -rf ext/common/libpassenger_common.a ext/common/libpassenger_common
> rm -f agents/PassengerWatchdog agents/PassengerLoggingAgent
> rm -rf ext/apache2/module_libboost_oxt.a ext/apache2/module_libboost_oxt
> rm -rf ext/apache2/module_libpassenger_common.a
> ext/apache2/module_libpassenger_common
> rm -rf ext/apache2/Configuration.o ext/apache2/Bucket.o ext/apache2/Hooks.o
> ext/apache2/mod_passenger.o ext/apache2/mod_passenger.so
> agents/PassengerHelperAgent
> mkdir -p ext/apache2/module_libpassenger_common
> g++ -Iext -Iext/common -Iext/libev -fPIC -fvisibility=hidden
> -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -DLINUX=2 -D_REENTRANT
> -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -DLINUX=2
> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
> -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2
> -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx"
> -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DHAS_ALLOCA_H
> -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter
> -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long
> -Wno-missing-field-initializers -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS
> -o ext/apache2/module_libpassenger_common/aggregate.o -c
> ext/apache2/module_libpassenger_common/aggregate.cpp
> rm -rf ext/apache2/module_libpassenger_common.a
> ar cru ext/apache2/module_libpassenger_common.a
> ext/apache2/module_libpassenger_common/aggregate.o
> ranlib ext/apache2/module_libpassenger_common.a
> mkdir -p ext/apache2/module_libboost_oxt
> g++ -Iext -fPIC -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED
> -Wno-attributes -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0
> -I/usr/include/apr-1.0 -DLINUX=2 -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
> -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl
> -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT
> -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx"
> -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DHAS_ALLOCA_H
> -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter
> -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long
> -Wno-missing-field-initializers -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS
> -o ext/apache2/module_libboost_oxt/aggregate.o -c
> ext/apache2/module_libboost_oxt/aggregate.cpp
> In file included from ext/boost/src/pthread/thread.cpp:27:0,
> from ext/apache2/module_libboost_oxt/aggregate.cpp:6:
> ext/boost/src/pthread/timeconv.inl: In function ‘void
> {anonymous}::to_time(int, boost::xtime&)’:
> ext/boost/src/pthread/timeconv.inl:22:9: warning: variable ‘res’ set but not
> used [-Wunused-but-set-variable]
> ext/boost/src/pthread/timeconv.inl: In function ‘void
> {anonymous}::to_timespec_duration(const boost::xtime&, timespec&)’:
> ext/boost/src/pthread/timeconv.inl:59:9: warning: variable ‘res’ set but not
> used [-Wunused-but-set-variable]
> ext/boost/src/pthread/timeconv.inl: In function ‘void
> {anonymous}::to_duration(boost::xtime, int&)’:
> ext/boost/src/pthread/timeconv.inl:90:9: warning: variable ‘res’ set but not
> used [-Wunused-but-set-variable]
> ext/boost/src/pthread/timeconv.inl: In function ‘void
> {anonymous}::to_microduration(boost::xtime, int&)’:
> ext/boost/src/pthread/timeconv.inl:112:9: warning: variable ‘res’ set but
> not used [-Wunused-but-set-variable]
> mkdir -p ext/apache2/module_libboost_oxt
> rm -rf ext/apache2/module_libboost_oxt.a
> ar cru ext/apache2/module_libboost_oxt.a
> ext/apache2/module_libboost_oxt/aggregate.o
> ranlib ext/apache2/module_libboost_oxt.a
> gcc -Iext -Iext/common -fPIC -fvisibility=hidden
> -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -DLINUX=2 -D_REENTRANT
> -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -DLINUX=2
> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
> -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2
> -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx"
> -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DHAS_ALLOCA_H
> -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter
> -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long
> -Wno-missing-field-initializers -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS
> -o ext/apache2/mod_passenger.o -c ext/apache2/mod_passenger.c
> g++ -Iext -Iext/common -fPIC -fvisibility=hidden
> -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -DLINUX=2 -D_REENTRANT
> -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -DLINUX=2
> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
> -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2
> -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx"
> -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DHAS_ALLOCA_H
> -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter
> -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long
> -Wno-missing-field-initializers -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS
> -o ext/apache2/Configuration.o -c ext/apache2/Configuration.cpp
> g++ -Iext -Iext/common -fPIC -fvisibility=hidden
> -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -DLINUX=2 -D_REENTRANT
> -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -DLINUX=2
> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
> -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2
> -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx"
> -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DHAS_ALLOCA_H
> -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter
> -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long
> -Wno-missing-field-initializers -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS
> -o ext/apache2/Bucket.o -c ext/apache2/Bucket.cpp
> g++ -Iext -Iext/common -fPIC -fvisibility=hidden
> -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -DLINUX=2 -D_REENTRANT
> -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -DLINUX=2
> -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include/apr-1.0
> -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2
> -D_REENTRANT -I/usr/local/include -DHASH_NAMESPACE="__gnu_cxx"
> -DHASH_NAMESPACE="__gnu_cxx" -DHASH_FUN_H="<hash_fun.h>" -DHAS_ALLOCA_H
> -DHAS_SFENCE -DHAS_LFENCE -Wall -Wextra -Wno-unused-parameter
> -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long
> -Wno-missing-field-initializers -g -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS
> -o ext/apache2/Hooks.o -c ext/apache2/Hooks.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.6/README.Bugs> for instructions.
> rake aborted!
> Command failed with status (4): [g++ -Iext -Iext/common -fPIC
> -fvisibility=...]
> /home/ubuntu/.rvm/gems/ruby-1.9.3-p385/gems/passenger-3.0.19/build/cplusplus_support.rb:31:in
> `compile_cxx'
> /home/ubuntu/.rvm/gems/ruby-1.9.3-p385/gems/passenger-3.0.19/build/apache2.rb:96:in
> `block (2 levels) in <top (required)>'
> /home/ubuntu/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in `eval'
> /home/ubuntu/.rvm/gems/ruby-1.9.3-p385/bin/ruby_noexec_wrapper:14:in
> `<main>'
> Tasks: TOP => apache2 => ext/apache2/mod_passenger.so => ext/apache2/Hooks.o
> (See full trace by running task with --trace)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Phusion Passenger Discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phusion-passen...@googlegroups.com.
> To post to this group, send email to phusion-...@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/phusion-passenger?hl=en-US.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Phusion | Ruby & Rails deployment, scaling and tuning solutions

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages