Error In Installating Ruby Enterprise Edition in RHEL5.4.

Im trying to install ruby from ruby enterprise edition of (ruby- enterprise-1.8.7-2010.02) package. when i tried to install in rhel 5.4 machine which is of 64 bit im getting errors as make: *** [libtcmalloc_minimal_la-tcmalloc.lo] Error 1 .. Anybody has faced same problem while installing ruby.. :frowning: ..

checking for backtrace in -lunwind... no checking printf format code for printing a size_t and ssize_t... l checking for __builtin_stack_pointer()... no checking for __thread... yes checking if nanosleep requires any libraries... no checking whether uname is declared... yes checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking whether to check for GCC pthread/shared inconsistencies... yes checking whether -pthread is sufficient with -shared... yes checking whether the compiler implements namespaces... yes checking what namespace STL code is in... checking for program_invocation_name... yes configure: creating ./config.status config.status: creating Makefile config.status: creating src/google/tcmalloc.h config.status: creating src/config.h config.status: executing depfiles commands make libtcmalloc_minimal.la /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES -pthread -DNDEBUG -Wall - Wwrite-strings -Woverloaded-virtual -Wno-sign-compare - DNO_FRAME_POINTER -g -O2 -c -o libtcmalloc_minimal_la-tcmalloc.lo `test -f 'src/tcmalloc.cc' || echo './'`src/tcmalloc.cc mkdir .libs g++ -DHAVE_CONFIG_H -I. -I. -I./src -I./src -DNO_TCMALLOC_SAMPLES - pthread -DNDEBUG -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign- compare -DNO_FRAME_POINTER -g -O2 -c src/tcmalloc.cc -fPIC -DPIC - o .libs/libtcmalloc_minimal_la-tcmalloc.o In file included from /usr/lib/gcc/x86_64-redhat-linux/ 4.1.2/../../../../include/c++/4.1.2/algorithm:65,                  from src/tcmalloc.cc:112: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/stl_algobase.h:64:28: error: bits/c++config.h: No such file or directory In file included from /usr/lib/gcc/x86_64-redhat-linux/ 4.1.2/../../../../include/c++/4.1.2/bits/stl_algobase.h:69,                  from /usr/lib/gcc/x86_64-redhat-linux/ 4.1.2/../../../../include/c++/4.1.2/algorithm:65,                  from src/tcmalloc.cc:112: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ iosfwd:45:29: error: bits/c++locale.h: No such file or directory /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ iosfwd:46:25: error: bits/c++io.h: No such file or directory In file included from /usr/lib/gcc/x86_64-redhat-linux/ 4.1.2/../../../../include/c++/4.1.2/memory:54,                  from /usr/lib/gcc/x86_64-redhat-linux/ 4.1.2/../../../../include/c++/4.1.2/bits/stl_tempbuf.h:64,                  from /usr/lib/gcc/x86_64-redhat-linux/ 4.1.2/../../../../include/c++/4.1.2/bits/stl_algo.h:66,                  from /usr/lib/gcc/x86_64-redhat-linux/ 4.1.2/../../../../include/c++/4.1.2/algorithm:68,                  from src/tcmalloc.cc:112: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/allocator.h:52:31: error: bits/c++allocator.h: No such file or directory In file included from /usr/lib/gcc/x86_64-redhat-linux/ 4.1.2/../../../../include/c++/4.1.2/bits/basic_string.h:45,                  from /usr/lib/gcc/x86_64-redhat-linux/ 4.1.2/../../../../include/c++/4.1.2/string:52,                  from src/base/commandlineflags.h:52,                  from src/tcmalloc.cc:114: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/atomicity.h:38:30: error: bits/atomic_word.h: No such file or directory /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/allocator.h:82: error: expected template-name before â<â token /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/allocator.h:82: error: expected `{' before â<â token /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/allocator.h:82: error: expected unqualified-id before â<â token /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/stl_algo.h: In function âvoid std::random_shuffle(_RandomAccessIterator, _RandomAccessIterator)â: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/stl_algo.h:1906: error: ârandâ is not a member of âstdâ /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/atomicity.h: At global scope: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/atomicity.h:44: error: expected constructor, destructor, or type conversion before â__exchange_and_addâ /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/atomicity.h:48: error: expected â,â or â...â before â*â token /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h:150: error: â_Atomic_wordâ does not name a type /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h: In member function âvoid std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_M_dispose(const _Alloc&)â: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h:232: error: â__exchange_and_addâ is not a member of â__gnu_cxxâ /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h: In member function âtypename _Alloc::rebind<_CharT>::other::size_type std::basic_string<_CharT, _Traits, _Alloc>::_M_check(typename _Alloc::rebind<_CharT>::other::size_type, const char*) constâ: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h:306: error: there are no arguments to â__Nâ that depend on a template parameter, so a declaration of â__Nâ must be available /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h:306: error: (if you use â-fpermissiveâ, G++ will accept your code, but allowing the use of an undeclared name is deprecated) /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h: In member function âvoid std::basic_string<_CharT, _Traits, _Alloc>::_M_check_length(typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type, const char*) constâ: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h:314: error: there are no arguments to â__Nâ that depend on a template parameter, so a declaration of â__Nâ must be available /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h: In member function âtypename _Alloc::rebind<_CharT>::other::const_reference std::basic_string<_CharT, _Traits, _Alloc>::at(typename _Alloc::rebind<_CharT>::other::size_type) constâ: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h:726: error: there are no arguments to â__Nâ that depend on a template parameter, so a declaration of â__Nâ must be available /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h: In member function âtypename _Alloc::rebind<_CharT>::other::reference std::basic_string<_CharT, _Traits, _Alloc>::at(typename _Alloc::rebind<_CharT>::other::size_type)â: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.h:745: error: there are no arguments to â__Nâ that depend on a template parameter, so a declaration of â__Nâ must be available /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.tcc: In static member function âstatic _CharT* std::basic_string<_CharT, _Traits, _Alloc>::_S_construct(_InIterator, _InIterator, const _Alloc&, std::forward_iterator_tag)â: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.tcc:145: error: there are no arguments to â__Nâ that depend on a template parameter, so a declaration of â__Nâ must be available /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.tcc: In static member function âstatic typename std::basic_string<_CharT, _Traits, _Alloc>::_Rep* std::basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_create(typename _Alloc::rebind<_CharT>::other::size_type, typename _Alloc::rebind<_CharT>::other::size_type, const _Alloc&)â: /usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ bits/basic_string.tcc:533: error: there are no arguments to â__Nâ that depend on a template parameter, so a declaration of â__Nâ must be available make: *** [libtcmalloc_minimal_la-tcmalloc.lo] Error 1