Question

I am trying to setup puppet-dashboard on a RHEL6 64 bit machine. I was able to get all the pieces installed for Ruby, Gems, etc but now when I try to run passenger-install-apache2-module it fails with this error -

/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_pair.h:259: error: ‘_GLIBCXX_END_NAMESPACE’ does not name a type
In file included from ext/boost/config/posix_features.hpp:18,
                 from ext/boost/config/platform/linux.hpp:74,
                 from ext/boost/config.hpp:53,
                 from ext/boost/thread/detail/config.hpp:11,
                 from ext/boost/thread/tss.hpp:8,
                 from ext/oxt/system_calls.hpp:28,
                 from ext/common/Utils.cpp:26:
/usr/include/unistd.h:28: error: expected constructor, destructor, or type conversion before ‘extern’
In file included from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/new:40,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/bits/stl_construct.h:60,
                 from /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/memory:51,
                 from ext/boost/config/no_tr1/memory.hpp:21,
                 from ext/boost/smart_ptr/shared_ptr.hpp:27,
                 from ext/boost/shared_ptr.hpp:17,
                 from ext/boost/thread/tss.hpp:9,
                 from ext/oxt/system_calls.hpp:28,
                 from ext/common/Utils.cpp:26:
/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/exception:35: error: expected declaration before end of line
rake aborted!
Command failed with status (1): [c++ -Iext -Iext/common -Iext/libev -fPIC -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1 -I/usr/include/apr-1 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -Wformat-security -fno-strict-aliasing -I/usr/include/httpd -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 -o buildout/apache2/module_libpassenger_common/Utils.o -c ext/common/Utils.cpp]

Tasks: TOP => apache2 => buildout/apache2/mod_passenger.so => buildout/apache2/module_libpassenger_common/Utils.o

I searched the Googles and it seems like swap is a common cause for similar problems but it looks like I should have plenty for this -

             total       used       free     shared    buffers     cached
Mem:       3924852    1794880    2129972          0     349916     626264
-/+ buffers/cache:     818700    3106152
Swap:      4095992     112864    3983128

I don't know much about Ruby so I can't do much for deep troubleshooting. Can anyone help?

Was it helpful?

Solution

I'm not sure what that error means but I got passenger going by doing:

yum install -y httpd httpd-devel mod_ssl ruby-devel rubygems gcc-c++ curl-devel zlib-devel make automake
gem install rack passenger
passenger-install-apache2-module

Hope this helps

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top